/* --- VARIABLES --- */
:root {
    --canvas: #FAFAFA;
    --ink: #0A0A0A;
    --border: rgba(0, 0, 0, 0.06);
    --accent-gradient: linear-gradient(135deg, #5b21b6 0%, #3b82f6 100%);
    --gold: #C5A059;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

p {
    font-weight: 300;
    line-height: 1.6;
    color: #333;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1.5rem;
    /* Mobile padding */
}

@media (min-width: 768px) {
    .navbar {
        padding: 2rem 3rem;
        /* Desktop padding */
    }
}

.navbar {
    /* Keep other properties */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    /* Ensures visibility over any bg */
    color: white;
    /* Inverted due to difference mode */
}

.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.est-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --- SECTION 1: HERO --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* The Aura (Mesh Gradient Simulation) */
.aura-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.aura {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    animation: rotateAura 20s linear infinite;
}

@keyframes rotateAura {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero-content {
    max-width: 900px;
    padding: 0 1rem;
    z-index: 2;
}

.pill-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--ink);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.sub-headline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cta-button:hover {
    border-color: transparent;
    background: var(--accent-gradient);
    color: white;
}

/* --- SECTION 2: REALITY CHECK --- */
.reality-section {
    padding: 8rem 3rem;
    border-top: 1px solid var(--border);
}

.section-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 4rem;
}

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

.reality-intro h2 {
    font-size: 3rem;
    max-width: 400px;
}

.reality-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: #5b21b6;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 33, 182, 0.05);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.card-label.highlight {
    color: var(--gold);
    font-weight: 600;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    /* Using body font for quotes per style */
    font-weight: 400;
    font-style: italic;
}

.card-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* --- SECTION 3: SYSTEMS --- */
.systems-section {
    padding: 8rem 3rem;
    background: #F5F5F5;
    /* Subtle distinction */
}

.systems-header {
    font-size: 2rem;
    margin-bottom: 6rem;
    max-width: 800px;
}

.system-item {
    display: flex;
    align-items: flex-start;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sys-icon {
    font-size: 2rem;
    margin-right: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sys-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sys-content p {
    font-size: 1.1rem;
    max-width: 500px;
    color: #555;
}

/* --- SECTION 4: FOUNDER AUTHORITY --- */
.founder-section {
    padding: 10rem 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.divider-line {
    width: 2px;
    height: 60px;
    background: var(--accent-gradient);
    margin: 0 auto 3rem auto;
}

.founder-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.founder-section blockquote {
    font-size: 2rem;
    font-family: var(--font-display);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.sign-off {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: #666;
}

/* --- SECTION 5: CTA (Dark Mode) --- */
.cta-section {
    background-color: var(--ink);
    color: white;
    padding: 8rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.green-dot {
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: #aaa;
    margin-bottom: 3rem;
}

.apply-btn {
    padding: 1rem 3rem;
    background: white;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.apply-btn:hover {
    transform: scale(1.05);
}

.price-anchor {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.cta-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: var(--accent-gradient);
    filter: blur(100px);
    opacity: 0.2;
}

/* --- FOOTER --- */
footer {
    padding: 3rem 1.5rem;
    /* Mobile padding */
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    /* Stack on mobile by default */
    justify-content: space-between;
    align-items: flex-start;
    /* Align left */
    flex-wrap: wrap;
    gap: 2rem;
}

@media (min-width: 768px) {
    footer {
        padding: 4rem 3rem;
        /* Desktop padding */
        flex-direction: row;
        /* Row on desktop */
        align-items: flex-end;
    }
}

.footer-content p {
    max-width: 300px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.social-links a {
    margin-right: 1.5rem;
    font-size: 0.9rem;
    position: relative;
    font-weight: 500;
}

/* Hover underline animation */
.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #5b21b6;
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .reality-intro h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .est-badge {
        display: none;
    }

    /* Hide on mobile for cleaner look */
}



/* --- ANIMATION UTILITY --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    /* Start lower for heavier feel */
    will-change: transform, opacity;
    /* Performance optimization */
}

/* Ensure Hero content is visible if JS fails (optional fallback) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transition: opacity 0s;
        /* Let GSAP handle the timing */
    }
}

/* --- FROM INDEX.HTML: GLOBAL PHYSICS & TEXTURE --- */
/* (Duplicates removed or merged) */

/* Cinematic Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
}

/* --- NATIVE ANIMATION ENGINE --- */
.reveal-node {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-node.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- HERO SPECIFIC --- */
.hero-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.spotlight {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(91, 33, 182, 0.08), transparent 40%);
}

.text-shimmer {
    background: linear-gradient(110deg, #0A0A0A 45%, #5b21b6 50%, #0A0A0A 55%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* --- INTERACTIVE CARDS (Spotlight Hover) --- */
.spotlight-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(91, 33, 182, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 33, 182, 0.2);
}

/* --- ABSTRACT ART --- */
.cube-spinner {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- MAGNETIC BUTTON --- */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* --- INFINITE LOGO SLIDER --- */
.logo-slider {
    position: relative;
    overflow: hidden;
    /* The gradient masks for the "fade out" effect */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.slide-track {
    display: flex;
    width: max-content;
    /* Forces the track to be as wide as the logos */
    animation: scroll 40s linear infinite;
}

/* Pause on hover (Optional - remove if you want constant movement) */
.logo-slider:hover .slide-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moves half the distance (since we duplicate logos) */
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    /* Spacing between logos */
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(0%);
}

.company-logo img {
    height: 6rem;
    width: auto;
    object-fit: contain;
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- PORTFOLIO PREVIEWS --- */
.portfolio-browser {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #f3f4f6;
    box-shadow: 0 24px 60px rgba(10, 10, 10, 0.08);
}

.portfolio-browser::before {
    content: '';
    display: block;
    height: 34px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(circle at 16px 17px, #ef4444 0 4px, transparent 4.5px),
        radial-gradient(circle at 32px 17px, #f59e0b 0 4px, transparent 4.5px),
        radial-gradient(circle at 48px 17px, #22c55e 0 4px, transparent 4.5px),
        #ffffff;
}

.portfolio-browser iframe {
    display: block;
    width: 100%;
    height: calc(100% - 34px);
    border: 0;
    background: #ffffff;
}

.portfolio-link,
.portfolio-preview-btn {
    flex-shrink: 0;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.portfolio-link:hover,
.portfolio-preview-btn:hover {
    border-color: rgba(91, 33, 182, 0.4);
    color: #5b21b6;
    background: rgba(91, 33, 182, 0.04);
}

.portfolio-project-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(91, 33, 182, 0.18);
    border-radius: 999px;
    background: rgba(91, 33, 182, 0.05);
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.portfolio-view-toggle {
    display: inline-flex;
    padding: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.portfolio-view-toggle button {
    min-width: 4.25rem;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.portfolio-view-toggle button.is-active {
    background: var(--ink);
    color: #ffffff;
}

.portfolio-archive-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-archive-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 33, 182, 0.18);
    box-shadow: 0 18px 45px rgba(10, 10, 10, 0.06);
}

.portfolio-archive-main {
    display: flex;
    gap: 1rem;
}

.portfolio-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.portfolio-archive-list {
    display: grid;
    gap: 1rem;
}

.portfolio-archive-card.is-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.portfolio-archive-card.is-list .portfolio-archive-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.portfolio-archive-card.is-list .portfolio-archive-preview {
    grid-column: 1 / -1;
}

.portfolio-archive-preview {
    display: none;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: #f3f4f6;
}

.portfolio-archive-preview.is-open {
    display: block;
}

.portfolio-archive-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

/* --- SERVICES PAGE --- */
.service-card {
    position: relative;
    min-height: 100%;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 33, 182, 0.18);
    box-shadow: 0 22px 55px rgba(10, 10, 10, 0.07);
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(91, 33, 182, 0.18);
    border-radius: 999px;
    background: rgba(91, 33, 182, 0.05);
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
}

.service-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card details {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.25rem;
}

.service-card summary {
    cursor: pointer;
    color: #5b21b6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-card summary::marker {
    color: rgba(91, 33, 182, 0.5);
}

.service-card ol {
    margin-top: 1.25rem;
    padding-left: 1.2rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.75;
}

.service-card li + li {
    margin-top: 0.7rem;
}

/* --- SEO LANDING PAGES --- */
.seo-hero {
    position: relative;
    padding: 12rem 1.5rem 6rem;
    overflow: hidden;
    background: #fafafa;
}

.seo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 75%);
}

.seo-wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.seo-eyebrow {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.seo-hero h1 {
    max-width: 880px;
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    font-weight: 700;
    line-height: 0.95;
}

.seo-hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.seo-primary-btn,
.seo-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seo-primary-btn {
    background: var(--ink);
    color: #ffffff;
}

.seo-secondary-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--ink);
}

.seo-section {
    padding: 5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafafa;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.seo-grid article {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
}

.seo-section h2 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}

.seo-section ul,
.seo-section ol {
    padding-left: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
}

.seo-section li + li {
    margin-top: 0.7rem;
}

.seo-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.seo-link-grid a {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.seo-link-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 33, 182, 0.24);
    color: #5b21b6;
}

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

    .portfolio-archive-card.is-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-archive-card.is-list .portfolio-archive-actions {
        justify-content: flex-start;
    }
}
