/* Copyneat Portfolio Custom Styles */

/* Extend background into iPhone safe area */
html,
body {
    background-color: #FFF8E7;
}

/* Reset some default Casper styles */
.copyneat-portfolio .site-header-content {
    padding: 0;
    margin: 0;
}

.home-template .site-main,
.copyneat-portfolio ~ * .site-main,
body:has(.copyneat-portfolio) .site-main {
    padding: 0 !important;
}

.home-template .outer:not(.gh-head),
body:has(.copyneat-portfolio) .outer:not(.gh-head) {
    padding: 0 !important;
}

/* Page-wide horizontal rhythm */
:root {
    --page-pad: 120px;
    --who-pad: 200px;
}

/* Container */
.copyneat-portfolio {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Header - minimal customization */
.gh-head {
    background: #FFF8E7;
    position: relative;
    z-index: 1001;
}

.home-template .gh-head,
.post-template .gh-head,
.tag-template .gh-head {
    border-bottom: 1px solid #000;
}

/* Remove header border on non-home pages */
.gh-head-no-border {
    border-bottom: none !important;
}

/* Remove dropdown bottom border on non-home pages (keeps top border for animation) */
.gh-head-no-border .gh-dropdown-menu {
    border-bottom: none !important;
}

/* Ensure logo and burger are visible */
.gh-head-logo {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Oversized logo on home + post pages */
.home-template .gh-head,
.post-template .gh-head {
    overflow: visible;
}

.home-template .gh-head-logo img,
.post-template .gh-head-logo img {
    height: 160px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    position: relative;
    top: 70px;
    z-index: 1002;
}

.home-template .hero-section,
.post-header,
.page-header {
    padding-top: 120px;
}

.gh-head-actions {
    display: flex !important;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 20px;
}

.lang-option {
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.lang-option:hover,
.lang-option.lang-active {
    opacity: 1;
}

.gh-burger-menu {
    display: block !important;
    visibility: visible !important;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 500;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gh-burger-menu:hover {
    opacity: 0.7;
}

/* Full-screen overlay navigation */
.gh-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF8E7;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.gh-dropdown-menu.is-open {
    opacity: 1;
    pointer-events: all;
}


.gh-dropdown-content {
    padding: 0 80px;
    width: 100%;
    max-width: 1800px;
}

.dropdown-lang-switcher {
    display: none;
}

.gh-dropdown-content .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.gh-dropdown-content .nav li {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.gh-dropdown-content .nav li:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.gh-dropdown-content .nav a {
    font-size: 4.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 16px 0;
    transition: opacity 0.2s ease;
    line-height: 1.2;
}

.gh-dropdown-content .nav a:hover {
    opacity: 0.5;
}

.nav-sub {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* Remove default Ghost/Casper spacing on homepage */
.home-template .viewport,
body:has(.copyneat-portfolio) .viewport {
    padding: 0 !important;
}

.home-template .inner,
body:has(.copyneat-portfolio) .inner {
    padding: 0 !important;
}

/* Remove default Casper footer spacing */
.site-footer.outer {
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer {
    padding-bottom: 0 !important;
    margin: 0 !important;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    background: #FFF8E7;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Remove default Casper theme spacing */
.home-template .site-content,
body:has(.copyneat-portfolio) .site-content {
    padding: 0 !important;
}

/* Decorative vertical line - goes through entire hero section */
.hero-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-content {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    position: static;
    z-index: 4;
    padding: 40px 80px 120px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Position hero image to fill entire hero section (parent) */
.hero-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-right {
    max-width: 900px;
    padding: 20px 100px 20px 20px;
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: 9rem;
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 30px 0;
    color: #000;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0 0 50px 0;
    color: #000;
    font-weight: 500;
    position: relative;
    display: block;
    min-height: 7rem;
}

.hero-subtitle::after {
    content: '|';
    display: inline;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cta-link {
    display: inline-block;
    font-size: 1.8rem;
    color: #000;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.cta-link:hover {
    opacity: 0.7;
}

.cta-link-small {
    font-size: 1.2rem;
    font-weight: 400;
    padding-left: 15px;
    margin-top: -5px;
}

/* ==================== BANNER STRIP (Animated Marquee) ==================== */
.banner-strip {
    background: #fff;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
}

.banner-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}

.banner-item {
    display: inline-block;
    padding: 0 80px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    border-right: 1px solid #000;
    flex-shrink: 0;
}

/* Animation handled by JavaScript */

/* ==================== WHO ARE YOU SECTIONS ==================== */
.who-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 150px;
}

.who-section-light {
    background: #fff;
}

.who-section-gray {
    background: #f5f5f5;
    border-bottom: 1px solid #000;
    padding-bottom: 140px;
}

/* Vertical line through the middle of gray section only */
.who-section-gray::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
    transform: translateX(-50%);
    z-index: 1;
}

.who-content {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.who-content-reversed {
    direction: ltr;
}

.who-content-reversed .who-left {
    order: 2;
}

.who-content-reversed .who-right {
    order: 1;
}

.who-right {
    max-width: 600px;
}

.typewriter-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.portrait-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.portrait-image-mobile {
    display: none;
}

.copyneat-portfolio img {
    filter: grayscale(100%);
}

/* Make portrait image overlap the center line in gray section */
.who-section-gray .portrait-image {
    margin-left: -80px;
}

/* Portrait image touches the bottom border */
.who-section-gray {
    padding-bottom: 0;
}

.who-section-gray .who-left {
    align-self: end;
}

.who-title {
    font-size: 5.5rem;
    font-weight: 900;
    margin: 0 0 40px 0;
    color: #000;
    letter-spacing: -0.02em;
}

.who-text {
    font-size: 1.8rem;
    line-height: 1.7;
    margin: 0 0 50px 0;
    color: #333;
}

.who-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: #ffe400;
    color: #000;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50px;
    border: 2px solid #000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== THREE IMAGES SECTION ==================== */
.three-images-section {
    background: #fff;
    padding: 120px var(--page-pad);
    text-align: center;
}

.three-images-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 auto 80px;
    color: #000;
    max-width: 1200px;
    letter-spacing: -0.02em;
}

.three-images-cta {
    display: block;
    text-align: center;
    margin-top: 30px;
}

.three-images-caption {
    font-size: 1.8rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
    max-width: 640px;
    margin: 60px auto 0;
}

.three-images-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.image-item {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

/* ==================== STORY SECTION ==================== */
.story-section {
    background: #fff;
    padding: 120px var(--page-pad);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 40px 0;
    color: #000;
    letter-spacing: -0.02em;
}

.story-content h3 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 60px 0 30px 0;
    color: #000;
    letter-spacing: -0.02em;
}

.story-content h2:first-child,
.story-content h3:first-child {
    margin-top: 0;
}

.story-content p {
    font-size: 1.8rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 2rem 0;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* ==================== FOOTER ==================== */
.copyneat-footer {
    background: #FFF8E7;
    padding: 60px 40px 30px;
    border-top: 1px solid #000;
}

/* Row 1: Logo + Social | Navigation */
.footer-row-1 {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.footer-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-tagline {
    font-size: 1.2rem;
    color: #666;
    margin: 2px 0 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: #333;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul,
.footer-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Row 2: 3-column info */
.footer-row-2 {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid #000;
}

.footer-col {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
}

.footer-col p {
    margin: 0 0 6px 0;
}

.footer-col strong {
    font-weight: 700;
    color: #000;
}

.footer-col a {
    color: #333;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-legal-link {
    text-decoration: underline;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Tablet */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 7rem;
    }

    .hero-subtitle {
        font-size: 2rem;
        min-height: 6rem;
    }

    .who-title {
        font-size: 3.5rem;
    }

    .who-text,
    .three-images-caption {
        font-size: 1.3rem;
    }

    .hero-content {
        max-width: 1400px;
        padding: 35px 40px 100px;
    }

    .hero-right {
        padding: 20px 80px 20px 20px;
        max-width: 800px;
    }

    .who-content {
        gap: 160px;
        max-width: 1400px;
    }

    .footer-row-1,
    .footer-row-2 {
        max-width: 1400px;
    }

    .footer-logo {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {

    .hero-title {
        font-size: 5.5rem;
    }

    .hero-subtitle {
        font-size: 1.7rem;
        min-height: 5rem;
    }

    .who-title {
        font-size: 3rem;
    }

    .who-text,
    .three-images-caption {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 30px 40px 80px;
    }

    .hero-right {
        padding: 15px 60px 15px 15px;
        max-width: 650px;
    }

    .who-content {
        gap: 120px;
    }

    .who-section {
        padding: 100px 60px;
    }

    .typewriter-image,
    .portrait-image {
        max-width: 450px;
    }

    .banner-item {
        font-size: 1.2rem;
        padding: 0 60px;
    }

    .three-images-title {
        font-size: 3rem;
        margin-bottom: 60px;
    }

    .three-images-container {
        gap: 50px;
        max-width: 900px;
    }

    .three-images-section {
        padding: 100px 80px;
    }

    .story-section {
        padding: 100px 80px;
    }

    .story-content h2 {
        font-size: 3.5rem;
        margin-bottom: 35px;
    }

    .story-content h3 {
        font-size: 2.2rem;
        margin: 50px 0 25px 0;
    }

    .story-content p {
        font-size: 1.3rem;
    }
}

/* Desktop: show desktop image, hide mobile image */
.hero-image-mobile {
    display: none;
}

.hero-image-desktop {
    display: block;
}

/* ==================== MOBILE (max 768px) ==================== */
@media (max-width: 768px) {

    /* --- Logo mobile (home + posts) --- */
    .home-template .gh-head-logo img,
    .post-template .gh-head-logo img {
        height: 120px !important;
        position: relative;
        top: 40px;
    }

    .home-template .hero-section,
    .post-header,
    .page-header {
        padding-top: 100px;
    }

    /* --- Nav --- */
    .gh-dropdown-content {
        padding: 0 32px;
        max-width: none;
    }

    .gh-dropdown-content .nav li {
        opacity: 1 !important;
        transform: none !important;
    }

    .gh-dropdown-content .nav a {
        font-size: 2.8rem;
        padding: 14px 0;
        display: block;
    }

    .nav-sub {
        display: none;
    }

    .gh-head-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        gap: 0 !important;
        height: auto !important;
    }

    .gh-burger-menu {
        font-size: 1.8rem;
        position: relative;
        z-index: 10000;
    }

    /* Hide header lang-switcher on mobile, show inside dropdown instead */
    .lang-switcher {
        display: none;
    }

    .dropdown-lang-switcher {
        display: flex;
        gap: 16px;
        align-items: center;
        position: absolute;
        bottom: 40px;
        left: 32px;
    }

    .dropdown-lang-switcher .lang-option {
        font-size: 1.8rem;
        font-weight: 600;
    }

    /* --- Hero: image on top, text below --- */
    .hero-image-desktop {
        display: none;
    }

    .hero-image-mobile {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    .hero-section::before {
        display: none;
    }

    .hero-left {
        position: relative;
        width: 100%;
        height: 60vw;
        max-height: 420px;
        z-index: 1;
    }

    .hero-image {
        object-position: top center;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 40px 24px 60px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .hero-right {
        padding: 0;
        max-width: 100%;
        z-index: 2;
    }

    .hero-title {
        font-size: 5rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 2rem;
        min-height: 6rem;
        margin-bottom: 32px;
    }

    .cta-link {
        font-size: 1.8rem;
    }

    /* --- Banner --- */
    .banner-strip {
        padding: 18px 0;
    }

    .banner-item {
        font-size: 1.4rem;
        padding: 0 40px;
    }

    /* --- Who sections --- */
    .who-section-gray::before {
        display: none;
    }

    .who-section-gray {
        padding-bottom: 60px;
    }

    .who-section-gray .who-left {
        align-self: auto;
    }

    .who-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .who-content-reversed .who-left,
    .who-content-reversed .who-right {
        order: unset;
    }

    .who-section {
        padding: 60px 24px;
        min-height: auto;
    }

    /* Title → image → body text on mobile */
    .who-right {
        display: contents;
    }

    .who-title {
        order: 1;
        margin-bottom: 24px;
    }

    .who-left {
        order: 2;
        margin-bottom: 24px;
    }

    .who-body {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .who-title {
        font-size: 3.2rem;
        text-align: left;
        margin-bottom: 20px;
    }

    .who-text,
    .three-images-caption {
        font-size: 1.7rem;
    }

    .who-text {
        text-align: left;
        margin-bottom: 28px;
    }

    .typewriter-image,
    .portrait-image {
        max-width: 280px;
        margin: 0 auto;
    }

    /* CTA buttons → underlined text links on mobile */
    .cta-button {
        background: none;
        border: none;
        padding: 0;
        border-radius: 0;
        font-size: 1.8rem;
        font-weight: 700;
        color: #000;
        text-decoration: underline;
        display: block;
        text-align: left;
        width: auto;
        max-width: none;
        white-space: nowrap;
        transition: opacity 0.3s ease;
    }

    .cta-button::after {
        content: " →";
        text-decoration: none;
        display: inline;
    }

    .cta-button:hover {
        background: none;
        opacity: 0.7;
    }

    .cta-link-small {
        padding-left: 0;
        margin-top: 0;
    }

    /* Portrait image: show mobile variant, hide desktop */
    .portrait-image-desktop {
        display: none;
    }

    .portrait-image-mobile {
        display: block;
    }

    /* --- Three images: side by side --- */
    .three-images-section {
        padding: 60px 24px;
    }

    .three-images-title {
        font-size: 2.4rem;
        margin-bottom: 32px;
    }

    .three-images-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    /* --- Story --- */
    .story-section {
        padding: 60px 24px;
    }

    .story-content h2 {
        font-size: 3rem;
        margin-bottom: 24px;
    }

    .story-content h3 {
        font-size: 2rem;
        margin: 36px 0 18px 0;
    }

    .story-content p {
        font-size: 1.7rem;
        margin-bottom: 1.6rem;
    }

    /* --- Footer --- */
    .footer-row-1 {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 48px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-logo {
        font-size: 2.2rem;
    }

    .footer-right {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .footer-row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col {
        font-size: 1.4rem;
    }
}

/* ==================== SERVICES PAGE (page.hbs) ==================== */

/* Reset page template defaults */
.page-template .site-main {
    padding: 0 !important;
}

.copyneat-page {
    background: #fff;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: #FFF8E7;
    border-bottom: 1px solid #000;
    padding: 100px 40px 80px;
    text-align: center;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: #000;
    letter-spacing: -0.02em;
}

/* Feature Image Section */
.page-feature-image {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.page-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Page Content */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 120px;
}

.page-content-inner {
    color: #333;
}

/* Banner strip inside page content: break out of content width to go full-width */
.page-content-inner .banner-strip {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Drop cap - first letter styling */
.page-content-inner p:first-of-type::first-letter {
    float: left;
    font-size: 7rem;
    line-height: 0.8;
    font-weight: 900;
    margin: 10px 15px 0 0;
    color: #000;
    font-family: Georgia, serif;
}

/* Typography for page content */
.page-content-inner h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 60px 0 30px 0;
    color: #000;
    letter-spacing: -0.02em;
}

.page-content-inner h2:first-child {
    margin-top: 0;
}

.page-content-inner h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 50px 0 25px 0;
    color: #000;
    letter-spacing: -0.01em;
}

.page-content-inner h4 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 40px 0 20px 0;
    color: #000;
}

.page-content-inner p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin: 0 0 1.8rem 0;
    color: #333;
}

.page-content-inner p:last-child {
    margin-bottom: 0;
}

.page-content-inner ul,
.page-content-inner ol {
    font-size: 1.6rem;
    line-height: 1.8;
    margin: 0 0 1.8rem 0;
    padding-left: 30px;
    color: #333;
}

.page-content-inner li {
    margin-bottom: 0.8rem;
}

.page-content-inner a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.page-content-inner a:hover {
    opacity: 0.6;
}

.page-content-inner blockquote {
    border-left: 4px solid #ffe400;
    padding: 20px 30px;
    margin: 30px 0;
    background: #FFF8E7;
    font-size: 1.8rem;
    line-height: 1.7;
    color: #000;
    font-style: italic;
}

.page-content-inner img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 8px;
}

.page-content-inner hr {
    border: none;
    border-top: 1px solid #000;
    margin: 60px 0;
}

/* Buttons in page content — match homepage .cta-button style */
.page-content-inner .cta-button,
.page-content-inner a.button,
.page-content-inner .kg-btn,
.page-content-inner .kg-btn-accent {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 50px !important;
    height: 60px !important;
    background: #ffe400 !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    border-radius: 50px !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: none !important;
}

.page-content-inner .kg-button-card {
    margin: 30px 0;
}

.page-content-inner .cta-button:hover,
.page-content-inner a.button:hover,
.page-content-inner .kg-btn:hover,
.page-content-inner .kg-btn-accent:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
}

/* Responsive adjustments for pages */
@media (max-width: 1024px) {
    .page-title {
        font-size: 4.5rem;
    }

    .page-header {
        padding: 80px 40px 60px;
    }

    .page-feature-image {
        margin: 60px auto;
    }

    .page-content {
        padding: 50px 40px 100px;
    }

    .page-content-inner h2 {
        font-size: 2.8rem;
    }

    .page-content-inner h3 {
        font-size: 1.9rem;
    }

    .page-content-inner p,
    .page-content-inner ul,
    .page-content-inner ol {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 3.5rem;
    }

    .page-header {
        padding: 60px 30px 50px;
    }

    .page-feature-image {
        margin: 50px auto;
        padding: 0 30px;
    }

    .page-content {
        padding: 40px 30px 80px;
    }

    .page-content-inner h2 {
        font-size: 2.2rem;
        margin: 50px 0 25px 0;
    }

    .page-content-inner h3 {
        font-size: 1.6rem;
        margin: 40px 0 20px 0;
    }

    .page-content-inner h4 {
        font-size: 1.4rem;
    }

    .page-content-inner p,
    .page-content-inner ul,
    .page-content-inner ol {
        font-size: 1.2rem;
    }

    .page-content-inner blockquote {
        font-size: 1.4rem;
        padding: 15px 20px;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 50px 20px 40px;
    }

    .page-feature-image {
        margin: 40px auto;
        padding: 0 20px;
    }

    .page-content {
        padding: 30px 20px 60px;
    }

    .page-content-inner h2 {
        font-size: 1.9rem;
    }

    .page-content-inner h3 {
        font-size: 1.4rem;
    }

    .page-content-inner p,
    .page-content-inner ul,
    .page-content-inner ol {
        font-size: 1.1rem;
    }

    .page-content-inner .cta-button,
    .page-content-inner a.button {
        padding: 15px 35px;
        font-size: 1.2rem;
    }
}

.home-template .site-header-content {
    padding: 0;
    min-height: 0;
}

/* ==================== POST PAGE (post.hbs) ==================== */

.copyneat-post {
    background: #fff;
    min-height: 100vh;
}

/* Reset Casper spacing for post template — only main content, not nav */
.post-template .site-main {
    padding: 0 !important;
}

/* ---- Post Header (full-width, above the grid) ---- */
.post-header {
    background: #fff;
    padding: 120px 0 0;
    text-align: left;
}

.post-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}

.post-kicker {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
}

.post-kicker:hover {
    opacity: 0.6;
}

.post-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #000;
    margin: 0 0 30px 0;
}

.post-deck {
    font-size: 2rem;
    line-height: 1.5;
    color: #444;
    font-style: italic;
    margin: 0 0 40px 0;
    font-weight: 400;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    border-top: 1px solid #000;
    padding-top: 20px;
}

.post-meta-sep {
    color: #ccc;
}

/* ---- Feature Image ---- */
.post-feature-image {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 0 40px;
    line-height: 0;
}

.post-feature-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-feature-caption {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    line-height: 1.5;
    font-style: italic;
    background: #fff;
}

/* ---- Full post layout: main + sidebar grid ---- */
.post-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 80px;
    align-items: start;
}

.post-main {
    min-width: 0;
}

/* ---- Post Body ---- */
.post-content {
    padding: 60px 0 80px;
}

.post-content-inner {
    color: #333;
}

/* Drop cap */
.post-content-inner p:first-of-type::first-letter {
    float: left;
    font-size: 7rem;
    line-height: 0.8;
    font-weight: 900;
    margin: 10px 15px 0 0;
    color: #000;
    font-family: Georgia, serif;
}

/* Typography */
.post-content-inner p {
    font-size: 1.8rem;
    line-height: 1.8;
    margin: 0 0 2rem 0;
    color: #333;
}

.post-content-inner h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 60px 0 20px 0;
    color: #000;
    letter-spacing: -0.02em;
    border-top: 3px solid #000;
    padding-top: 30px;
}

.post-content-inner h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 50px 0 16px 0;
    color: #000;
}

.post-content-inner h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 12px 0;
    color: #000;
}

.post-content-inner ul,
.post-content-inner ol {
    font-size: 1.8rem;
    line-height: 1.8;
    margin: 0 0 2rem 0;
    padding-left: 30px;
    color: #333;
}

.post-content-inner li {
    margin-bottom: 0.6rem;
}

.post-content-inner a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.post-content-inner a:hover {
    opacity: 0.6;
}

.post-content-inner blockquote {
    border-left: 4px solid #ffe400;
    padding: 20px 30px;
    margin: 40px 0;
    background: #FFF8E7;
    font-size: 2rem;
    line-height: 1.6;
    color: #000;
    font-style: italic;
}

.post-content-inner hr {
    border: none;
    border-top: 1px solid #000;
    margin: 60px 0;
}

.post-content-inner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
}

.post-content-inner figure {
    margin: 40px 0;
}

.post-content-inner figcaption {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Ghost card: button */
.post-content-inner .kg-btn,
.post-content-inner .kg-btn-accent {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 50px !important;
    height: 60px !important;
    background: #ffe400 !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    border-radius: 50px !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: none !important;
}

.post-content-inner .kg-btn:hover,
.post-content-inner .kg-btn-accent:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    opacity: 1 !important;
}

.post-content-inner .kg-button-card {
    margin: 30px 0;
}

/* Banner strip inside post content */
.post-content-inner .banner-strip {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* ---- Author Bio ---- */
.post-author-bio {
    background: #fff;
}

.post-author-bio-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 40px 80px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border-top: 1px solid #000;
    padding-top: 40px;
}

.post-author-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    flex-shrink: 0;
    filter: grayscale(100%);
    border: 2px solid #000;
}

.post-author-details {
    flex: 1;
}

.post-author-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 6px;
}

.post-author-name {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
    color: #000;
}

.post-author-text {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 24px 0;
}

.post-author-signature {
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: 0;
    filter: none !important;
}

/* ---- Sidebar ---- */
.post-sidebar {
    align-self: stretch;
}

.post-sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    border-top: 3px solid #000;
    padding-top: 20px;
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    margin-bottom: 16px;
}

/* TOC */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-item a {
    font-size: 1.3rem;
    color: #666;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
    padding: 3px 0;
}

.toc-item a:hover,
.toc-item a.toc-active {
    color: #000;
    font-weight: 600;
}

.toc-h3 a {
    padding-left: 14px;
    font-size: 1.2rem;
}

/* Subscribe widget */
.sidebar-subscribe-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 16px 0;
}

.sidebar-subscribe-btn {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}

.sidebar-subscribe-btn:hover {
    opacity: 0.6;
}

.sidebar-subscribe-btn-secondary {
    font-weight: 400;
}

/* Hire Me widget */
.sidebar-hireme-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 16px 0;
}

.sidebar-hireme-btn {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.sidebar-hireme-btn:hover {
    opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .post-title {
        font-size: 4.5rem;
    }

    .post-deck {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 0;
    }

    .post-header-inner {
        padding: 0 24px;
    }

    .post-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }

    .post-title {
        font-size: 3.2rem;
    }

    .post-deck {
        font-size: 1.5rem;
    }

    .post-content {
        padding: 40px 0 80px;
    }

    .post-content-inner p,
    .post-content-inner ul,
    .post-content-inner ol {
        font-size: 1.6rem;
    }

    .post-content-inner h2 {
        font-size: 2.4rem;
    }

    .post-content-inner h3 {
        font-size: 1.8rem;
    }

    .post-content-inner blockquote {
        font-size: 1.6rem;
        padding: 16px 20px;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 24px;
    }

    .post-sidebar {
        display: block;
        padding-bottom: 80px;
    }

    .post-sidebar-sticky {
        position: static;
    }

    .sidebar-toc {
        display: none;
    }

    .sidebar-widget {
        padding-top: 32px;
        text-align: center;
    }

    .sidebar-widget-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .sidebar-subscribe-text,
    .sidebar-hireme-text {
        font-size: 1.8rem;
        line-height: 1.8;
        color: #333;
        margin-bottom: 20px;
    }

    .sidebar-subscribe-btn,
    .sidebar-hireme-btn {
        font-size: 1.5rem;
        text-align: left;
        display: block;
    }

    .post-feature-image {
        padding: 0;
        margin-top: 24px;
    }

    .post-feature-image img {
        max-height: 260px;
    }

    .post-author-bio-inner {
        flex-direction: column;
        gap: 24px;
        padding: 40px 0;
    }

    .post-author-photo {
        width: 80px;
        height: 80px;
    }
}

/* ==================== BLOG PAGE (blog.hbs) ==================== */
.blog-page {
    background: #fff;
    min-height: 100vh;
}

.blog-posts-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 120px;
    filter: grayscale(100%);
}

/* ---- Newspaper masthead ---- */
.newspaper-masthead {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 4px solid #000;
    border-bottom: 1px solid #000;
    margin-bottom: 0;
}

.newspaper-masthead-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    color: #000;
}

.newspaper-masthead-rule {
    flex: 1;
    height: 1px;
    background: #000;
}

.newspaper-masthead-tagline {
    font-size: 1rem;
    color: #666;
    white-space: nowrap;
    font-style: italic;
}

/* ---- Section headers ---- */
.blog-section-header {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    border-top: 3px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 0;
    margin: 0;
    background: #fff;
}

/* ---- Kicker labels ---- */
.blog-kicker {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    margin-bottom: 10px;
    min-height: 1.2em;
}

/* ---- Shared typography ---- */
.blog-post-title {
    font-weight: 900;
    line-height: 1.1;
    color: #000;
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
}

.blog-post-title a {
    color: #000;
    text-decoration: none;
}

.blog-post-title a:hover {
    text-decoration: underline;
}

.blog-post-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-post-excerpt {
    font-size: 1.4rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 16px 0;
    text-align: justify;
}

.blog-post-read-more {
    display: inline-block;
    margin-top: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid #000;
    padding-bottom: 1px;
}

.blog-post-image-link {
    display: block;
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    transition: filter 0.3s ease;
}

/* ---- Top strip ---- */
.blog-top-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #000;
}

.blog-post-top {
    border-right: 1px solid #000;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.blog-post-top:last-child {
    border-right: none;
}

.blog-post-top .blog-post-image {
    height: 140px;
    margin-bottom: 12px;
}

.blog-post-top:hover .blog-post-image {
    filter: grayscale(0%);
}

.blog-post-top .blog-kicker {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.blog-post-top .blog-post-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

/* ---- Main layout (hero + sidebar) ---- */
.blog-main-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    border-bottom: 3px solid #000;
}

/* ---- Hero ---- */
.blog-post-hero {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #000;
}

.blog-post-hero .blog-post-image {
    height: 420px;
}

.blog-post-hero:hover .blog-post-image {
    filter: grayscale(0%);
}

.blog-post-hero .blog-post-content {
    padding: 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-hero .blog-post-title {
    font-size: 4rem;
    line-height: 0.95;
    margin-bottom: 20px;
}

.blog-post-hero .blog-post-excerpt {
    font-size: 1.45rem;
    line-height: 1.7;
}

/* ---- Sidebar ---- */
.blog-sidebar {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
}

.blog-sidebar-header {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: 3px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 0;
    margin-bottom: 0;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.sidebar-post-image-link {
    display: block;
    flex-shrink: 0;
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center right;
    display: block;
    transition: filter 0.3s ease;
}

.sidebar-post:hover .sidebar-post-image {
    filter: grayscale(0%);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.sidebar-post-title a {
    color: #000;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    text-decoration: underline;
}

.sidebar-view-all {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
}

/* ---- Briefs grid ---- */
.blog-briefs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    border-bottom: 3px solid #000;
}

/* Featured brief: spans top-right 2×2 */
.blog-brief-featured {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-brief-featured .blog-post-image {
    height: 200px;
    margin-bottom: 15px;
}

.blog-brief-featured:hover .blog-post-image {
    filter: grayscale(0%);
}

.blog-brief-featured .blog-post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-brief-featured .blog-post-excerpt {
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.blog-post-brief {
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-post-brief .blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.blog-post-brief .blog-post-excerpt {
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

/* ---- Lower section: paired image columns + regular right briefs ---- */
.blog-briefs-lower {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 3px solid #000;
}

/* Explicit grid placement — tall left cols span both rows, right cols are single cells */
.blp-c1 { grid-column: 1; grid-row: 1 / 3; border-right: 1px solid #000; }
.blp-c2 { grid-column: 2; grid-row: 1 / 3; border-right: 1px solid #000; }
.blp-c3r1 { grid-column: 3; grid-row: 1; }
.blp-c3r2 { grid-column: 3; grid-row: 2; }
.blp-c4r1 { grid-column: 4; grid-row: 1; }
.blp-c4r2 { grid-column: 4; grid-row: 2; }

.blog-brief-tall {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid #000;
}

.blog-brief-tall .blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 12px;
}

.blog-brief-tall .blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.blog-brief-tall .blog-post-excerpt {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ---- Newspaper pagination ---- */
.newspaper-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    border-top: 3px solid #000;
    margin-top: 0;
}

.pagination-prev,
.pagination-next {
    width: 180px;
}

.pagination-next {
    text-align: right;
}

.pagination-info {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #000;
}

.pagination-arrow {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #000;
    padding-bottom: 1px;
}

.pagination-arrow:hover {
    color: #666;
    border-bottom-color: #666;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .blog-post-hero .blog-post-title {
        font-size: 3rem;
    }

    .blog-main-layout {
        grid-template-columns: 1fr 240px;
    }

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

    .blog-brief-featured {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }

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

    /* .blog-brief-pair removed */ .blog-brief-pair-unused {
        grid-row: 1 / 3;
    }
}

@media (max-width: 1024px) {
    .blog-main-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        border-top: 3px solid #000;
        border-left: none;
        padding: 20px 0;
    }

    .blog-sidebar-header {
        border-top: none;
    }

    .blog-post-hero {
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .blog-post-hero .blog-post-title {
        font-size: 2.8rem;
    }

    .blog-top-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-posts-section {
        padding: 0 20px 80px;
    }

    .blog-post-hero .blog-post-image {
        height: 250px;
    }

    .blog-post-hero .blog-post-title {
        font-size: 2.2rem;
    }

    .blog-top-strip {
        grid-template-columns: 1fr;
    }

    .blog-post-top {
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .blog-briefs-grid {
        grid-template-columns: 1fr;
    }

    .blog-brief-featured {
        grid-column: 1;
        grid-row: auto;
        border-left: none;
    }

    .blog-post-brief {
        border-right: none;
        border-bottom: 1px solid #000;
    }

    .blog-briefs-lower {
        grid-template-columns: 1fr;
    }

    /* .blog-brief-pair removed */ .blog-brief-pair-unused {
        grid-column: 1;
        grid-row: auto;
        border-right: none;
        border-bottom: 1px solid #000;
    }
}

/* ==================== PORTFOLIO PAGE (portfolio.hbs) ==================== */
/* ==================== PORTFOLIO PAGE ==================== */

.portfolio-page .page-content-inner p {
    font-size: 1.8rem;
    color: #333;
}

.portfolio-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 80px 120px;
}

.portfolio-item {
    border-bottom: 1px solid #000;
}

.portfolio-item:first-child {
    border-top: 1px solid #000;
}

.portfolio-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 50px 0;
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s ease;
}

.portfolio-item-link:hover {
    opacity: 0.7;
}

.portfolio-item-left {
    flex: 1;
    min-width: 0;
}

.portfolio-item-tag {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.portfolio-item-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.portfolio-item-result {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px;
    max-width: 600px;
}

.portfolio-item-cta {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: underline;
}

.portfolio-item-image-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border: 1px solid #000;
}

.portfolio-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.portfolio-item-link:hover .portfolio-item-image {
    filter: grayscale(0%);
}

@media (max-width: 1024px) {
    .portfolio-section {
        padding: 0 40px 100px;
    }

    .portfolio-item-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 0 24px 80px;
    }

    .portfolio-item-link {
        gap: 24px;
        padding: 36px 0;
    }

    .portfolio-item-title {
        font-size: 2.2rem;
    }

    .portfolio-item-result {
        font-size: 1.4rem;
    }

    .portfolio-item-image-wrap {
        width: 80px;
        height: 80px;
    }
}
