/* =========================================
   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. Responsive — Tablet (≤1024px)
   19. Responsive — Mobile (≤768px)
   20. Responsive — Small Mobile (≤480px)
   21. Koenig Editor (Ghost rich content cards)
   22. Post Page Styles
   23. Post Responsive
   24. Post Card Component
   ========================================= */


/* =========================================
   1. RESET & CSS VARIABLES
   Change colors/fonts here — they apply everywhere
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* — Background colors — */
    --bg:        #F7F6F2;   /* main page background (warm white) */
    --bg2:       #EFEDE7;   /* slightly darker background for cards/sections */

    /* — Text colors — */
    --ink:       #0E0E0C;   /* primary text (near black) */
    --ink2:      #4A4A45;   /* secondary text (dark grey) */
    --ink3:      #9A9A92;   /* muted text (light grey) */

    /* — Brand color — */
    --accent:    #FF6B2B;   /* orange — used for buttons, highlights, links */

    /* — Utility — */
    --white:     #FFFFFF;
    --border:    rgba(14,14,12,0.1);  /* subtle divider lines */

    /* — Typography — */
    --font-head: 'Syne', sans-serif;   /* headings & logo */
    --font-body: 'DM Sans', sans-serif; /* body text */

    /* — Layout — */
    --nav-h:     72px;  /* navbar height — used for sticky offset calculations */
}


/* =========================================
   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; /* prevent horizontal scroll */
}

img { max-width: 100%; display: block; }
a { color: inherit; } /* links inherit text color by default */


/* =========================================
   3. NAVIGATION — DESKTOP
   Layout: [Logo] ............. [Links] [Search] [Sign In]
   margin-left: auto on .nav-links pushes everything to the right
   ========================================= */

/* The sticky top bar */
.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;                          /* space between logo and nav-links */
    background: rgba(247,246,242,0.9);  /* semi-transparent so page scrolls behind it */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Logo text on the left */
.nav-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0; /* never shrink the logo */
}

/* Orange dot after the logo text */
.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 link list — pushed to the right via margin-left: auto */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin-left: auto; /* ← this is what pushes links to the right side */
}

/* Individual nav link style */
.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); }

/* Right-side wrapper: search icon + hamburger sit together */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search icon button — visible on desktop AND mobile (outside the menu) */
.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink2);
    display: flex;
    align-items: center;
    padding: 6px;          /* slightly bigger tap area */
    transition: color 0.2s;
}
.nav-search-toggle svg {
    width: 20px;           /* bigger search icon — change this to resize */
    height: 20px;
}
.nav-search-toggle:hover { color: var(--ink); }

/* Sign In / Account CTA button — orange pill style */
.nav-cta {
    background: var(--accent);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
    background: #e85a1f;          /* slightly darker orange on hover */
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Hamburger icon — hidden on desktop, shown on mobile via media query below */
.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; /* above nav dropdown */
}

/* The three lines of the hamburger */
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animates into an X when menu is open (JS adds .open class) */
.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
   Dropdown slides down from the nav bar.
   JS toggles .open class on #nav-links to show/hide.
   ========================================= */
@media (max-width: 768px) {

    /* Show hamburger on mobile */
    .nav-hamburger { display: flex; }

    /* Mobile dropdown — hidden by default */
    .nav-links {
        position: fixed;
        top: var(--nav-h);  /* starts right below the navbar */
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 25%;
        margin-left: 0; /* reset desktop margin */
        background: rgba(247,246,242,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        z-index: 199;

        /* Hidden state — JS will add .open to show it */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    /* Open state — triggered by JS adding .open class */
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Each menu item spans full width */
    .nav-links li { width: 100%; text-align: center; }

    /* Mobile link style — bigger, block-level with dividers */
    .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; }

    /* CTA (Sign In) inside mobile dropdown — centred, full width */
    .nav-links .nav-cta {
        margin: 12px auto 0;
        width: calc(100% - 40px);
        justify-content: center;
        border-radius: 100px;
        padding: 12px 20px;
    }

    /* Search stays OUTSIDE the dropdown (in .nav-controls), so hide any
       accidental .nav-search-toggle inside the list if it ends up there */
    .nav-links .nav-search-toggle { display: none; }
}


/* =========================================
   5. BUTTONS
   Three styles: primary (dark), secondary (outline), accent (orange)
   ========================================= */

/* Dark filled pill button */
.btn-primary {
    background: var(--ink);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); background: #1a1a18; }

/* Outline/ghost button */
.btn-secondary {
    text-align: center;
    background: transparent;
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--ink3); }

/* Orange accent button */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,107,43,0.35); }


/* =========================================
   6. SHARED / SECTION UTILITIES
   Reusable pieces used across multiple sections
   ========================================= */

/* Default padding for all <section> tags */
section { padding: 100px 48px; }

/* Small uppercase label above section titles (e.g. "ABOUT ME") */
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 16px;
}

/* Large section heading */
.section-title {
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 52px); /* fluid — scales with viewport */
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    max-width: 600px;
}

/* Row with title on left and "View all →" link on right */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
}

/* "View all" link */
.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
   ========================================= */

/* Fade up from below — used on hero elements */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pulse — used on the green "available" dot in hero */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Marquee scroll — used in the skills ticker */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Heartbeat — used on footer heart icon */
@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); }
}

/* Scroll reveal — JS adds .visible when element enters viewport */
.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;
    /* top padding accounts for fixed navbar height */
    padding: calc(var(--nav-h) + 60px) 48px 80px;
}

/* "Available for work" pill badge */
.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;
}

/* Green pulsing dot inside the badge */
.hero-tag-dot {
    width: 7px; height: 7px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Big hero headline */
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(44px, 7vw, 96px); /* fluid font size */
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -3px;
    max-width: 900px;
    animation: fadeUp 0.6s ease 0.1s both;
}

/* Orange underline highlight on a word in the title */
.hero-title .highlight { position: relative; display: inline-block; }
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0; right: 0;
    height: 12px;
    background: var(--accent);
    z-index: -1;
    border-radius: 2px;
    opacity: 0.4;
}

/* Subtitle paragraph */
.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;
}

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

/* Stats row at the bottom of hero (e.g. "5+ Years") */
.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: -1.5px;
}
.stat-label { font-size: 13px; color: var(--ink3); margin-top: 2px; }


/* =========================================
   9. MARQUEE BANNER
   Scrolling skills ticker
   ========================================= */
.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
   Dark background, 4-column grid of steps
   ========================================= */
.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); }

/* Big faded step number in background */
.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;
}

/* Orange icon box */
.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
   Asymmetric 2-column grid
   ========================================= */
.cases { background: var(--bg); }

.cases-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* left card is wider */
    gap: 20px;
}

.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); }

.case-img {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
}
.case-body { padding: 28px; }
.case-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* Small pill tag label */
.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: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.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; }


/* =========================================
   12. TOOLS SECTION
   3-column card grid on light bg
   ========================================= */
.tools-section { background: var(--bg2); }

.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;
}

/* Orange top-border accent that slides in on hover */
.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); }

.tool-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.tool-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: -0.3px; 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; }
.tool-stat { font-size: 12px; color: var(--ink3); }
.tool-stat strong { color: var(--ink); font-weight: 600; }

/* Arrow circle on bottom right */
.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;
}
.tool-card:hover .tool-arrow { background: var(--accent); }


/* =========================================
   13. ABOUT SECTION
   ========================================= */
.about-section { background: var(--bg); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Photo placeholder frame */
.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;
}

/* Floating badge on top of photo */
.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; }

/* Skill tags */
.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
   3-column card grid on slightly darker bg
   ========================================= */
.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; }

/* Big opening quote mark */
.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 thumbnail */
.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; }

/* Orange category label */
.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: 700;
    letter-spacing: -0.5px;
    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
   Full-width dark call-to-action with glow
   ========================================= */
.cta-section {
    background: var(--ink);
    padding: 120px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Radial orange glow in centre */
.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: 800;
    letter-spacing: -3px;
    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;
}

/* Top row: logo | links | "made with love" */
.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;
}

/* Beating heart icon */
.footer-heart {
    color: var(--accent);
    font-size: 15px;
    display: inline-block;
    animation: heartbeat 1.4s ease infinite;
}

/* Copyright line */
.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}


/* =========================================
   18. 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; }

    /* Switch from 4-col to 2-col */
    .process-steps { grid-template-columns: repeat(2, 1fr); }

    /* Stack cases vertically */
    .cases-grid { grid-template-columns: 1fr; }
    .case-right { flex-direction: row; }
    .case-right .case-card { flex: 1; }

    /* 2-col tools */
    .tools-grid { grid-template-columns: repeat(2, 1fr); }

    /* Stack about section */
    .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; }

    /* 2-col testi and blog */
    .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; }
}


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

    section { padding: 64px 20px; }
    .site-nav { padding: 0 20px; gap: 0; }
    .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }

    /* Hero text sizes */
    .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 single column */
    .process-steps { grid-template-columns: 1fr; gap: 1px; }
    .process-step { padding: 28px 20px; }

    /* Cases single column */
    .cases-grid { grid-template-columns: 1fr; }
    .case-right { flex-direction: column; }
    .case-img { height: 180px; font-size: 48px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

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

    /* About single column */
    .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; }

    /* Testi and blog single column */
    .testi-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .blog-grid { grid-template-columns: 1fr; }

    .cta-section { padding: 64px 20px; }
    .cta-title { letter-spacing: -2px; }

    /* Footer stack */
    .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; }
}


/* =========================================
   20. 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; }

    /* Full width buttons on tiny screens */
    .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); }
}


/* =========================================
   21. KOENIG EDITOR — Ghost Rich Content Cards
   Required classes for Ghost's built-in content editor.
   Don't remove these or post content will break.
   ========================================= */

/* Wide card — extends beyond content column */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw);
    transform: translate(calc(50vw - 50%), 0);
}

/* Full-bleed card — edge to edge */
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Image cards */
.kg-image { max-width: 100%; }
.kg-image-card { margin: 0; }
.kg-image-card img { margin: 0 auto; }

/* Gallery */
.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; }

/* Embed (YouTube, etc.) */
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }

/* Bookmark card */
.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-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.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; }

/* Toggle card */
.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; }

/* Video & Audio */
.kg-video-card video { width: 100%; }
.kg-audio-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px; }

/* Koenig mobile overrides */
@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; }
}


/* =========================================
   22. POST PAGE STYLES
   Individual blog post layout
   ========================================= */

/* Offset for fixed navbar */
.post-full { padding-top: var(--nav-h); }

/* Post header area */
.post-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 0;
}

/* Tag links above title (e.g. "PRODUCT") */
.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 */
.post-title {
    font-family: var(--font-head);
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 28px;
    max-width: 800px;
}

/* Two-column hero: image left, meta right */
.post-hero-split {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

/* Right column sticks while scrolling */
.post-hero-right {
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 4px;
}

/* Pull-quote style excerpt */
.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;
}

/* Featured image */
.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; }

/* Author + date + reading time */
.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); }

/* Social share buttons row */
.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 content wrapper */
.post-body-wrap { max-width: 740px; margin: 0 auto; padding: 56px 48px; }

/* Ghost content typography */
.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; }

/* Bottom share row */
.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 */
.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; }

/* Comments */
.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; }

/* Related posts section */
.related-posts { background: var(--bg2); padding: 80px 48px; border-top: 1px solid var(--border); }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 40px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 40px; }


/* =========================================
   23. 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; }
    .related-posts { padding: 60px 36px; }
}

@media (max-width: 768px) {
    .post-hero { padding: 24px 20px 0; }

    /* Stack image above text on mobile */
    .post-hero-split {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-bottom: 32px;
    }

    /* Image fills width, fixed height */
    .post-hero-image { width: 100%; border-radius: 8px; overflow: hidden; }
    .post-hero-image img { width: 100%; height: 220px; object-fit: cover; }

    /* Smaller title */
    .post-title { font-size: clamp(20px, 6vw, 28px); letter-spacing: -0.3px; line-height: 1.25; }

    .post-hero-right { gap: 16px; padding-top: 0; }

    /* Hide excerpt on mobile to save space */
    .post-excerpt-hero { display: none; }

    /* Meta row goes horizontal */
    .post-hero-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
    .post-meta-date::before { content: '·'; margin-right: 8px; color: #ccc; }

    .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; }
    .related-posts { padding: 48px 20px; }
    .related-title { margin-bottom: 28px; }
}

@media (max-width: 480px) {
    .post-hero-image img { height: 180px; }
    .post-title { font-size: 20px; letter-spacing: -1px; }
    .post-meta-date { display: none; } /* only show name + reading time */
    .post-tags { gap: 8px; }
    .share-btn { padding: 7px 12px; font-size: 12px; }
}

/* Desktop: image on LEFT even if HTML order differs
   Uses direction:rtl trick to flip columns without changing HTML */
@media (min-width: 769px) {
    .post-full .post-hero-split { direction: rtl; }
    .post-full .post-hero-split > * { direction: ltr; }
}


/* =========================================
   24. POST CARD COMPONENT
   Used in blog listing, related posts, etc.
   ========================================= */
.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); }

/* Thumbnail */
.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); }

/* Placeholder when no thumbnail exists */
.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); }

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

/* Category tag */
.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; }

/* Title */
.post-card-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.5px; 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); }

/* Excerpt — clamped to 2 lines */
.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;
}

/* Meta row: avatar | date · reading time */
.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); }

/* Slightly more padding when no image */
.post-card.no-image .post-card-body { padding: 28px; }


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


/* ── Normal Page ── */
.page-wrap {
    max-width: 1024px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 48px) 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;
}

/* Mobile */
@media (max-width: 768px) {
    .page-wrap { padding: calc(var(--nav-h) + 24px) 20px 48px; }
}


/* ── Tools Listing Page ── */
.tools-listing-page .tools-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns like the screenshot */
}

/* Make tool-card work as an <a> tag */
a.tool-card {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

/* Subscribe card — slightly different bg, no top border animation */
.tool-card-subscribe {
    background: var(--bg2);
    border: 1px dashed var(--border);
}
.tool-card-subscribe::before {
    display: none; /* no orange top bar on subscribe card */
}

/* Mobile — 1 column */
@media (max-width: 768px) {
    .tools-listing-page .tools-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    .tools-listing-page .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
