/* Final public experience layer: navigation stability, image resilience, and premium catalogue rhythm. */
:root {
    --experience-ink: #153d56;
    --experience-muted: #5d7a8b;
    --experience-line: rgba(22, 113, 143, 0.14);
    --experience-sky: #2aafc1;
    --experience-deep: #125a79;
    --experience-mint: #54b998;
    --experience-surface: rgba(255, 255, 255, 0.91);
    --experience-shadow: 0 1.2rem 3.4rem rgba(9, 72, 96, 0.12);
}

body:not(.admin-body) {
    color: var(--experience-ink);
    text-rendering: optimizeLegibility;
}

body:not(.admin-body) a:focus-visible,
body:not(.admin-body) button:focus-visible,
body:not(.admin-body) input:focus-visible,
body:not(.admin-body) select:focus-visible,
body:not(.admin-body) summary:focus-visible {
    outline: 3px solid rgba(37, 170, 191, 0.46);
    outline-offset: 3px;
}

/* Keeps the full header usable at every desktop width without hiding its important actions. */
.premium-site-header {
    z-index: 1040;
}

.premium-site-header .premium-navbar,
.premium-site-header .premium-navbar .container,
.premium-site-header .navbar-collapse,
.premium-nav-palette {
    overflow: visible;
}

.premium-navbar .container {
    gap: 0.72rem;
}

.premium-brand {
    min-width: 0;
}

.premium-brand .brand-copy {
    min-width: 0;
}

.premium-brand strong,
.premium-brand small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Motion must never make useful catalogue or order text disappear while a device is busy. */
body:not(.admin-body) .reveal-ready {
    opacity: 1;
    transform: none;
}

.premium-projects-dropdown {
    border: 1px solid rgba(17, 111, 140, 0.14);
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #edfafd);
    box-shadow: var(--experience-shadow);
}

.premium-projects-dropdown-intro {
    padding: 0.75rem 0.82rem 0.68rem;
}

.premium-projects-dropdown-intro span {
    display: block;
    margin-bottom: 0.18rem;
    color: #1f8195;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-projects-dropdown-intro strong {
    display: block;
    color: #1b4c63;
    font-family: var(--font-editorial);
    font-size: 0.9rem;
    line-height: 1.2;
}

.premium-projects-dropdown .dropdown-item {
    border-radius: 0.58rem;
    color: #28566b;
    font-size: 0.72rem;
    font-weight: 750;
}

.premium-projects-dropdown .dropdown-item:hover,
.premium-projects-dropdown .dropdown-item:focus-visible {
    background: #dff5f7;
    color: #0f6580;
}

/* Use measured project image areas instead of the source image dimensions. */
.home-v3-slide-image,
.home-v3-project-image,
.home-v3-latest-card,
.project-card-media,
.detail-gallery,
.gallery-card {
    isolation: isolate;
}

.home-v3-slide-image {
    aspect-ratio: 16 / 7;
    min-height: clamp(15rem, 29vw, 25rem);
    max-height: 28rem;
    overflow: hidden;
    background: linear-gradient(135deg, #156b87, #42bdc7 55%, #d9f7f4);
}

.home-v3-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

.home-v3-project-image img,
.home-v3-latest-card img,
.project-card-media img,
.detail-gallery .detail-hero-image,
.gallery-card img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.project-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(145deg, #e8f8fa, #d5edf4);
}

.project-card-media img {
    height: 100%;
    transition: transform 280ms ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.035);
}

.detail-gallery .detail-hero-image {
    aspect-ratio: 16 / 10;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #e8f8fa, #d5edf4);
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--experience-line);
    border-radius: 0.9rem;
    background: #f8fdfe;
}

.gallery-card img {
    aspect-ratio: 16 / 10;
}

.is-image-missing {
    background: linear-gradient(145deg, #e4f5f7, #d4e9f1) !important;
}

img.is-image-missing {
    opacity: 0;
}

/* Catalogue, filters, and details share a quieter and easier-to-scan surface. */
.section-block.compact-top,
.content-panel,
.filter-panel,
.empty-state,
.detail-sidebar,
.project-card {
    border-color: var(--experience-line);
}

.project-card,
.detail-sidebar,
.content-panel {
    box-shadow: 0 0.9rem 2.2rem rgba(13, 82, 105, 0.07);
}

.project-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    border-color: rgba(27, 142, 164, 0.28);
    box-shadow: 0 1.35rem 2.65rem rgba(13, 82, 105, 0.13);
    transform: translateY(-3px);
}

.project-card .badge,
.project-quality-badges .quality-badge,
.tech-pill {
    letter-spacing: 0.01em;
}

.info-grid > div {
    min-width: 0;
}

.info-grid > div,
.project-card p,
.detail-sidebar .lead {
    overflow-wrap: anywhere;
}

.home-v3-project-card,
.home-v3-latest-card,
.home-v3-collection-card,
.home-v8-benefit-grid article {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-v3-project-card:hover,
.home-v3-latest-card:hover,
.home-v3-collection-card:hover,
.home-v8-benefit-grid article:hover {
    transform: translateY(-4px);
}

.home-v3-collection-card {
    overflow: hidden;
}

.home-v3-collection-card .home-v3-collection-art img {
    object-fit: cover;
    object-position: center;
}

.home-v8-faq details {
    border-color: var(--experience-line);
}

.home-v8-faq summary {
    color: #174d64;
}

/* Shared finishing details: orientation for long pages and a consistent order-confidence band. */
.site-scroll-progress {
    position: fixed;
    z-index: 1085;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    background: rgba(18, 89, 120, 0.08);
}

.site-scroll-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #20a8c5, #56c9b2 52%, #f5b453);
    box-shadow: 0 0 0.85rem rgba(36, 172, 194, 0.58);
    transition: transform 90ms linear;
}

.premium-site-header {
    transition: filter 180ms ease, box-shadow 180ms ease;
}

.premium-site-header.is-scrolled {
    filter: saturate(1.03);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 78, 103, 0.1);
}

.experience-assurance {
    position: relative;
    display: grid;
    grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.55fr);
    gap: clamp(1.15rem, 3vw, 3.4rem);
    align-items: start;
    margin-bottom: clamp(1.15rem, 3vw, 2.2rem);
    padding: clamp(1.1rem, 2.8vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(26, 131, 154, 0.16);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(88, 202, 179, 0.2), transparent 31%),
        radial-gradient(circle at 4% 96%, rgba(68, 175, 205, 0.13), transparent 29%),
        linear-gradient(135deg, #f6fdfe, #eef9f8 52%, #fcfdfc);
    box-shadow: 0 1.25rem 3.1rem rgba(12, 84, 107, 0.08);
}

.experience-assurance::after {
    position: absolute;
    right: -1rem;
    bottom: -2.25rem;
    width: 8rem;
    aspect-ratio: 1;
    border: 1px solid rgba(24, 139, 163, 0.12);
    border-radius: 50%;
    content: '';
}

.experience-assurance-intro,
.experience-assurance-grid,
.experience-assurance article {
    position: relative;
    z-index: 1;
}

.experience-assurance-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #1b8497;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.experience-assurance-eyebrow::before {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #f2ae58;
    box-shadow: 0 0 0 0.26rem rgba(242, 174, 88, 0.16);
    content: '';
}

.experience-assurance h2 {
    max-width: 16ch;
    margin: 0.58rem 0 0;
    color: #153d56;
    font-family: var(--font-editorial, Fraunces, Georgia, serif);
    font-size: clamp(1.4rem, 2.45vw, 2.3rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.experience-assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.experience-assurance article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    min-width: 0;
    padding: 0.82rem;
    border: 1px solid rgba(26, 131, 154, 0.1);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.66);
}

.experience-assurance-index {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.68rem;
    background: #173f57;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.experience-assurance article:nth-child(2) .experience-assurance-index {
    background: #167e91;
}

.experience-assurance article:nth-child(3) .experience-assurance-index {
    background: #399a7d;
}

.experience-assurance strong {
    display: block;
    color: #17465e;
    font-size: 0.77rem;
    font-weight: 800;
    line-height: 1.3;
}

.experience-assurance p {
    margin: 0.32rem 0 0;
    color: #5f7d8d;
    font-size: 0.68rem;
    line-height: 1.55;
}

@media (min-width: 1400px) {
    .premium-navbar .container {
        display: flex;
        max-width: min(100%, 1720px);
    }

    .premium-brand {
        flex: 0 1 22rem;
    }

    .premium-navbar .navbar-collapse {
        min-width: 0;
        flex: 1 1 auto;
    }

    .premium-nav-palette {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        row-gap: 0.42rem;
        gap: 0.28rem;
    }

    .premium-nav-menu {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .premium-nav-menu .nav-link,
    .premium-nav-utility a {
        white-space: nowrap;
    }

    .premium-nav-utility {
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
        gap: 0.32rem;
    }

    .premium-projects-dropdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(10rem, 1fr));
        min-width: 31rem;
        padding: 0.48rem;
    }

    .premium-projects-dropdown-intro {
        grid-column: 1 / -1;
    }

    .premium-projects-dropdown .dropdown-divider {
        display: none;
    }
}

@media (min-width: 1400px) and (max-width: 1819.98px) {
    .premium-brand {
        flex-basis: 19.5rem;
    }

    .premium-brand .brand-tagline {
        display: block;
        max-width: 34ch;
        font-size: 0.66rem;
    }

    .premium-nav-menu .nav-link {
        padding-inline: 0.46rem;
        font-size: 0.67rem;
    }

    .premium-nav-utility a,
    .premium-nav-utility .btn {
        padding-inline: 0.5rem;
        font-size: 0.63rem;
    }
}

@media (min-width: 1400px) and (max-width: 1549.98px) {
    .premium-brand {
        flex-basis: 17.5rem;
    }

    .premium-brand .brand-kicker {
        display: block;
        font-size: 0.58rem;
    }

    .premium-brand .brand-tagline {
        font-size: 0.61rem;
    }

    .premium-nav-utility {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 1399.98px) {
    .premium-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border: 1px solid var(--experience-line);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 1rem 2rem rgba(13, 82, 105, 0.08);
    }

    .premium-nav-menu .dropdown-menu {
        width: 100%;
        margin-top: 0.35rem;
    }

    .premium-nav-utility {
        width: 100%;
        margin-top: 0.55rem;
    }

    .premium-brand .brand-kicker,
    .premium-brand .brand-tagline {
        display: block;
        overflow: visible;
        white-space: normal;
    }

    .experience-assurance {
        grid-template-columns: 1fr;
    }

    .experience-assurance h2 {
        max-width: 28ch;
    }
}

@media (max-width: 767.98px) {
    .announcement-copy {
        font-size: 0.66rem;
    }

    .announcement-pill,
    .premium-topline-contact {
        display: inline-flex;
    }

    .premium-brand {
        max-width: calc(100% - 6.2rem);
    }

    .premium-brand .brand-kicker,
    .premium-brand .brand-tagline {
        display: block;
        font-size: 0.58rem;
        line-height: 1.22;
    }

    .premium-brand strong {
        font-size: clamp(1.18rem, 5vw, 1.52rem);
    }

    .home-v3-slide-image {
        aspect-ratio: 16 / 10;
        min-height: 13rem;
    }

    .home-v3-slide-image img {
        min-height: 13rem;
    }

    .project-card:hover,
    .home-v3-project-card:hover,
    .home-v3-latest-card:hover,
    .home-v3-collection-card:hover,
    .home-v8-benefit-grid article:hover {
        transform: none;
    }

    .experience-assurance {
        padding: 1rem;
        border-radius: 1.05rem;
    }

    .experience-assurance-grid {
        grid-template-columns: 1fr;
    }

    .experience-assurance article {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card-media img,
    .home-v3-project-card,
    .home-v3-latest-card,
    .home-v3-collection-card,
    .home-v8-benefit-grid article {
        transition: none;
    }

    .site-scroll-progress > span,
    .premium-site-header {
        transition: none;
    }
}
