:root {
    /* Colors - Warm off-white / neutral direction */
    --bg-main: #fcfbf9;
    --bg-secondary: #f4f2ef;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #2c5282; /* Deep blue accent */
    --accent-hover: #2a4365;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 1.5rem;
    --radius: 8px;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.menu-open,
body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 2.5rem 1.25rem;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
}

body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 1rem;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-outline {
    border-color: var(--text-main);
    color: var(--text-main);
}

.cta-actions .btn {
    min-width: 200px;
}

@media (max-width: 480px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-actions .btn {
        width: 100%;
    }
}

.btn-outline:focus-visible, .btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text-main);
    color: var(--white);
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus { top: 0; }

.page-header {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 1.25rem;
    }
}

/* Header & Nav
 *
 * Single shared implementation for every page.
 */
.site-header-shell {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-main);
    isolation: isolate;
}

.site-header-shell .site-header {
    position: relative;
    width: 100%;
    height: 80px;
    z-index: 3;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.site-header-shell .header-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background-color: var(--bg-main);
}

.site-header-shell .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.site-header-shell .logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-header-shell .menu-toggle {
    display: none;
    position: relative;
    z-index: 5;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.site-header-shell .menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-header-shell .menu-toggle-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transform: translateZ(0);
    transition: background-color 0.2s ease;
}

.site-header-shell .menu-toggle-icon::before,
.site-header-shell .menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transform-origin: center;
    transition:
        top 0.25s ease,
        bottom 0.25s ease,
        transform 0.25s ease;
}

.site-header-shell .menu-toggle-icon::before {
    top: -8px;
    bottom: auto;
}

.site-header-shell .menu-toggle-icon::after {
    top: auto;
    bottom: -8px;
}

.site-header-shell .menu-toggle.is-active .menu-toggle-icon,
html.menu-open .site-header-shell .menu-toggle .menu-toggle-icon,
body.menu-open .site-header-shell .menu-toggle .menu-toggle-icon {
    background-color: transparent;
}

.site-header-shell .menu-toggle.is-active .menu-toggle-icon::before,
html.menu-open .site-header-shell .menu-toggle .menu-toggle-icon::before,
body.menu-open .site-header-shell .menu-toggle .menu-toggle-icon::before {
    top: 0;
    bottom: auto;
    transform: rotate(45deg);
}

.site-header-shell .menu-toggle.is-active .menu-toggle-icon::after,
html.menu-open .site-header-shell .menu-toggle .menu-toggle-icon::after,
body.menu-open .site-header-shell .menu-toggle .menu-toggle-icon::after {
    top: 0;
    bottom: auto;
    transform: rotate(-45deg);
}

.site-header-shell .main-nav .nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header-shell .main-nav .nav-list a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
}

.site-header-shell .main-nav .nav-list a:not(.btn).active {
    color: var(--accent);
}

.site-header-shell .main-nav .nav-list a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-backdrop {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --mobile-header-height: 70px;
    }

    body {
        padding-top: var(--mobile-header-height);
    }

    .site-header-shell {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-header-height);
        z-index: 1000;
        background-color: var(--bg-main);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .site-header-shell .site-header,
    .site-header-shell .header-inner {
        height: var(--mobile-header-height);
        min-height: var(--mobile-header-height);
        background-color: var(--bg-main);
    }

    .site-header-shell .logo-text {
        font-size: 1.15rem;
    }

    .site-header-shell .menu-toggle {
        display: flex;
        z-index: 6;
        background-color: var(--bg-main);
    }

    html.menu-open .site-header-shell,
    body.menu-open .site-header-shell,
    html.menu-open .site-header-shell .site-header,
    body.menu-open .site-header-shell .site-header,
    html.menu-open .site-header-shell .header-inner,
    body.menu-open .site-header-shell .header-inner,
    html.menu-open .site-header-shell .menu-toggle,
    body.menu-open .site-header-shell .menu-toggle {
        background-color: var(--bg-main);
        opacity: 1;
        visibility: visible;
    }

    .nav-backdrop {
        position: fixed;
        top: var(--mobile-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        display: block;
        background-color: var(--bg-main);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            visibility 0s linear 0.2s;
    }

    html.menu-open .nav-backdrop,
    body.menu-open .nav-backdrop,
    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            opacity 0.2s ease,
            visibility 0s;
    }

    .site-header-shell .main-nav {
        position: fixed;
        top: var(--mobile-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        display: block;
        width: 100%;
        height: calc(100vh - var(--mobile-header-height));
        height: calc(100dvh - var(--mobile-header-height));
        min-height: 0;
        margin: 0;
        padding: 0;
        background-color: var(--bg-main);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(100%, 0, 0);
        -webkit-transform: translate3d(100%, 0, 0);
        transition:
            transform 0.25s ease,
            visibility 0s linear 0.25s;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }

    .site-header-shell .main-nav.is-open,
    html.menu-open .site-header-shell .main-nav,
    body.menu-open .site-header-shell .main-nav {
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        transition:
            transform 0.25s ease,
            visibility 0s;
    }

    .site-header-shell .main-nav .nav-container {
        width: 100%;
        max-width: none;
        min-height: 100%;
        margin: 0;
        padding:
            1.5rem
            max(1.5rem, env(safe-area-inset-right))
            calc(1.5rem + env(safe-area-inset-bottom))
            max(1.5rem, env(safe-area-inset-left));
        background-color: var(--bg-main);
    }

    .site-header-shell .main-nav .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .site-header-shell .main-nav .nav-list li {
        width: 100%;
        background-color: var(--bg-main);
        border-bottom: 1px solid var(--border);
    }

    .site-header-shell .main-nav .nav-list a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 56px;
        padding: 1rem 0;
        background-color: var(--bg-main);
    }

    .site-header-shell .main-nav .nav-cta {
        padding-top: 1.5rem;
        border-bottom: 0;
    }

    .site-header-shell .main-nav .nav-cta .btn {
        justify-content: center;
        min-height: 48px;
        padding: 0.85rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-shell .main-nav,
    .nav-backdrop,
    .site-header-shell .menu-toggle-icon,
    .site-header-shell .menu-toggle-icon::before,
    .site-header-shell .menu-toggle-icon::after {
        transition: none;
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

/* Hero */
.hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero-note {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Sections */
section, .section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 65ch;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.section-eyebrow {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-state {
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* Selected Work */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-image-link {
    display: block;
    transition: opacity 0.2s;
}

.project-image-link:hover {
    opacity: 0.9;
}

.project-image-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.4);
}

.project-image-wrapper {
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-secondary);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

ul.project-tags {
    list-style: none;
    padding: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.project-title a:hover,
.project-title a:focus {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.project-title a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.4);
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 480px) {
    .project-links {
        align-items: stretch;
    }

    .project-links .btn {
        width: 100%;
    }
}

.text-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline { color: #aaa; margin-bottom: 0.5rem; }
.footer-location { font-size: 0.9rem; color: #888; }

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-list a:hover { color: var(--bg-secondary); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #666;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 999999;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom))
        max(0.75rem, env(safe-area-inset-left));
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal.is-active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    border-radius: var(--radius);
    position: relative;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
    .modal-content {
        height: 90vh;
    }
}

.modal-header {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    min-height: 64px;
    padding: 0.75rem 1.25rem;
    padding-right: max(4.75rem, calc(env(safe-area-inset-right) + 4rem));
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    z-index: 1000001 !important;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 2px solid var(--text-main);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-main);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.2s, background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.05);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.4);
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Filter Navigation */
.filter-nav {
    margin-top: 2rem;
}

.filter-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .filter-nav {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .filter-nav::-webkit-scrollbar {
        display: none;
    }
    
    .filter-nav ul {
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        width: max-content;
    }

    .filter-nav {
        scroll-snap-type: x proximity;
    }

    .filter-nav li {
        scroll-snap-align: start;
    }
}

/* Page Specific Components */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
        gap: 3rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
        gap: 3rem;
    }
}

.about-main {
    max-width: 760px;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section:last-of-type {
    margin-bottom: 0;
}

.about-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

@media (min-width: 769px) {
    .about-card { padding: 3rem; }
}

.about-card-title {
    margin-bottom: 1.5rem;
}

.about-facts {
    display: grid;
    gap: 1.25rem;
    margin: 0;
}

.about-facts .fact-item {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.about-facts .fact-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.about-facts dt {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
}

.service-area {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.service-area-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-area-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-main);
}

.service-list li {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

.service-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.service-item-title {
    color: var(--text-main);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 600px) {
    .form-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

@media (min-width: 769px) {
    .about-card { padding: 3rem; }
}

.header-content-limit {
    max-width: 800px;
}

/* Capabilities & Process */
.capability-item {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.capability-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.capability-list {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.capability-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.capability-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.process-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.process-step {
    position: relative;
}

@media (min-width: 600px) {
    .capabilities-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .process-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.step-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.about-preview, .final-cta {
    /* Padding handled by global section selector */
}

.about-preview-content {
    max-width: 700px;
}

.final-cta .header-content-limit {
    margin-inline: auto;
}

/* Screen reader only / Visually hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Utilities */
.text-center { text-align: center; }

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .project-card:hover {
        transform: none !important;
    }
}

/* Page Specific Components */
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.border-top { border-top: 1px solid var(--border); }
.text-sm { font-size: 0.875rem; }
.text-accent { color: var(--accent); }
.color-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }

.bg-secondary { background-color: var(--bg-secondary); }

.section-subtitle {
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

.btn-wide { padding-left: 3rem; padding-right: 3rem; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: normal;
}
.checkbox-label input { margin-top: 0.35rem; }

.sidebar-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.sidebar-list li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Case Study Specifics */
.case-study-hero { padding: 6rem 0 4rem; }
.deliverables-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.deliverables-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.preview-frame {
    background: #333;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow);
}
.preview-inner {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-frame {
    border-radius: 20px;
    width: 300px;
    position: relative;
    border: 8px solid #222;
    background: #333;
}
.mobile-aspect {
    border-radius: 12px;
    aspect-ratio: 390/844;
}

.case-study-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .case-study-grid {
        grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .mobile-frame {
        margin: 2rem auto 0;
    }
}

.case-study-main {
    min-width: 0;
}

.case-study-section {
    max-width: 760px;
    margin-bottom: 3rem;
}

.case-study-section:last-child {
    margin-bottom: 0;
}

.case-study-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .case-study-preview-grid {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    }
}

.iframe-container,
#preview-iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        border-radius: 0;
        height: 100%;
        height: 100dvh;
    }
}
/* --- Form Utilities --- */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-required-note {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-help {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-intro {
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 60ch;
}

@media (max-width: 480px) {
    .contact-form .btn-wide {
        width: 100%;
    }
}
