/* =========================================
   ANUKUL SAINI — GHOST THEME
   main.css

   STRUCTURE:
   1.  Reset & CSS Variables
   2.  Base Styles
   3.  Navigation (desktop)
   4.  Navigation (mobile)
   5.  Buttons
   6.  Shared / Section Utilities
   7.  Animations
   8.  Hero Section
   9.  Marquee Banner
   10. Process Section
   11. Case Studies
   12. Tools Section
   13. About Section
   14. Testimonials
   15. Blog / Writing
   16. CTA Section
   17. Footer
   18. Page Templates (tools-page, page-wrap, work listing)
   19. Responsive — Tablet (≤1024px)
   20. Responsive — Mobile (≤768px)
   21. Responsive — Small Mobile (≤480px)
   22. Koenig Editor (Ghost rich content cards)
   23. Post Page Styles
   24. Post Responsive
   25. Post Card Component
   ========================================= */


/* =========================================
   1. RESET & CSS VARIABLES
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #ffffff;
    --bg2:       #f6f7fb;
    --ink:       #0b0f1a;
    --ink2:      rgba(11,15,26,0.74);
    --ink3:      rgba(11,15,26,0.52);
    --accent:    #ff6a00;
    --accent-hover: #ff3d00;
    --white:     #ffffff;
    --border:    rgba(15,23,42,0.12);
    --font-head: "SF Pro Display", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nav-h:     72px;
}


/* =========================================
   2. BASE STYLES
   ========================================= */
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }


/* =========================================
   3. NAVIGATION — DESKTOP
   ========================================= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 36px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.nav-logo {
    font-family: var(--font-head);
    font-weight: 650;
    font-size: 18px;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo span {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink2);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
    color: var(--ink);
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink2);
    display: flex;
    align-items: center;
    padding: 6px;
    transition: color 0.2s;
}
.nav-search-toggle svg { width: 25px; height: 25px; }
.nav-search-toggle:hover { color: var(--ink); }

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff !important;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 18px 60px rgba(255,106,0,0.24);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 80px rgba(255,106,0,0.26);
    color: #ffffff !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
}
.nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================
   4. NAVIGATION — MOBILE
   ========================================= */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    /* When closed — fully remove from layout */
    .nav-links:not(.open) {
        position: fixed;
        pointer-events: none;
        margin: 0;
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        color: var(--ink2);
        border-bottom: 1px solid var(--border);
        font-weight: 400;
        text-decoration: none;
        text-align: center;
    }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links .nav-cta {
        margin: 12px auto 0;
        width: calc(100% - 40px);
        justify-content: center;
        border-radius: 100px;
        padding: 12px 20px;
    }
    .nav-links .nav-search-toggle { display: none; }
}


/* =========================================
   5. BUTTONS
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 18px 60px rgba(255,106,0,0.24);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 80px rgba(255,106,0,0.26); }

.btn-secondary {
    text-align: center;
    background: transparent;
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 18px 60px rgba(2,6,23,0.12); border-color: var(--ink3); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 18px 60px rgba(255,106,0,0.24);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 26px 80px rgba(255,106,0,0.30); }


/* =========================================
   6. SHARED / SECTION UTILITIES
   ========================================= */
section { padding: 100px 48px; }

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 600px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
}

.view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink2);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.view-all:hover { color: var(--ink); }


/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.25); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.15); }
    56%       { transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* =========================================
   8. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 60px) 48px 80px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--ink2);
    margin-bottom: 32px;
    width: fit-content;
    animation: fadeUp 0.6s ease both;
}
.hero-tag-dot {
    width: 7px; height: 7px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(44px, 7vw, 96px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.055em;
    max-width: 900px;
    animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: var(--ink2);
    max-width: 560px;
    margin-top: 28px;
    line-height: 1.7;
    font-weight: 300;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 44px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease 0.4s both;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.stat-label { font-size: 13px; color: var(--ink3); margin-top: 2px; }


/* =========================================
   9. MARQUEE BANNER
   ========================================= */
.marquee-wrap { overflow: hidden; background: var(--ink); padding: 14px 0; }
.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 25s linear infinite;
    width: max-content;
}
.marquee-item {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}
.marquee-item b { color: var(--accent); margin: 0 20px; }


/* =========================================
   10. PROCESS SECTION
   ========================================= */
.process { background: var(--ink); color: var(--white); }
.process .section-label { color: rgba(255,255,255,0.3); }
.process .section-title { color: var(--white); max-width: 100%; margin-bottom: 64px; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.process-step {
    background: rgba(255,255,255,0.04);
    padding: 40px 32px;
    transition: background 0.3s;
}
.process-step:hover { background: rgba(255,255,255,0.07); }

.step-num {
    font-family: var(--font-head);
    font-size: 56px;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 16px;
}
.step-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
}
.step-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.step-desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; }


/* =========================================
   11. CASE STUDIES
   ========================================= */
.cases { background: var(--bg); }

/* Shared card base — used by homepage case cards */
.case-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.08); }

/* Link version of case card */
a.case-card {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.case-img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    position: relative;
    background: var(--bg2);
}
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-body { padding: 28px; }
.case-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.case-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg2);
    color: var(--ink2);
}

.case-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.2;
}
.case-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; margin-bottom: 20px; }

.case-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.metric-val { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.metric-label { font-size: 12px; color: var(--ink3); }

.case-right { display: flex; flex-direction: column; gap: 20px; }

/* ── 6-card grid (homepage & /work listing) ── */
.cases-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Small case card */
.case-card-sm {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}
.case-card-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.case-card-sm::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.case-card-sm:hover::before { transform: scaleX(1); }

.case-card-sm-img {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: var(--bg2);
}
.case-card-sm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-sm-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-card-sm-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-sm-desc {
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA card (6th card) */
.case-card-sm-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg2);
    border: 1.5px dashed var(--border);
    cursor: default;
}
.case-card-sm-cta::before { display: none; }

/* Empty state */
.cases-empty {
    text-align: center;
    padding: 80px 40px;
    border: 1.5px dashed var(--border);
    border-radius: 20px;
    background: var(--white);
}
.cases-empty-icon { font-size: 48px; margin-bottom: 16px; }
.cases-empty-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.cases-empty-desc {
    font-size: 15px;
    color: var(--ink2);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.7;
}
.cases-empty-desc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   12. TOOLS SECTION
   ========================================= */
.tools-section { background: var(--bg2); }

/* Related tools block (tool pages) should be transparent */
section.tools-section[data-tools-related] {
    background: transparent;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }

/* Link version */
a.tool-card {
    text-decoration: none;
    color: var(--ink);
}

.tool-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}
.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Text wrapper — keeps name/desc/footer in a column inside flex row on mobile */
.tool-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-name {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.tool-desc { font-size: 13px; color: var(--ink2); line-height: 1.6; margin-bottom: 16px; }
.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.tool-stat { font-size: 12px; color: var(--ink3); }
.tool-stat strong { color: var(--ink); font-weight: 600; }

.tool-arrow {
    width: 28px; height: 28px;
    background: var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tool-card:hover .tool-arrow { background: var(--accent); }

/* Subscribe card */
.tool-card-subscribe {
    background: var(--bg2);
    border: 1px dashed var(--border);
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.tool-card-subscribe::before { display: none; }

/* Tools listing page (/tools) */
.tools-listing-page .tools-grid {
    grid-template-columns: repeat(3, 1fr);
}
.tools-listing-page .page-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Tool price badge ── */
.tool-price {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}
.tool-price--free     { background: #e8f5e9; color: #2e7d32; }
.tool-price--freemium { background: #fff3e0; color: #e65100; }
.tool-price--paid     { background: #fce4ec; color: #c62828; }


/* =========================================
   13. ABOUT SECTION
   ========================================= */
.about-section { background: var(--bg); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.about-photo-frame {
    width: 80%;
    aspect-ratio: 4/5;
    background: var(--bg2);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    border: 1px solid var(--border);
    position: relative;
}
.about-badge {
    position: absolute;
    bottom: 24px; right: -20px;
    background: var(--ink);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 16px;
    z-index: 1;
}
.about-badge-num {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}
.about-badge-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.about-content .section-title { margin-bottom: 24px; }
.about-bio { font-size: 16px; color: var(--ink2); line-height: 1.8; margin-bottom: 16px; font-weight: 300; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink2);
    transition: all 0.2s;
    cursor: default;
}
.skill:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }


/* =========================================
   14. TESTIMONIALS
   ========================================= */
.testi-section { background: var(--bg2); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.testi-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
}
.testi-quote { font-size: 15px; color: var(--ink); line-height: 1.75; margin-bottom: 24px; font-weight: 300; }
.testi-quote::before {
    content: '\201C';
    font-family: var(--font-head);
    font-size: 48px;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--ink3); }


/* =========================================
   15. BLOG / WRITING
   ========================================= */
.blog-section { background: var(--bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { cursor: pointer; transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-3px); }
.post-card-link { text-decoration: none; color: inherit; display: block; }
.blog-img {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.post-card-img { background-size: cover; background-position: center; font-size: 0; }
.blog-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.blog-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.blog-excerpt { font-size: 14px; color: var(--ink2); line-height: 1.7; margin-bottom: 16px; }
.blog-meta { font-size: 12px; color: var(--ink3); }


/* =========================================
   16. CTA SECTION
   ========================================= */
.cta-section {
    background: var(--ink);
    padding: 120px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,107,43,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 16px;
}
.cta-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.05;
    max-width: 700px;
    margin: 0 auto 20px;
}
.cta-title .accent { color: var(--accent); }
.cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.35);
    max-width: 460px;
    margin: 0 auto 44px;
    font-weight: 300;
}


/* =========================================
   17. FOOTER
   ========================================= */
.site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 48px 32px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}
.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-made {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    text-align: right;
}
.footer-heart {
    color: var(--accent);
    font-size: 15px;
    display: inline-block;
    animation: heartbeat 1.4s ease infinite;
}
.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}


/* =========================================
   18. PAGE TEMPLATES
   ========================================= */

/* ── Tools embedded page — full canvas ── */
.tools-page {
    min-height: calc(100vh - var(--nav-h));
    padding-top: var(--nav-h);
    width: 100%;
}

/* ── Normal page (page.hbs) ── */
.page-wrap {
     max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 60px) 48px 80px;
}
.page-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 32px;
    text-align: center;
}
.page-feature-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}
.page-feature-image img { width: 100%; height: auto; display: block; }

/* ── Work / Case Studies listing page ── */
.work-listing-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 60px) 48px 80px;
}
.work-header { margin-bottom: 64px; }
.work-header-sub {
    font-size: 16px;
    color: var(--ink3);
    margin-top: 12px;
    font-weight: 300;
}

/* Work grid — uniform 3 columns */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Work card base */
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.09);
}
/* Left accent line on hover */
.work-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    border-radius: 20px 0 0 20px;
    z-index: 1;
}
.work-card:hover::before { transform: scaleY(1); }

.work-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg2);
}
.work-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.work-card:hover .work-card-img img { transform: scale(1.04); }

.work-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg2), var(--border));
    font-size: 48px;
    font-weight: 800;
    color: var(--ink3);
    font-family: var(--font-head);
}

.work-card-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(14,14,12,0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.work-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
    gap: 12px;
}
.work-card-title {
    font-family: var(--font-head);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}
.work-card-desc {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metrics row */
.work-card-metrics {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: auto;
    flex-wrap: wrap;
}
.work-metric { display: flex; flex-direction: column; gap: 2px; }
.work-metric-val {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--ink);
    line-height: 1;
}
.work-metric-label {
    font-size: 11px;
    color: var(--ink3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
    transition: gap 0.2s;
}
.work-card:hover .work-card-cta { gap: 12px; }
.work-card-arrow { transition: transform 0.2s; }
.work-card:hover .work-card-arrow { transform: translateX(4px); }
.work-empty { font-size: 15px; color: var(--ink3); }


/* =========================================
   19. RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
    section { padding: 80px 36px; }
    .site-nav { padding: 0 15px; }
    .hero { padding: calc(var(--nav-h) + 40px) 36px 60px; }

    .process-steps { grid-template-columns: repeat(2, 1fr); }

    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-listing-page .tools-grid { grid-template-columns: repeat(2, 1fr); }

    .cases-grid-6 { grid-template-columns: repeat(2, 1fr); }

    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-photo-frame { aspect-ratio: 16/9; max-height: 340px; font-size: 80px; }
    .about-badge { right: 16px; }

    .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-stats { gap: 32px; }
    .site-footer { padding: 32px 36px; }
    .cta-section { padding: 80px 36px; }

    .work-listing-wrap { padding: calc(var(--nav-h) + 40px) 36px 60px; }
}


/* =========================================
   20. RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    section { padding: 64px 20px; }

    /* ── Nav ── */
    .site-nav {
        padding: 0 20px;
        gap: 0;
        justify-content: space-between;
    }
    .nav-controls {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .nav-search-toggle svg { width: 22px; height: 22px; }

    /* ── Hero ── */
    .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
    .hero-title { font-size: clamp(38px, 10vw, 56px); letter-spacing: -2px; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-stats { gap: 24px; margin-top: 48px; }
    .stat-num { font-size: 28px; }

    /* ── Process ── */
    .process-steps { grid-template-columns: 1fr; gap: 1px; }
    .process-step { padding: 28px 20px; }

    /* ── Case studies ── */
    .cases-grid-6 { grid-template-columns: 1fr; gap: 12px; }
    .case-card-sm-img { height: 140px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* ── Tools grid — single column ── */
    .tools-grid { grid-template-columns: 1fr; }
    .tools-listing-page .tools-grid { grid-template-columns: 1fr; }

    /* ── Tool card — horizontal layout on mobile ── */
    .tools-listing-page .tool-card,
    .tools-section .tool-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    .tools-listing-page .tool-card .tool-icon,
    .tools-section .tool-card .tool-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .tools-listing-page .tool-card .tool-body,
    .tools-section .tool-card .tool-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        gap: 4px;
    }
    .tools-listing-page .tool-card .tool-name,
    .tools-section .tool-card .tool-name {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -0.2px;
        margin-bottom: 4px;
        white-space: normal;
        word-break: break-word;
    }
    .tools-listing-page .tool-card .tool-desc,
    .tools-section .tool-card .tool-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 6px;
        word-break: break-word;
    }
    .tools-listing-page .tool-card .tool-footer,
    .tools-section .tool-card .tool-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* ── Subscribe card — stays vertical ── */
    .tool-card.tool-card-subscribe {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 32px 24px;
        gap: 8px;
        min-height: 180px;
    }
    .tool-card.tool-card-subscribe .tool-name {
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        white-space: normal;
        width: 100%;
        letter-spacing: -0.3px;
    }
    .tool-card.tool-card-subscribe .tool-desc {
        font-size: 13px;
        text-align: center;
        max-width: 240px;
        margin: 0 auto;
    }
    .tool-card.tool-card-subscribe .btn-primary {
        width: auto;
        margin-top: 8px;
        padding: 10px 24px;
        font-size: 13px;
    }

    /* ── About ── */
    .about-inner { grid-template-columns: 1fr; gap: 32px; }
    .about-photo-frame { aspect-ratio: 3/2; font-size: 60px; max-height: 280px; }
    .about-badge { right: 0; bottom: 16px; padding: 12px 16px; }
    .about-badge-num { font-size: 22px; }

    /* ── Testimonials & blog ── */
    .testi-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .blog-grid { grid-template-columns: 1fr; }

    /* ── CTA & footer ── */
    .cta-section { padding: 64px 20px; }
    .cta-title { letter-spacing: -2px; }
    .site-footer { padding: 36px 20px 24px; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .footer-links { justify-content: center; gap: 16px; }
    .footer-made { text-align: center; }

    /* ── Page template ── */
    .page-wrap { padding: calc(var(--nav-h) + 24px) 20px 48px; }

    /* ── Work listing ── */
    .work-listing-wrap { padding: calc(var(--nav-h) + 24px) 20px 48px; }
    .work-grid { grid-template-columns: 1fr; gap: 14px; }
    .work-card-body { padding: 20px; gap: 10px; }
    .work-card-title { font-size: 18px; }
    .work-metric-val { font-size: 17px; }
    .work-card-metrics { gap: 16px; }
}


/* =========================================
   21. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
    .hero-title { font-size: 36px; letter-spacing: -1.5px; }
    .section-title { font-size: 28px; letter-spacing: -1px; }
    .btn-primary, .btn-secondary, .btn-accent { width: 100%; justify-content: center; }
    .hero-actions { width: 100%; }
    .hero-stats { flex-wrap: wrap; }
    .stat { min-width: calc(50% - 12px); }
}


/* =========================================
   22. KOENIG EDITOR — Ghost Rich Content Cards
   ========================================= */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw);
    transform: translate(calc(50vw - 50%), 0);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%; right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.kg-image { max-width: 100%; }
.kg-image-card { margin: 0; }
.kg-image-card img { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    min-height: 120px;
}
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink3); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-author { font-size: 12px; color: var(--ink2); }
.kg-bookmark-publisher { font-size: 12px; color: var(--ink3); }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-toggle-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 600; }
.kg-toggle-content { padding: 0 20px 16px; }
.kg-video-card video { width: 100%; }
.kg-audio-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px; }

@media (max-width: 768px) {
    .kg-width-wide, .kg-width-full {
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
        transform: none;
        left: auto; right: auto;
    }
    .kg-bookmark-thumbnail { display: none; }
    .kg-gallery-row { flex-direction: column; }
}


/* =========================================
   23. POST PAGE STYLES
   ========================================= */
.post-full { padding-top: var(--nav-h); }
.post-hero { max-width: 1200px; margin: 0 auto; padding: 48px 48px 0; }

.post-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.post-tag-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.post-tag-link:hover { opacity: 0.7; }

.post-title {
    font-family: var(--font-head);
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 28px;
    max-width: 800px;
}

.post-hero-split {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.post-hero-right {
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 4px;
}
.post-excerpt-hero {
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 300;
    color: var(--ink2);
    line-height: 1.6;
    letter-spacing: -0.2px;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 0;
}
.post-hero-image { margin: 0; border-radius: 4px; overflow: hidden; }
.post-hero-image img { width: 100%; height: auto; display: block; }
.post-hero-image figcaption { font-size: 12px; color: var(--ink3); margin-top: 8px; padding: 0 4px; }

.post-hero-meta { display: flex; flex-direction: column; gap: 8px; }
.post-hero-meta-inline { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.post-author-row { display: flex; align-items: center; gap: 8px; }
.post-meta-label { font-size: 13px; color: var(--ink3); }
.post-author-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.post-author-name { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.post-author-name:hover { opacity: 0.75; }
.post-meta-date { font-size: 12px; color: var(--ink3); }
.post-meta-reading { font-size: 12px; color: var(--ink3); }

.post-share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--ink2);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn svg { flex-shrink: 0; }

.post-body-wrap { max-width: 740px; margin: 0 auto; padding: 56px 48px; }

.gh-content { font-size: 18px; line-height: 1.8; color: var(--ink); font-weight: 300; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-top: 2em; margin-bottom: 0.5em;
}
.gh-content h3 {
    font-family: var(--font-head);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 1.8em; margin-bottom: 0.4em;
}
.gh-content p { margin-bottom: 1.4em; }
.gh-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content a:hover { opacity: 0.8; }
.gh-content strong { font-weight: 600; color: var(--ink); }
.gh-content em { font-style: italic; }
.gh-content ul, .gh-content ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.gh-content li { margin-bottom: 0.4em; }
.gh-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 24px;
    margin: 2em 0;
    color: var(--ink2);
    font-style: italic;
    font-size: 20px;
}
.gh-content pre { background: var(--ink); color: #e0e0e0; padding: 24px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.gh-content code { background: var(--bg2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.gh-content pre code { background: none; padding: 0; }
.gh-content img { border-radius: 8px; max-width: 100%; }
.gh-content figure { margin: 2em 0; }
.gh-content figcaption { font-size: 13px; color: var(--ink3); text-align: center; margin-top: 8px; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 3em 0; }

.post-share-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 48px 0;
    flex-wrap: wrap;
}
.share-label { font-size: 13px; font-weight: 600; color: var(--ink2); }

.author-bio-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg2);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio-placeholder {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: var(--ink3);
    flex-shrink: 0; text-align: center; padding: 4px;
}
.author-bio-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.author-bio-text { font-size: 14px; color: var(--ink2); line-height: 1.6; margin-bottom: 12px; }
.author-bio-links { display: flex; gap: 16px; }
.author-bio-links a { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.author-bio-links a:hover { opacity: 0.75; }

.post-comments { margin-top: 48px; }
.comments-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 24px; }



/* =========================================
   24. POST RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .post-hero { padding: 40px 36px 0; }
    .post-hero-split { grid-template-columns: 1fr; gap: 32px; }
    .post-hero-split .post-hero-right { padding-top: 0; }
    .post-body-wrap { padding: 48px 36px; }
    
}

@media (max-width: 768px) {
    .post-hero { padding: 24px 20px 0; }
    .post-hero-split { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }
    .post-hero-image { width: 100%; border-radius: 8px; overflow: hidden; }
    .post-hero-image img { width: 100%; height: 220px; object-fit: cover; }
    .post-title { font-size: clamp(20px, 6vw, 28px); letter-spacing: -0.3px; line-height: 1.25; }
    .post-hero-right { gap: 16px; padding-top: 0; }
    .post-excerpt-hero { display: none; }
    .post-hero-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
    
    .post-share-row .share-btn { padding: 6px 10px; font-size: 12px; }
    .post-body-wrap { padding: 28px 20px; }
    .gh-content { font-size: 16px; line-height: 1.75; }
    .gh-content blockquote { font-size: 17px; }
    .post-share-bottom { flex-direction: column; align-items: flex-start; }
    .author-bio-card { flex-direction: column; }
    
}

@media (max-width: 480px) {
    .post-hero-image img { height: 180px; }
    .post-title { font-size: 30px; letter-spacing: -1px; }
    
    .post-tags { gap: 8px; }
    .share-btn { padding: 7px 12px; font-size: 12px; }
}

@media (min-width: 769px) {
    .post-full .post-hero-split { direction: rtl; }
    .post-full .post-hero-split > * { direction: ltr; }
}


/* =========================================
   25. POST CARD COMPONENT
   ========================================= */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: var(--ink);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,14,12,0.08); }

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg2);
    text-decoration: none;
    flex-shrink: 0;
}
.post-card-image-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-card:hover .post-card-image-link img { transform: scale(1.04); }

.post-card-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg2);
    font-size: 32px;
    color: var(--border);
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image-placeholder { transform: scale(1.1); }

.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }

.post-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.post-card-tag:hover { opacity: 0.7; }

.post-card-title { font-family: var(--font-head); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.post-card-title a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.post-card-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-card-date, .post-card-reading { font-size: 12px; color: var(--ink3); }
.post-card-dot { font-size: 12px; color: var(--border); }

.post-card.no-image .post-card-body { padding: 28px; }



/* =============================================
   POST CARD LIST STYLE
   ============================================= */

.post-card-list {
    border-bottom: 1px solid var(--border);
}

.post-card-list:first-child {
    background: var(--bg2);
    border-radius: 12px;
    margin-bottom: 4px;
}

.post-card-list-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    text-decoration: none;
    color: var(--ink);
    border-radius: 12px;
    transition: background 0.2s;
}

.post-card-list-link:hover {
    background: var(--bg2);
}

.post-card-list-thumb {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg2);
}

.post-card-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--border);
}

.post-card-list-tag-dot {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.post-card-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-card-list-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-list-excerpt {
    font-size: 12px;
    color: var(--ink3);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--ink3);
    margin-top: 2px;
}

.post-card-list-meta .dot {
    color: var(--border);
}

/* See All button — centered */
.posts-see-all {
    text-align: center !important;
    margin-top: 24px !important;
}

.posts-see-all a,
.posts-see-all button {
    display: inline-block !important;
}

/* Mobile */
@media (max-width: 480px) {
    .post-card-list-thumb {
        width: 72px;
        height: 56px;
    }
    .post-card-list-title {
        font-size: 13px;
    }
}


/* =========================================
   26. GHOST PAGINATION
   ========================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 0 0;
}
.pagination a,
.pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink2);
    text-decoration: none;
}
.pagination a {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--ink3);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.pagination .page-number {
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(255,106,0,0.18);
}


/* =========================================
   27. AUTH MODALS (Sign In / Sign Up)
   ========================================= */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.auth-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11,15,26,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.auth-card {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 40px));
    background: var(--white);
    border-radius: 22px;
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 32px 100px rgba(0,0,0,0.18);
    padding: 48px 36px;
    transform: translateY(12px);
    transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
    text-align: center;
}
.auth-overlay.open .auth-card {
    transform: translateY(0);
}
.auth-logo {
    font-family: var(--font-head);
    font-weight: 650;
    font-size: 18px;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}
.auth-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.auth-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.auth-sub {
    font-size: 15px;
    color: var(--ink2);
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg2);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.10);
}
.auth-input::placeholder {
    color: var(--ink3);
}
.auth-btn {
    width: 100%;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    margin-top: 4px;
    text-align: center;
    justify-content: center;
}
.auth-switch {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink3);
    text-align: center;
}
.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-success {
    text-align: center;
    padding: 12px 0;
}
.auth-success .auth-title {
    margin-top: 0;
}
.auth-success .auth-sub {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .auth-card {
        width: min(440px, calc(100% - 32px));
        padding: 36px 24px;
        border-radius: 18px;
    }
    .auth-title {
        font-size: 22px;
    }
    .auth-sub {
        font-size: 14px;
    }
    .auth-input {
        padding: 13px 14px;
        font-size: 14px;
    }
    .auth-btn {
        padding: 13px 24px;
        font-size: 14px;
    }
}


/* =========================================
   28. GHOST COMMENTS (native {{comments}})
   ========================================= */
.post-comments {
    margin-top: 48px;
}
.post-comments .comments-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}
.gh-comments,
.ghost-comments {
    --ghost-accent-color: #ff6a00 !important;
}
[data-ghost-comment-count] {
    color: var(--ink2);
    font-size: 14px;
}
iframe.ghost-comments-iframe {
    color-scheme: light;
}
.post-comments .gh-cta-link,
.post-comments a[data-portal] {
    color: var(--accent) !important;
    font-weight: 600;
    text-decoration: none;
}
.post-comments .gh-cta-link:hover,
.post-comments a[data-portal]:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   OPTION B — Image cards (homepage writing)
   ========================================= */
.rel-b-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.rel-b-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    background: var(--white);
}
.rel-b-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.rel-b-img {
    aspect-ratio: 16 / 10;
    background: var(--bg2);
    overflow: hidden;
}
.rel-b-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.rel-b-card:hover .rel-b-img img { transform: scale(1.04); }
.rel-b-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg2);
}
.rel-b-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rel-b-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.rel-b-card-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 8px;
}
.rel-b-excerpt {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rel-b-meta {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink3);
}

.rel-b-card-cta {
    border: 1px dashed var(--border);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rel-b-card-cta:hover { background: var(--white); }
.rel-b-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    flex: 1;
}
.rel-b-cta-inner .rel-b-card-title {
    max-width: 200px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .rel-b-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .rel-b-grid { grid-template-columns: 1fr; }
}


/* =========================================
   OPTION C — Minimal rows (related posts)
   ========================================= */
.related-posts {
    background: var(--bg2);
    padding: 80px 48px;
    border-top: 1px solid var(--border);
}
.related-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.rel-c-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: 12px;
}
.rel-c-heading {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-align: center;
    margin-bottom: 48px;
    color: var(--ink);
}
.rel-c-list { }
.rel-c-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s;
}
.rel-c-item:first-child { border-top: 1px solid var(--border); }
.rel-c-item:hover { padding-left: 12px; }
.rel-c-item:hover .rel-c-title { color: var(--accent); }
.rel-c-num {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink3);
    flex-shrink: 0;
    width: 24px;
    text-align: right;
}
.rel-c-body { flex: 1; min-width: 0; }
.rel-c-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}
.rel-c-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 0.2s;
}
.rel-c-excerpt {
    margin-top: 4px;
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rel-c-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink3);
}
.rel-c-arrow {
    font-size: 18px;
    color: var(--ink3);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.rel-c-item:hover .rel-c-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

@media (max-width: 768px) {
    .related-posts { padding: 60px 20px; }
    .rel-c-item { gap: 16px; }
    .rel-c-title { font-size: 16px; }
}