/* ==========================================================================
   HolisticBizAdvisor — Premium Dark Theme
   Stripe/Linear-inspired design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-elevated: #0e4389;
    --bg-surface: #1150a0;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e6;
    --text-muted: #8888a0;
    --accent: #d1d12a;
    --accent-light: #e0e04a;
    --accent-glow: rgba(209, 209, 42, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1200px;
    --container-narrow: 800px;
    --section-pad: 9rem;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    overflow-x: hidden;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

::selection { background: var(--accent); color: var(--text-primary); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), #e8e86a, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad) 0;
    overflow: hidden;
}
.section-alt {
    background: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--accent);
    color: #000000;
}
.btn-primary:hover {
    background: var(--accent-light);
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--text-primary);
}
.btn-ghost {
    background: transparent;
    color: var(--accent-light);
    padding: 0;
    font-weight: 500;
}
.btn-ghost:hover { color: var(--text-primary); }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid rgba(209, 209, 42, 0.2);
}

/* Cards */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    border-color: rgba(209, 209, 42, 0.3);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

/* Dividers */
.divider-v {
    width: 1px;
    background: var(--border-subtle);
    align-self: stretch;
}

/* Section header */
.section-header {
    margin-bottom: 3.5rem;
}
.section-header .badge {
    margin-bottom: 1.25rem;
}
.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0 2.85rem;
    transition: all var(--transition);
    background: rgba(10, 10, 15, 0.25);
}
.site-header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}
.site-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.corner-logo-wrap {
    position: fixed;
    top: 0.25rem;
    right: 1.5rem;
    width: 100px;
    height: 100px;
    z-index: 1001;
    display: block;
}
.corner-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -15%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-mask-image:
        linear-gradient(to right, transparent, white 25%, white 75%, transparent),
        linear-gradient(to bottom, transparent, white 25%, white 75%, transparent);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent, white 25%, white 75%, transparent),
        linear-gradient(to bottom, transparent, white 25%, white 75%, transparent);
    mask-composite: intersect;

    z-index: -1;
}
.corner-logo {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}
.site-logo span {
    color: var(--text-muted);
    font-weight: 400;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin-right: 110px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .btn { margin-left: 0.5rem; padding: 0.625rem 1.5rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.mobile-nav.active { display: flex; opacity: 1; }
.mobile-nav a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}
.mobile-nav .btn { font-size: 1.125rem; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   7. Homepage Sections
   -------------------------------------------------------------------------- */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 5.5rem 2rem 2rem;
}
.hero::before {
    display: none;
}
.hero-circuits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(40, 120, 220, 0.8);
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(14, 67, 137, 0.5)) drop-shadow(0 0 15px rgba(14, 67, 137, 0.3));
}
.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 3;
}
.hero .badge { margin-bottom: 1rem; }
.hero h1 {
    font-size: 4.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.05;
}
.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 1.25rem;
    line-height: 1.7;
}
.hero-ctas {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-ctas .btn {
    padding: 0.79rem 1.8rem;
    font-size: 0.9rem;
}
.hero-location {
    margin-top: 0.75rem;
    font-size: 0.4375rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Terminal */
.hero-terminal {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
    margin: 1.25rem auto 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: left;
}
.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #2a2a2a;
    border-bottom: 1px solid #1a1a1a;
}
.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }
.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0;
    text-transform: none;
}
.terminal-body {
    background: #0d0d0d;
    padding: 14px 16px;
    min-height: 260px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}
.terminal-output {
    flex: 1;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e0e0e0;
}
.terminal-output .term-prompt {
    color: #5fd75f;
}
.terminal-output .term-comment {
    color: #6a6a6a;
}
.terminal-output .term-success {
    color: #5fd75f;
}
.terminal-output .term-metric {
    color: #5fafff;
}
.terminal-output .term-label {
    color: #aaa;
}
.terminal-prompt-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
    color: #e0e0e0;
    flex-shrink: 0;
}
.terminal-prompt {
    color: #5fd75f;
    white-space: pre;
}
.terminal-cursor {
    color: #e0e0e0;
    white-space: pre;
}
.terminal-cursor::after {
    content: '\2588';
    animation: termBlink 1s step-end infinite;
    color: #e0e0e0;
}
@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Credibility Bar */
.credibility-bar {
    padding: 3.5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.credibility-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.credibility-item {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}
.credibility-item + .credibility-item {
    border-left: 1px solid var(--border-subtle);
}
.credibility-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.credibility-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Section circuit traces */
.section-circuits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(40, 120, 220, 0.8);
    pointer-events: none;
    z-index: 0;
}
#services .container,
#capabilities .container,
#insights .container {
    position: relative;
}
#capabilities .section-circuits,
#insights .section-circuits {
    top: 6rem;
    height: calc(100% - 6rem);
}
.who-grid, .who-grid-3, .capabilities-grid, .insights-grid {
    position: relative;
    z-index: 1;
}

/* Capabilities */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.capability-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.capability-card:hover {
    border-color: rgba(209, 209, 42, 0.3);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-3px);
}
.capability-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--accent-light);
}
.capability-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.capability-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Outcomes */
.outcomes-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}
.outcome-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.375rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.outcome-item:first-child { border-top: 1px solid var(--border-subtle); }
.outcome-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Who I Work With */
.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.who-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.who-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.who-card p {
    color: var(--text-muted);
    line-height: 1.7;
}
.who-card p + p {
    margin-top: 1rem;
}
.who-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Holistic / About content blocks */
.holistic-content {
    max-width: 860px;
    margin: 0 auto;
}
.holistic-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.holistic-content p:last-child {
    margin-bottom: 0;
}

/* About photo */
.about-photo {
    text-align: center;
    margin-bottom: 2.5rem;
}
.about-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin: 0 auto;
}

/* Approach / Principles */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.principle-item {
    display: flex;
    gap: 1.5rem;
}
.principle-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
}
.principle-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}
.principle-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Insights Preview */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.insight-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.insight-card:hover {
    border-color: rgba(209, 209, 42, 0.3);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-3px);
}
.insight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.insight-card-body {
    padding: 1.5rem;
}
.insight-card time {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}
.insight-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    line-height: 1.35;
}
.insight-card h3 a {
    color: var(--text-primary);
}
.insight-card h3 a:hover { color: var(--accent-light); }
.insight-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Book cover */
.book-cover-float {
    float: right;
    margin: 0 0 1.5rem 2rem;
}
.book-cover-float img {
    width: 280px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition);
}
.book-cover-float:hover img {
    transform: scale(1.03);
}
@media (max-width: 768px) {
    .book-cover-float {
        float: none;
        display: block;
        text-align: center;
        margin: 0 0 2rem 0;
    }
    .book-cover-float img {
        width: 220px;
    }
}

/* Image Store */
.image-store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.image-store-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.image-store-item img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.image-store-item p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
    word-break: break-all;
}

/* Contact Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    width: 90%;
    max-width: 680px;
    height: 85vh;
    position: relative;
    overflow: hidden;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--accent);
}
.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Final CTA */
.final-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--section-pad) 0 3rem;
}
.final-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.final-cta-content {
    position: relative;
}
.final-cta h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   8. Blog Templates
   -------------------------------------------------------------------------- */

/* Blog Index */
.blog-listing {
    padding-top: 8rem;
}
.blog-listing > h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.blog-listing > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.post-list {
    margin: 2rem 0;
}
.post-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}
.post-item:hover {
    border-color: rgba(209, 209, 42, 0.3);
    box-shadow: 0 0 30px var(--accent-glow);
}
.post-item-image {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.post-item-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.post-item h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-item h2 a { color: var(--text-primary); }
.post-item h2 a:hover { color: var(--accent-light); }
.post-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}
.post-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.read-more {
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 500;
}
.read-more:hover { color: var(--text-primary); }

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 3rem 0;
}
.pagination a {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.pagination a.active {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Blog Single */
.blog-single {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-top: 8rem;
}
.post-header { margin-bottom: 2rem; }
.post-header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.post-featured-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
}
.content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.content-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.content-body p { margin-bottom: 1.25rem; }
.content-body ul, .content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.content-body li { margin-bottom: 0.5rem; }
.content-body img {
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}
.content-body a { color: var(--accent-light); border-bottom: 1px solid rgba(209, 209, 42, 0.3); }
.content-body a:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.content-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.content-body pre, .content-body code {
    background: var(--bg-elevated);
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.content-body code {
    padding: 0.125rem 0.375rem;
    font-size: 0.875em;
}
.content-body pre {
    padding: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}
.content-body pre code { padding: 0; background: none; }

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.post-footer a { color: var(--accent-light); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Page Template
   -------------------------------------------------------------------------- */
.page-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-top: 8rem;
}
.page-content h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   10. Error Page
   -------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
}
.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}
.error-page p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: var(--section-pad);
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-nav a:hover {
    color: var(--accent);
}
.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-sitemap-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.footer-sitemap-col {
    text-align: center;
}
.footer-sitemap-col h4 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-sitemap-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-sitemap-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-sitemap-col a:hover {
    color: var(--accent);
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.25rem;
}
.social-icon {
    color: var(--text-muted);
    transition: color var(--transition);
}
.social-icon:hover {
    color: var(--accent);
}
.footer-copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   12. Utilities & Animations
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }

/* Practice Accelerator homepage bullets */
.pa-bullets {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 0 auto;
}
.pa-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.pa-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   12b. Practice Accelerator
   -------------------------------------------------------------------------- */
.pa-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg-primary);
}
.pa-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.75rem;
}
.pa-hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
}
.pa-content {
    padding: 4rem 0 3rem;
    background: var(--bg-primary);
}
.pa-text {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}
.pa-text h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 3.5rem 0 1.25rem;
}
.pa-text h2:first-of-type {
    margin-top: 2.5rem;
}
.pa-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.pa-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.pa-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.pa-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.pa-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.pa-audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.pa-audience-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
}
.pa-audience--2col {
    grid-template-columns: repeat(2, 1fr);
}
a.pa-audience-item {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.pa-audience-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(209, 209, 42, 0.15);
    transform: translateY(-2px);
}
.pa-audience-item h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.pa-audience-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}
.pa-week {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-subtle);
}
.pa-week h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.pa-differentiator {
    margin-bottom: 1.75rem;
}
.pa-differentiator h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.pa-differentiator p {
    color: var(--text-secondary);
}
.pa-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}
.pa-cta h2 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem;
}
.pa-cta p {
    margin-bottom: 1.5rem;
}
.pa-cta .btn {
    margin: 0 0.5rem;
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
}
@media (max-width: 1200px) {
    :root { --section-pad: 6rem; }
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .corner-logo-wrap { right: 4rem; }
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .who-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-pad: 4.5rem; }

    .hero { min-height: 100vh; padding: 10rem 1.5rem 8rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-sub { font-size: 1.0625rem; }
    .hero-terminal { font-size: 0.6875rem; max-width: 100%; }
    .terminal-body { min-height: 220px; max-height: 260px; }

    .site-logo span { display: block; font-size: 0.8rem; }

    /* Credibility */
    .credibility-grid { flex-wrap: wrap; gap: 1.5rem; }
    .credibility-item { flex: 0 0 calc(50% - 0.75rem); padding: 0; }
    .credibility-item + .credibility-item { border-left: none; }

    /* Grids */
    .capabilities-grid { grid-template-columns: 1fr; }
    .who-grid { grid-template-columns: 1fr; }
    .who-grid-3 { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: 1fr; }
    .insights-grid { grid-template-columns: 1fr; }

    /* Practice Accelerator */
    .pa-text { width: 90%; }
    .pa-hero h1 { font-size: 2.25rem; }
    .pa-audience { grid-template-columns: 1fr; }
    .pa-audience--2col { grid-template-columns: 1fr; }

    /* Blog */
    .post-item { flex-direction: column; }
    .post-item-image { width: 100%; height: 200px; }

    /* Hero circuits — force wide enough to maintain proportions, center + clip */
    .hero-circuits {
        width: 250vw;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Section headers */
    .section-header h2 { font-size: 1.75rem; }
    .final-cta h2 { font-size: 1.75rem; }

    /* Corner logo — smaller on mobile, shift left of hamburger */
    .corner-logo-wrap { width: 80px; height: 80px; top: 0.75rem; right: 4rem; }

    /* Footer */
    .footer-nav { gap: 0.5rem 1.5rem; }
    .footer-sitemap-3 { grid-template-columns: 1fr; gap: 1rem; }
    .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.875rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .credibility-item { flex: 0 0 100%; }
    .outcome-item { font-size: 1.125rem; }
    .post-header h1 { font-size: 1.75rem; }
    .error-code { font-size: 5rem; }
    .container, .container-narrow { padding: 0 1.25rem; }
}
