/* ==========================================================================
    Portfolio 2026 — Global Styles
    Structure : Tokens → Base → Layout → Components → Utilities → Pages
    ========================================================================== */

    /* 1) TOKENS (keep these small and stable) */
    :root {
        /* Backgrounds */
        --bg-page: #FFFFFF;
        --bg-section: #F7F7F8;
        --bg-card: #FFFFFF;

        /* Text */
        --text-primary: #121214;
        --text-secondary: #2A2A2F;
        --text-muted: #6B6B76;

        /* Borders */
        --border-default: #D9D9DE;
        --border-subtle: #E9E9EE;
        --border-strong: #B9B9C2;

        /* Actions */
        --action-primary-bg: #121214;
        --action-primary-text: #FFFFFF;

        /* Secondary actions */
        --action-secondary-bg: #EFEFF1;
        --action-secondary-text: #121214;

        /* Accent (brand) */
        --accent: #39FF14;

        /* Links + focus */
        --link-hover: #0B6B1F;
        --focus-ring: #39FF14;

        /* Effects */
        --shadow-1: 0 6px 24px rgba(18, 18, 20, 0.08);
        --radius: 16px;
        --nav-height: 72px;

        /* Glow tokens */
        --glow-radial: radial-gradient(
            circle at bottom center,
            rgba(57, 255, 20, 0.28) 0%,
            rgba(57, 255, 20, 0.16) 45%,
            rgba(34, 153, 12, 0) 85%
        );

        /* Font tokens */
        --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

        /* Size Tokens */
        --content-max: 65ch;
    }

    /* Dark mode overrides */
    html[data-theme="dark"] {
        --bg-page: #0F0F10;
        --bg-section: #141416;
        --bg-card: #1B1B1F;

        --text-primary: #F5F5F7;
        --text-secondary: #CFCFD6;
        --text-muted: #8A8A96;

        --border-default: #2A2A30;
        --border-subtle: #1E1E23;
        --border-strong: #3A3A43;

        --action-primary-bg: #39FF14;
        --action-primary-text: #0F0F10;

        --action-secondary-bg: #1B1B1F;
        --action-secondary-text: #F5F5F7;

        --link-hover: #39FF14;
        --focus-ring: #39FF14;

        --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);

        --glow-radial: radial-gradient(
            circle at bottom center,
            rgba(57, 255, 20, 0.14) 0%,
            rgba(57, 255, 20, 0.08) 45%,
            rgba(34, 153, 12, 0) 85%
        );

        --content-max: 65ch;
    }

    /* 2) BASE (global element defaults) */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        background-color: var(--bg-page);
        color: var(--text-primary);
        font-family: var(--font-body);
        font-size: 16px;
        line-height: 1.625;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    h1, h2, h3, h4, h5, h6,
    .navbar-brand {
        font-family: var(--font-heading);
    }

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

    a {
        color: inherit;
        text-decoration: none;
        text-decoration-skip-ink: auto;
        transition: 
            opacity 160ms ease,
            color 160ms ease,
            text-decoration-color 160ms ease;
    }
    
    a:not(.btn):not(.nav-link):hover {
        color: var(--link-hover);
        opacity: 1;
        text-decoration-color: currentColor;
    }

    a:focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 4px;
        border-radius: 12px;
        opacity: 1;
        text-decoration: none;
    }

    a:active {
        opacity: 0.85;
    }

    /* 3) BOOTSTRAP OVERRIDES (light-touch) */

    /* Global container breathing room (optional) */
    /* 
        Most spacing controlled via section padding instead of changing container widths
    */

    /* Sticky header visual states */
    header.sticky-top {
    background: transparent; /* header itself */
    }

    .navbar {
    background: var(--bg-page);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    /* When scrolled: translucent glass */
    .navbar.is-scrolled {
    background: color-mix(in srgb, var(--bg-page) 78%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border-subtle) 60%, transparent);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(10px);
    }

    /* Navbar */
    .navbar {
        min-height: var(--nav-height);
        background: var(--bg-page);
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(10px);

        --bs-navbar-color: var(--text-primary);
        --bs-navbar-hover-color: var(--text-primary);
        --bs-navbar-brand-color: var(--text-primary);
        --bs-navbar-brand-hover-color: var(--text-primary);

        --bs-navbar-toggler-border-color: var(--border-default);
        --bs-navbar-toggler-icon-bg: none;
        --bs-navbar-toggler-focus-width: 0;
    }

    /* Hamburger icon (SVG data URI) */

    /* Light: dark strokes */
    .navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23121214' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Dark: light strokes */
    html[data-theme='dark'] .navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F5F5F7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler {
        border: 1px solid var(--border-default);
        border-radius: 12px;
        padding: 10px 12px;
        background-color: transparent;
    }

    /* Dark mode: the icon button needs a visible surface + stronger border */
    html[data-theme='dark'] .navbar-toggler {
        border-color: var(--border-strong);
        background-color: var(--bg-card);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Buttons (primary used for "action" button) */
    .btn-dark {
        background: var(--action-primary-bg);
        border-color: var(--action-primary-bg);
        color: var(--action-primary-text);
    }

    .btn-outline-secondary {
        background: var(--action-secondary-bg);
        border: 1px solid var(--border-default);
        color: var(--action-secondary-text);
        border-radius: 12px;
    }

    .btn-dark,
    .btn-outline-secondary {
        min-height: 48px;
        padding: 12px 16px;
        font-weight: 600;
    }

    /* Interactive button states */
    .btn-dark:hover {
        text-decoration: none;
        opacity: 0.92;
    }

    .btn-dark:active {
        opacity: 0.88;
    }

    .btn-dark:focus {
        box-shadow: none;
    }

    .btn-dark:focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 4px;
        opacity: 0.96;
    }

    .btn-dark:disabled,
    .btn-dark.disabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

    .btn-outline-secondary:hover {
        background: var(--bg-section);
        border-color: var(--border-strong);
        color: var(--action-secondary-text) !important;
    }

    .btn-outline-secondary:active {
        background: var(--bg-card);
        border-color: var(--border-strong);
    }

    .btn-outline-secondary:focus {
        box-shadow: none;
    }

    .btn-outline-secondary:focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 4px;
    }

    .btn-outline-secondary:disabled,
    .btn-outline-secondary.diabled {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* Links inside nav */
    .nav-link {
        color: var(--text-primary);
        opacity: 0.85;
        text-decoration: none;
        transition: 
            opacity 160ms ease, 
            color 160ms ease, 
            background-color 16ms ease;
    }

    .nav-link:hover {
        color: var(--text-primary);
        opacity: 1;
    }

    .nav-link:focus {
        color: var(--text-primary);
        opacity: 1;
        box-shadow: none;
    }

    .nav-link:focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 4px;
        border-radius: 12px;
        opacity: 1;
    }

    .nav-link.active {
        color: var(--text-primary);
        opacity: 1;
    }

    .skip-link {
        position: absolute;
        left: -9999px;
        top: 12px;
        z-index: 9999;
    }

    .skip-link:focus,
    .skip-link:focus-visible {
        left: 16px;
        top: 16px;
        background: var(--bg-card);
        color: var(--text-primary);
        border: 1px solid var(--border-default);
        border-radius: 12px;
        padding: 8px;
        text-decoration: none;
        box-shadow: var(--shadow-1);
    }

    /* Footer */
    .footer {
        background: var(--bg-section);
        border-top: 1px solid var(--border-subtle);
    }

    /* Global Bootstrap muted text override */
    .text-secondary {
        color: var(--text-secondary) !important;
    }
    
    .text-muted {
        color: var(--text-muted) !important;
    }

    /* 4) LAYOUT HELPERS */

    /* Page structure */
    main {
        display: block;
    }

    /* Consistent section padding (mobile first) */
    .section {
        padding: 80px 16px;
    }

    .section--compact {
        padding: 64px 16px;
    }

    /* Tablet */
    @media (min-width: 768px) {
        .section {
            padding: 96px 24px;
        }

        .section--compact {
            padding: 72px 24px;
        }
    }

    /* Desktop */
    @media (min-width: 992px) {
        .section {
            padding: 120px 80px;
        }

        .section--compact {
            padding: 80px 80px;
        }
    }

    .prose {
        max-width: var(--content-max);
    }

    /* Reusable helper for section headers */
    .section-header {
        margin-bottom: 24px;
    }

    @media (min-width: 768px) {
        .section-header {
            margin-bottom: 32px;
        }
    }

    @media (min-width: 992px) {
        .section-header {
            margin-bottom: 48px;
        }
    }

    /* 5) COMPONENTS */

    /* 5.1 Navbar */
    .nav-brand {
        font-family: var(--font-heading);
        font-weight: 600;
        letter-spacing: -0.2em;
    }

    .nav-link {
        font-family: var(--font-body);
        font-weight: 500;
        opacity: 0.85;
    }

    .nav-link:hover,
    .nav-link:focus {
        opacity: 1;
    }

    .navbar .theme-toggle {
        width: 44px;
        height: 44px;
        background-color: transparent;
        color: var(--text-primary) !important;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .theme-toggle:hover {
        background-color: var(--bg-section);
        border-color: var(--border-subtle);
    }

    .theme-toggle:focus-visible {
        background-color: var(--bg-section);
        border-color: var(--border-subtle);
        box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.10);
    }

    .theme-toggle.btn-link:focus {
        box-shadow: none;
    }


    .theme-toggle svg {
        pointer-events: none;
    }

    /* Make active link feel intentional */
    .nav-link.active {
        opacity: 1;
        color: var(--text-primary);
    }

    /* 5.2 Footer */
    .footer {
        padding: 24px 16px;
    }

    .footer .footer-link {
        font-family: var(--font-body);
        opacity: 0.85;
    }

    .footer .footer-link:hover,
    .footer .footer-link:focus {
        opacity: 1;
        color: var(--link-hover);
    }

    /* Footer headings */
    .footer .fw-semibold {
        color: var(--text-muted);
    }

    /* Footer muted text */
    .footer .text-muted {
        color: var(--text-muted) !important;
    }

    /* 5.3) Tags */
    .badge-tag {
        background: var(--bg-section);
        color: var(--text-muted);
        border: 1px solid var(--border-subtle);
        font-weight: 500;
        padding: 0.35rem 0.6rem;
    }

    .work-filter--active {
        background: var(--action-primary-bg);
        color: var(--action-primary-text);
        border-color: var(--action-primary-bg);
    }

    @media (min-width: 992px) {
        .work-filters {
            max-width: var(--content-max);
        }
    }

    /* 5.4) Project cards */
    .project-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project-card__content {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .project-card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .project-card__media {
        border-radius: var(--radius);
    }

    .project-card__img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

    /* 5.4) How I work */
    .how-grid {
        display: grid;
        gap: 16px;
    }

    /* Tablet: 2 columns */
    @media (min-width: 768px) {
        .how-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Desktop: 4 columns */
    @media (min-width: 1200px) {
        .how-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* How card */
    .how-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    /* Icon wrapper */
    .how-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        border: 1px solid var(--border-subtle);
        background: var(--bg-section);
    }

    .process-icon {
        width: 24px;
        height: 24px;
        display: block;
    }

    /* 5.5) Skills & Tools */
    .skills-grid {
        display: grid;
        gap: 16px;
    }

    /* Tablet: 2 columns */
    @media (min-width: 768px) {
        .skills-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Desktop: 2 columns */
    @media (min-width: 992px) {
        .skills-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Skills card */
    .skills-card {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Make the divider behave like a divider, not a mini card */
    .skills-card .u-divider {
        border: none;
        border-top: 1px solid var(--border-subtle);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        height: 0;
    }

    /* Tags layout */
    .skills-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 5.6) About */
    .about-grid {
        display: grid;
        gap: 24px;
        align-items: start;
    }

    /* Image */
    .about-media {
        display: flex;
        justify-content: center;
    }

    .about-img {
        width: 200px;
        height: 200px;
        border-radius: 999px;
        object-fit: cover;
        border: 1px solid var(--border-default);
        box-sizing: var(--shadow-1);
    }

    /* Text + buttons */
    .about-content {
        display: flex;
        flex-direction: column;
    }

    .about-links {
        display: grid;
        gap: 12px;
    }

    /* Tablet */
    @media (min-width: 768px) {
        .about-grid {
            grid-template-columns: 240px 1fr;
            gap: 32px;
            align-items: start;
        }

        .about-media {
            justify-content: flex-start;
        }

        .about-img {
            width: 220px;
            height: 220px;
        }

        .about-links {
            display: flex;
            flex: wrap;
            gap: 12px;
        }
    }

    /* Desktop */
    @media (min-width: 992px) {
        .about-grid {
            grid-template-columns: 280px 1fr;
            gap: 48px;
        }

        .about-img {
            width: 240px;
            height: 240px;
        }
    }

    /* 5.7) Contact */
    .contact-grid {
        display: grid;
        gap: 24px;
        padding: 16px;
    }

    /* Tablet */
    @media (min-width: 768px) {
        .contact-grid {
            padding: 24px;
            gap: 32px;
        }
    }

    /* Desktop: 2-column layout */
    @media (min-width: 992px) {
        .contact-grid {
            grid-template-columns: 1fr 1.25fr;
            align-items: start;
            padding: 32px;
            gap: 48px;
        }
    }

    /* Left intro column */
    .contact-intro {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    @media (min-width: 992px) {
        .contact-intro {
            padding-top: 6px;
        }
    }

    /* Right form column */
    .contact-form {
        width: 100%;
    }

    /* Form labels */
    .contact-form .form-label {
        font-family: var(--font-body);
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    /* Inputs + textarea */
    .contact-form .form-control {
        background: var(--bg-page);
        border: 1px solid var(--border-default);
        border-radius: 12px;
        padding: 12px;
        min-height: 48px;
        color: var(--text-primary);
        transition: 
            border-color 160ms ease,
            box-shadow 160ms ease;
    }

    /* Placeholder */
    .contact-form .form-control::placeholder {
        color: var(--text-muted);
        opacity: 1;
    }

    /* Focus */
    .contact-form .form-control:focus {
        border-color: var(--focus-ring);
        box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.10);
    }

    /* Checkbox */
    .contact-form .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 4px;
        border: 1px solid var(--border-default);
        background-color: var(--bg-page);
    }

    /* Checkbox focus */
    .contact-form .form-check-input:focus {
        border-color: var(--focus-ring);
        box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.10);
    }

    /* Checkbox checked (show tick) */
    .contact-form .form-check-input:checked {
        background-color: var(--accent);
        border-color: var(--accent);
        background-image: 
            url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='black' d='M6.173 12.727L2.4 8.954l1.414-1.414 2.36 2.36 5.657-5.657 1.414 1.414z'/%3e%3c/svg%3e");
        background-size: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Checkbox label */
    .contact-form .form-check-label {
        line-height: 1.4;
    }

    /* 6) UTILITIES (tiny reusable helpers) */

    /* Visually hidden (accessibility) */
    .u-sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Soft divider line */
    .u-divider {
        /* background: var(--bg-card); */
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius);
        box-shadow: var(--shadow-1);
    }

    /* Subtle card surface */
    .u-surface {
        background: var(--bg-card);
        border: 1px solid var(--border-default);
        border-radius: var(--radius);
        box-shadow: var(--shadow-1);
    }

    /* Radial glow */
    .u-glow {
        position: relative;
        overflow: hidden;
    }

    .u-glow::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--glow-radial);
        pointer-events: none;
        opacity: 1;
    }

    .u-glow > * {
        position: relative;
        z-index: 1;
    }

    .u-note {
        margin-top: 16px;
        font-size: 14px;
        line-height: 20px;
        color: var(--text-muted);
    }
    .u-note--tight {
        margin-top: 0;
    }

    /* Button: full width on mobile only */
    .u-btn-fluid {
        width: 100%;
    }

    @media (min-width: 576px) {
        .u-btn-fluid {
            width: auto;
        }
    }

    /* 7) PAGES */

    /* 7.1 Home */
    .page-home {}

    .hero-media--dark {
        display: none;
    }

    /* Dark mode override */
    html[data-theme="dark"] .hero-media--light {
        display: none;
    }

    html[data-theme="dark"] .hero-media--dark {
        display: block;
    }

    /* Minimal timeline styling (drop this in your components section) */
    .timeline {
        position: relative;
    }

    .timeline__item {
        position: relative;
        padding-left: 28px;
        padding-bottom: 22px;
    }

    .timeline__item:last-child {
        padding-bottom: 0;
    }

    .timeline__item::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 6px;
        bottom: 0;
        width: 2px;
        background: color-mix(
            in srgb, 
            var(--text-primary) 12%, 
            transparent);
    }

    .timeline__item:last-child::before {
        bottom: 10px;
    }

    .timeline__marker {
        position: absolute;
        left: 4px;
        top: 6px;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        background: var(--action-primary-bg); 
        border: 0;
        box-shadow: var(--shadow-1);
    }

    /* 7.2 Work */
    .page-work {}

    /* 7.3 Case study */
    .page-case-study {}

    .case-hero-media {
        border-radius: var(--radius);
    }

    .case-hero {
        display: grid;
        gap: 32px;
        align-items: center;
    }

    @media (min-width: 992px) {
        .case-hero {
            grid-template-columns: 1fr 1.1fr;
            gap: 48px;
        }
    }

    /* Hero content spacing */
    .case-hero__content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Tags layout */
    .case-hero__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Buttons */
    .case-hero__actions {
        display: grid;
        gap: 12px;
    }

    /* Desktop button layout */
    @media (min-width: 576px) {
        .case-hero__actions {
            grid-auto-flow: column;
            justify-content: start;
            grid-area: 16px;
        }
    }

    /* Case study — Overview */
    .case-overview {
        display: grid;
        gap: 16px;
    }

    /* Tablet: 2-columns */
    @media (min-width: 768px) {
        .case-overview {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }
    }

    /* Desktop: 3-columns */
    @media (min-width: 992px) {
        .case-overview {
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }
    }

    /* Overview card styling */
    .case-overview__card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .case-overview__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        border: 1px solid var(--border-subtle);
        background: var(--bg-section);
    }

    .case-icon {
        width: 24px;
        height: 24px;
    }

    .case-overview__content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .case-overview__label {
        letter-spacing: 0.02em;
    }

    .case-goals {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 16px;
        max-width: var(--content-max);
    }

    .case-goal {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .case-goal__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        border: 1px solid var(--border-subtle);
        background: var(--bg-section);
    }

    .case-goal-icon {
        width: 24px;
        height: 24px;
    }

    .case-process {
        display: grid;
        gap: 16px;
    }

    /* Tablet: single column, incresed gap */
    @media (min-width: 768px) {
        .case-process {
            gap: 24px;
        }
    }

    /* Desktop: 2x2 grid layout */
    @media (min-width: 992px) {
        .case-process {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }
    }

    .case-process__card {
        display: flex;
        align-items: flex-start;
        gap: 24px;
    }

    .case-process__icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        border: 1px solid var(--border-subtle);
        background: var(--bg-section);
    }

    .case-process__icon svg {
        width: 24px;
        height: 24px;
    }

    /* Solution section */
    .case-solution {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    /* Each solution row */
    .case-solution__row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Tablet: 2 columns */
    @media (min-width: 768px) {
        .case-solution {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .case-solution__row {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
    }

    /* Desktop: Reverse layout */
    @media (min-width: 992px) {
        .case-solution {
            display: block;
        }

        .case-solution__row {
            display: grid;
            grid-template-columns: minmax(420px, 560px) 1fr;
            gap: 48px;
            align-items: flex-start;
            margin-bottom: 40px;
        }

        .case-solution__row--reverse {
            grid-template-columns: 1fr minmax(420px, 560px);
        }

        .case-solution__row--reverse .case-solution__media {
            order: 2;
        }

        .case-solution__row--reverse .case-solution__content {
            order: 1;
        }
    }

    /* Media (image container) */
    .case-solution__media {
        border-radius: var(--radius);
        overflow: hidden;
    }

    /* Image */
    .case-solution-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 16px;
    }

    /* Content */
    .case-solution__content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-width: var(--content-max);
    }

    /* Light / Dark image switching */
    .solution-media--dark {
        display: none;
    }

    html[data-theme="dark"] .solution-media--light {
        display: none;
    }

    html[data-theme="dark"] .solution-media--dark {
        display: block;
    }

    .case-outcome__list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-left: 0;
    }

    .case-outcome__item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .case-outcome-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .case-outcome__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-content: center;
        flex-shrink: 0;
        border: 1px solid var(--border-subtle);
        background: var(--bg-section);
    }

    .case-more-work {
        display: grid;
        gap: 16px;
    }

    @media (min-width: 768px) {
        .case-more-work {
            grid-template-columns: repeat(2, 1fr);
        }
    }


    @media (min-width: 992px) {
        .case-more-work {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* 7.4 Legal */
    .page-legal {}

    /* 7.5 Thank you + 404 */
    .page-thanks {}

    .page-404 {}