/* ============================================
   NIMRA SHAKIL - PORTFOLIO
   Design: Editorial / Refined Minimal
   ============================================ */

:root {
    --bg: #0C0C0E;
    --bg-elevated: #141418;
    --bg-card: #1A1A20;
    --text: #E8E6E1;
    --text-muted: #9B9A97;
    --text-dim: #6B6A68;
    --accent: #C8A55C;
    --accent-light: #D4B977;
    --accent-dim: rgba(200, 165, 92, 0.12);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Instrument Sans', -apple-system, sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
}

.nav-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
}

.nav-mobile a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-mobile a:hover {
    color: var(--text);
}

.nav-mobile.open {
    display: flex;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: calc(var(--nav-height) + 6rem) 2rem 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.35s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.45s;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-quicklinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.55s;
}

.hero-quicklinks .ql-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.hero-quicklinks a {
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border-hover);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-quicklinks a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hero-quicklinks .ql-sep {
    color: var(--text-dim);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.metric {
    background: var(--bg-elevated);
    padding: 2rem 1.5rem;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: var(--delay);
}

.metric-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.2s ease;
}

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

/* ============================================
   WORK PREVIEW (Home)
   ============================================ */
.work-preview {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.case-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 165, 92, 0.06);
}

.case-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.case-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.case-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.case-card-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.case-card-stats span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.01em;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.services-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.service {
    background: var(--bg-elevated);
    padding: 2.5rem 2rem;
}

.service-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.service h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.service p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--accent);
}

/* ============================================
   WORK PAGE
   ============================================ */
.page-header {
    padding: calc(var(--nav-height) + 5rem) 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.page-header .page-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Case Study Full */
.case-study {
    border-top: 1px solid var(--border);
    padding: 5rem 0;
    scroll-margin-top: calc(var(--nav-height) + 2rem);
}

.case-study-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    margin-bottom: 3rem;
}

.case-study-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.case-study-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.case-study-header .case-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.case-meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.case-meta-value {
    font-size: 0.95rem;
    color: var(--text);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.result-item {
    background: var(--bg-elevated);
    padding: 2rem 1.5rem;
    text-align: center;
}

.result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* What I Did sections */
.case-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: var(--text);
}

.case-content h3:first-child {
    margin-top: 0;
}

.case-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 750px;
}

.case-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.case-content ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.case-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 1px;
    background: var(--accent);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-text p:first-of-type {
    font-size: 1.1rem;
    color: var(--text);
}

.tools-section {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.tools-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.tool-group h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.tool-group p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Experience Timeline */
.timeline-section {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.timeline-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-top: 0.15rem;
}

.timeline-role {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-size: 1.1rem;
    color: var(--text);
}

.contact-item-value a {
    color: var(--accent);
    transition: opacity 0.2s ease;
}

.contact-item-value a:hover {
    opacity: 0.75;
}

.contact-note {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-note p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .case-grid {
        grid-template-columns: 1fr;
    }

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

    .case-study-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: calc(var(--nav-height) + 3.5rem);
        padding-bottom: 3rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cta {
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .metric {
        padding: 1.5rem 1rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   WRITING SAMPLES PAGE
   ============================================ */
.writing-section {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.writing-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.writing-category-header {
    margin-bottom: 2.5rem;
}

/* Whitepaper Cards with Images */
.wp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.wp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.wp-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200, 165, 92, 0.1);
}

.wp-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.wp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wp-card:hover .wp-card-img img {
    transform: scale(1.04);
}

.wp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(200, 165, 92, 0.2);
}

.wp-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wp-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.wp-card-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.wp-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.wp-card:hover .wp-read-more {
    opacity: 0.75;
}

/* Placeholder card */
.wp-card-placeholder {
    border-style: dashed;
    opacity: 0.6;
    cursor: default;
}

.wp-card-placeholder:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.wp-card-img-empty {
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card image color variants (no image fallbacks) */
.wp-card-img-accent {
    background: linear-gradient(135deg, #1a1a20 0%, #2a2520 50%, #1a1a20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand logo in case studies */
.case-brand-img {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 120px;
    overflow: hidden;
}

.case-brand-img img {
    max-height: 80px;
    max-width: 280px;
    object-fit: contain;
}

/* Case study image gallery */
.case-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.case-gallery-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.case-gallery-item:hover {
    border-color: var(--accent);
}

.case-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.case-gallery-item span {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    background: var(--bg-elevated);
}

/* Case gallery items as clickable anchors (open full page in new tab) */
a.case-gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Web archive link cards (used inline within case studies) */
.archive-link-card {
    display: block;
    max-width: 620px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.archive-link-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 165, 92, 0.08);
}

.archive-link-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.archive-link-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.archive-link-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.archive-link-card-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* Archive link grid for multiple cards */
.archive-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.archive-link-grid .archive-link-card {
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
}

.archive-section-subhead {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .case-gallery {
        grid-template-columns: 1fr;
    }
    .case-gallery-item img {
        height: 220px;
    }
}

.wp-card-img-strategy {
    background: linear-gradient(135deg, #0C0C0E 0%, #0f1a2a 50%, #0C0C0E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-card-img-copy {
    background: linear-gradient(135deg, #0C0C0E 0%, #1a0f2a 50%, #0C0C0E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-card-img-deck {
    background: linear-gradient(135deg, #0C0C0E 0%, #0a2a1a 50%, #0C0C0E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .wp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .wp-grid {
        grid-template-columns: 1fr;
    }
    .wp-card-img {
        height: 180px;
    }
}

/* ============================================
   BLOG CARDS (used for Blogs and LinkedIn Pulse categories)
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 165, 92, 0.06);
}

.blog-card-meta {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.blog-card-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 3px;
    background: rgba(200, 165, 92, 0.12);
    color: var(--accent);
}

.blog-card-stage {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 3px;
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
}

.blog-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.blog-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0.95rem;
    flex: 1;
}

.blog-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.blog-card-placeholder {
    border-style: dashed;
    opacity: 0.55;
    cursor: default;
}

.blog-card-placeholder:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

/* ============================================
   INSTAGRAM POSTS (square grid)
   ============================================ */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.ig-post {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.ig-post:hover {
    border-color: var(--accent);
}

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

.ig-post-placeholder {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ============================================
   INSTAGRAM REELS (9:16 vertical video grid)
   ============================================ */
.ig-reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.ig-reel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ig-reel-video {
    aspect-ratio: 9 / 16;
    width: 100%;
    background: var(--bg-elevated);
    display: block;
    border: 0;
}

.ig-reel-placeholder {
    aspect-ratio: 9 / 16;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
}

.ig-reel-body {
    padding: 0.85rem 1rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    flex: 1;
}

.ig-reel-body strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}
