:root {
    --blue: royalblue;
    --blue-bright: #007bff;
    --blue-deep: #1d2d6f;
    --blue-soft: #eef4ff;
    --white: #ffffff;
    --ink: #172033;
    --muted: #3f4b5d;
    --border: #d9e2ff;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
    --shadow-hover: 0 20px 48px rgba(23, 32, 51, 0.18);
    --focus-ring: 0 0 0 4px rgba(0, 123, 255, 0.22);
    --radius: 22px;
    --section-padding: clamp(4rem, 8vw, 7.5rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
}

a {
    color: var(--blue-deep);
    text-underline-offset: 0.18em;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        text-decoration-color 180ms ease;
}

a:hover,
a:focus-visible {
    color: var(--blue-bright);
}

.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;
}

header {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    transition:
        padding 280ms ease,
        box-shadow 280ms ease;
}

header > #title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 4.5rem 1.35rem;
    text-align: center;
    transition: padding 280ms ease;
}

header > #title > h1 {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

header > #title .site-logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

header > #title .site-logo-link:hover,
header > #title .site-logo-link:focus-visible {
    color: inherit;
    transform: translateX(3px);
}

header > #title .site-logo {
    display: block;
    width: min(100%, clamp(200px, 48vw, 340px));
    height: auto;
    margin: 0 auto;
    vertical-align: top;
    will-change: transform;
    transform: scale(1);
    transform-origin: center;
    transition: transform 280ms ease;
}

header > #title > p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    line-height: 1.2;
    max-height: 2rem;
    opacity: 1;
    overflow: hidden;
    transform: scaleY(1);
    transform-origin: top center;
    transition:
        opacity 220ms ease,
        transform 280ms ease,
        max-height 280ms ease,
        margin 280ms ease;
}

header.is-compact {
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.22);
}

header.is-compact > #title {
    padding: 18px 4.5rem;
}

header.is-compact > #title .site-logo {
    transform: scale(0.68);
}

header.is-compact > #title > p {
    max-height: 0;
    margin: 0;
    opacity: 0;
    transform: scaleY(0);
}

header.is-compact > button {
    right: 18px;
}

button,
.button {
    min-height: 48px;
    width: auto;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled),
.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

header > button,
header > .ham-menu {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    color: var(--white);
    background: var(--blue);
    transform: translateY(-50%);
}

header > button:hover:not(:disabled),
header > button:focus-visible:not(:disabled),
header > .ham-menu:hover:not(:disabled),
header > .ham-menu:focus-visible:not(:disabled) {
    color: var(--white);
    background: var(--blue-bright);
    transform: translateY(calc(-50% - 2px));
}

.ham-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.ham-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.close-menu-icon {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
}

.close-menu-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 2.5px;
    background: currentColor;
    border-radius: 999px;
}

.close-menu-icon span:first-child {
    transform: translateY(-50%) rotate(45deg);
}

.close-menu-icon span:last-child {
    transform: translateY(-50%) rotate(-45deg);
}

nav button#close-sidemenu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin-left: -8px; /* optically align X with link text */
    opacity: 0.9;
    transition: opacity 160ms ease, transform 160ms ease;
}

nav button#close-sidemenu:hover,
nav button#close-sidemenu:focus-visible {
    opacity: 1;
    transform: scale(1.06);
}

nav {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: min(22rem, 100%);
    height: 100dvh;
    padding: 1.25rem 1.5rem 1.75rem;
    overflow-y: auto;
    color: var(--white);
    background: linear-gradient(180deg, var(--blue), var(--blue-deep));
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    transition: right 300ms ease;
}

nav.show {
    right: 0;
}

nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

nav li:first-child {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    margin: 0;
}

nav a,
nav button {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
}

nav a {
    opacity: 0.9;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
    color: var(--white);
    opacity: 1;
    text-decoration: none;
}

nav a,
footer a,
.service-card a,
.project-card a,
.contact-card a,
.faq-card a {
    display: inline-block;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible,
.service-card a:hover,
.service-card a:focus-visible,
.project-card a:hover,
.project-card a:focus-visible,
.contact-card a:hover,
.contact-card a:focus-visible,
.faq-card a:hover,
.faq-card a:focus-visible {
    transform: translateX(3px);
}

nav button {
    min-height: 40px;
    padding: 0;
    background: transparent;
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    line-height: 1;
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: none;
    width: 100%;
    height: 100dvh;
    background: rgba(23, 32, 51, 0.55);
}

nav.show ~ #overlay {
    display: block;
}

.hero {
    position: relative;
    min-height: min(720px, calc(100dvh - 90px));
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    animation: portfolioHeroFadeIn 1s ease-out both;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(880px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.52), rgba(29, 45, 111, 0.58));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero h2 {
    margin: 0.2em 0;
    font-size: clamp(2.6rem, 8vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
    color: inherit;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.cta-link,
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.cta-link,
.button-primary {
    color: var(--white);
    background: var(--blue);
    border: 1px solid var(--blue);
}

.button-secondary {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.8);
}

.cta-link:hover,
.cta-link:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
    color: var(--white);
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--blue-deep);
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero .button-primary,
.services-hero .button-primary,
.portfolio-hero .button-primary,
.section-blue .button-primary,
.section-blue .cta-link,
.feature-card .cta-link,
.feature-card .button-primary {
    color: var(--blue-deep);
    background: var(--white);
    border-color: var(--white);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible,
.services-hero .button-primary:hover,
.services-hero .button-primary:focus-visible,
.portfolio-hero .button-primary:hover,
.portfolio-hero .button-primary:focus-visible,
.section-blue .button-primary:hover,
.section-blue .button-primary:focus-visible,
.section-blue .cta-link:hover,
.section-blue .cta-link:focus-visible,
.feature-card .cta-link:hover,
.feature-card .cta-link:focus-visible,
.feature-card .button-primary:hover,
.feature-card .button-primary:focus-visible {
    color: var(--white);
    background: var(--blue-bright);
    border-color: var(--blue-bright);
}

.section,
.page-section {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: var(--section-padding) 0;
}

.section-wide {
    width: 100%;
    padding: var(--section-padding) 1rem;
}

.section-blue {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.section-soft {
    background: var(--blue-soft);
}

.section-header {
    max-width: 780px;
    margin-bottom: 2rem;
}

.section-header.center {
    margin-inline: auto;
    text-align: center;
}

.section-header h2,
.page-section h2 {
    margin: 0 0 0.6rem;
    color: var(--blue);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.section-blue .section-header h2,
.section-blue .section-header p,
.section-blue h2,
.section-blue h3,
.section-blue p,
.section-blue li {
    color: var(--white);
}

.section-header p,
.lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.section-blue .lead {
    color: rgba(255,255,255,0.9);
}

.card-grid,
.service-grid,
.project-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.featured-projects-cta {
    margin-top: 2rem;
}

.card,
.service-card,
.project-card,
.stat-card,
.contact-card,
.faq-card {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.service-card:has(a):hover,
.service-card:has(a:focus-visible),
.project-card:has(a):hover,
.project-card:has(a:focus-visible),
.contact-card:has(a):hover,
.contact-card:has(a:focus-visible) {
    transform: translateY(-4px);
    border-color: rgba(65, 105, 225, 0.42);
    box-shadow: var(--shadow-hover);
}

.service-card {
    color: var(--ink);
    text-align: left;
    font-size: 1rem;
}

a.service-card {
    text-decoration: none;
    cursor: pointer;
}

a.service-card:hover,
a.service-card:focus-visible {
    color: var(--ink);
    transform: translateY(-4px);
    border-color: rgba(65, 105, 225, 0.42);
    box-shadow: var(--shadow-hover);
}

a.service-card:hover h3,
a.service-card:focus-visible h3 {
    color: var(--blue-bright);
}

.home-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.home-services-grid .service-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 240px;
    padding: 2rem;
}

.home-services-grid .service-card h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.home-services-grid .service-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.service-card p,
.project-card p,
.card p,
.contact-card p,
.faq-card p,
.timeline-item p,
.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    color: var(--blue);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
}

.project-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.project-card-body a {
    margin-top: auto;
    padding-top: 0.85rem;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.project-card-body a:hover,
.project-card-body a:focus-visible {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transform: none;
}

.project-tag,
.badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.85rem;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.feature-card {
    min-height: 260px;
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(65, 105, 225, 0.95), rgba(29, 45, 111, 0.96)),
        radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 38%);
    align-content: center;
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--blue-bright);
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding-left: 1rem;
    border-left: 4px solid var(--blue-bright);
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(65, 105, 225, 0.55);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--blue);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button-primary {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.contact-form .button-primary:hover,
.contact-form .button-primary:focus-visible {
    color: var(--white);
    background: var(--blue-deep);
    border-color: var(--blue-deep);
}

#services {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #e8ecf2;
}

#services.section-wide,
#services-page-intro.section-wide {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

#services .section,
#services-page-intro .section {
    padding-block: 0;
}

#services + .section {
    padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

#services-page-intro + .service-feature .service-feature-inner {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.services-intro {
    align-items: center;
}

.services-intro-header h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

@media screen and (min-width: 1001px) {
    .services-intro-header h2 span {
        display: block;
    }
}

.services-intro-copy p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.contact-stack {
    width: min(100%, 560px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.contact-stack .section-header {
    margin-bottom: 1.5rem;
}

.contact-stack .section-header p {
    margin: 0;
}

.contact-stack .contact-phone {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.2;
}

.contact-stack .contact-phone a {
    color: inherit;
    text-decoration: none;
}

.contact-stack .contact-phone a:hover,
.contact-stack .contact-phone a:focus-visible {
    color: var(--blue);
}

.contact-stack .contact-call-actions {
    margin: 0 0 1rem;
}

.contact-stack .contact-email-note {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.contact-stack .contact-email-note a {
    color: inherit;
    text-decoration: none;
}

.contact-stack .contact-email-note a:hover,
.contact-stack .contact-email-note a:focus-visible {
    color: inherit;
}

.contact-stack .contact-cards {
    width: 100%;
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}

.contact-stack .contact-card {
    text-align: left;
}

#services-page-intro {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #e8ecf2;
}

.services-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(520px, 70vh);
    overflow: hidden;
    color: var(--white);
    text-align: center;
    animation: portfolioHeroFadeIn 1s ease-out both;
}

.services-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.services-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-hero-overlay {
    display: none;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: min(880px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.52), rgba(29, 45, 111, 0.58));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.services-hero-content h2 {
    margin: 0.2em 0;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.services-hero-content p {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

@keyframes portfolioHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-feature {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f7f9fc 0%, var(--white) 16%, var(--white) 84%, #eef2f8 100%);
}

.service-feature.section-soft {
    background: linear-gradient(180deg, #eef2f8 0%, var(--blue-soft) 16%, var(--blue-soft) 84%, #e4ecfb 100%);
}

main > .service-feature + .service-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: min(92%, 1120px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(65, 105, 225, 0.18) 18%,
        rgba(65, 105, 225, 0.42) 50%,
        rgba(65, 105, 225, 0.18) 82%,
        transparent
    );
}

main > .service-feature + .service-feature::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: clamp(96px, 18vw, 180px);
    height: 4px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, var(--blue), var(--blue-deep));
    opacity: 0.55;
}

.service-feature-inner {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: var(--section-padding) 0;
}

.service-feature-content h2 {
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-feature-content p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.service-feature-content .badge {
    margin-bottom: 0.85rem;
}

.service-feature-content a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 800;
}

.service-feature-media {
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(65, 105, 225, 0.92), rgba(29, 45, 111, 0.96)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%);
    box-shadow: var(--shadow);
}

.service-feature-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

main > .service-feature:nth-child(4) .service-feature-media,
main > .service-feature:nth-child(8) .service-feature-media {
    background:
        linear-gradient(145deg, rgba(29, 45, 111, 0.96), rgba(65, 105, 225, 0.9)),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 40%);
}

main > .service-feature:nth-child(5) .service-feature-media,
main > .service-feature:nth-child(9) .service-feature-media {
    background:
        linear-gradient(120deg, rgba(0, 123, 255, 0.88), rgba(29, 45, 111, 0.94)),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2), transparent 42%);
}

main > .service-feature:nth-child(6) .service-feature-media {
    background:
        linear-gradient(160deg, rgba(65, 105, 225, 0.9), rgba(0, 123, 255, 0.82)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 36%);
}

main > .service-feature:nth-child(7) .service-feature-media {
    background:
        linear-gradient(130deg, rgba(29, 45, 111, 0.94), rgba(65, 105, 225, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 38%);
}

.service-feature-media span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media screen and (min-width: 1001px) {
    .service-feature--reverse .service-feature-content {
        order: 2;
    }

    .service-feature--reverse .service-feature-media {
        order: 1;
    }
}

@media screen and (max-width: 1000px) {
    .service-feature--reverse .service-feature-content,
    .service-feature--reverse .service-feature-media {
        order: unset;
    }

    .service-feature-media {
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .services-hero,
    .portfolio-hero,
    .project-detail-hero {
        animation: none;
    }

    .loader {
        display: none;
    }
}

.services-page-cta .section {
    text-align: center;
    padding-block: 2.5rem;
}

.services-page-cta h2 {
    margin: 0 0 0.5rem;
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.services-page-cta p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.05rem;
}

#portfolio-page-intro {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #e8ecf2;
}

#contact-page-intro.section-wide {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid #d6e0f0;
}

.portfolio-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(520px, 70vh);
    overflow: hidden;
    color: var(--white);
    text-align: center;
    animation: portfolioHeroFadeIn 1s ease-out both;
}

.portfolio-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.portfolio-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-hero-overlay {
    display: none;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    max-width: min(880px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.52), rgba(29, 45, 111, 0.58));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.portfolio-hero-content h2 {
    margin: 0.2em 0;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.portfolio-hero-content p {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.project-feature {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f7f9fc 0%, var(--white) 16%, var(--white) 84%, #eef2f8 100%);
}

.project-feature.section-soft {
    background: linear-gradient(180deg, #eef2f8 0%, var(--blue-soft) 16%, var(--blue-soft) 84%, #e4ecfb 100%);
}

main > .project-feature + .project-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: min(92%, 1120px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(65, 105, 225, 0.18) 18%,
        rgba(65, 105, 225, 0.42) 50%,
        rgba(65, 105, 225, 0.18) 82%,
        transparent
    );
}

main > .project-feature + .project-feature::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: clamp(96px, 18vw, 180px);
    height: 4px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, var(--blue), var(--blue-deep));
    opacity: 0.55;
}

.project-feature-inner {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: var(--section-padding) 0;
}

.project-feature-content h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.project-feature-content h2 a {
    color: var(--blue);
    text-decoration: none;
    transition: color 180ms ease;
}

.project-feature-content h2 a:hover,
.project-feature-content h2 a:focus-visible {
    color: var(--blue-bright);
}

.project-feature-content .lead {
    margin: 0 0 1.25rem;
}

.project-feature-content .project-tag {
    margin-bottom: 0.85rem;
}

.project-summary {
    display: grid;
    gap: 1rem;
}

.project-summary h3 {
    margin: 0 0 0.35rem;
    color: var(--blue-deep);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.project-feature-media {
    display: block;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(65, 105, 225, 0.92), rgba(29, 45, 111, 0.96)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.project-feature-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.project-feature-media:hover,
.project-feature-media:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

main > .project-feature:nth-child(4) .project-feature-media,
main > .project-feature:nth-child(8) .project-feature-media {
    background:
        linear-gradient(145deg, rgba(29, 45, 111, 0.96), rgba(65, 105, 225, 0.9)),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 40%);
}

main > .project-feature:nth-child(5) .project-feature-media,
main > .project-feature:nth-child(9) .project-feature-media {
    background:
        linear-gradient(120deg, rgba(0, 123, 255, 0.88), rgba(29, 45, 111, 0.94)),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2), transparent 42%);
}

main > .project-feature:nth-child(6) .project-feature-media {
    background:
        linear-gradient(160deg, rgba(65, 105, 225, 0.9), rgba(0, 123, 255, 0.82)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 36%);
}

main > .project-feature:nth-child(7) .project-feature-media {
    background:
        linear-gradient(130deg, rgba(29, 45, 111, 0.94), rgba(65, 105, 225, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 38%);
}

.project-feature-media span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media screen and (min-width: 1001px) {
    .project-feature--reverse .project-feature-content {
        order: 2;
    }

    .project-feature--reverse .project-feature-media {
        order: 1;
    }
}

@media screen and (max-width: 1000px) {
    .project-feature--reverse .project-feature-content,
    .project-feature--reverse .project-feature-media {
        order: unset;
    }

    .project-feature-media {
        min-height: 240px;
    }
}

.project-detail-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(360px, 55vh);
    overflow: hidden;
    color: var(--white);
    text-align: center;
    animation: portfolioHeroFadeIn 1s ease-out both;
}

.project-detail-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.project-detail-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-detail-hero-overlay {
    display: none;
}

.project-detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: min(820px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.52), rgba(29, 45, 111, 0.58));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-detail-hero-content h1 {
    margin: 0.2em 0;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.project-detail-hero-content p {
    max-width: 640px;
    margin-inline: auto;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.project-detail-body {
    width: min(100% - 2rem, 820px);
    margin: 0 auto;
    padding: 0 0 var(--section-padding);
}

.section-wide:has(.project-detail-body) {
    padding-top: 0;
}

.section-wide:has(.project-top-image) {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
}

.project-detail-body h1 {
    margin: 0.4rem 0 0.75rem;
    color: var(--blue-deep);
    font-size: clamp(2.1rem, 4.6vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.project-detail-body .project-tag {
    display: inline-flex;
    margin-top: 0.5rem;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0 2.25rem;
    padding: 0;
    list-style: none;
}

.project-meta-card {
    padding: 1.15rem 1.25rem;
    background: var(--blue-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.project-meta-card strong {
    display: block;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--blue-deep);
    line-height: 1.1;
}

.project-meta-card span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.project-detail-body h2 {
    margin: 2rem 0 0.75rem;
    color: var(--blue);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.project-detail-body h2:first-child {
    margin-top: 0;
}

.project-detail-body p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-detail-body .check-list {
    margin-top: 0.5rem;
}

.project-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.project-gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-gallery-placeholder img,
.project-gallery-trigger img {
    width: 100%;
    min-height: 160px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
}

.project-gallery-trigger {
    display: block;
    width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
    overflow: hidden;
}

.project-gallery-trigger:hover,
.project-gallery-trigger:focus-visible {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.project-gallery-trigger:hover img,
.project-gallery-trigger:focus-visible img {
    transform: scale(1.02);
}

.project-gallery-trigger img {
    transition: transform 220ms ease;
}

.project-top-image .project-gallery-trigger {
    width: 100%;
    cursor: zoom-in;
}

.project-top-image .project-gallery-trigger img {
    width: 100%;
    height: auto;
    max-height: 680px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(1rem, 4vw, 2.5rem);
    border: 0;
    color: var(--white);
    background: transparent;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    gap: 1.25rem;
}

.project-lightbox:not([open]) {
    display: none;
}

.project-lightbox[open] {
    animation: lightboxFade 260ms ease;
}

.project-lightbox::backdrop {
    background: radial-gradient(
        120% 120% at 50% 0%,
        rgba(29, 45, 111, 0.82),
        rgba(10, 14, 24, 0.94)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: lightboxFade 260ms ease;
}

.project-lightbox__figure {
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    width: min(100%, 1120px);
    height: 100%;
    margin: 0;
}

.project-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 11rem);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    animation: lightboxZoom 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-lightbox__caption {
    max-width: 46rem;
    margin: 0;
    padding: 0.55rem 1.15rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-lightbox__close,
.project-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.project-lightbox__close:hover,
.project-lightbox__close:focus-visible,
.project-lightbox__nav:hover,
.project-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    box-shadow: none;
}

.project-lightbox__close {
    top: clamp(1rem, 4vw, 2.25rem);
    right: clamp(1rem, 4vw, 2.25rem);
}

.project-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox__nav:hover,
.project-lightbox__nav:focus-visible {
    transform: translateY(-50%) scale(1.08);
}

.project-lightbox__prev {
    left: clamp(0.75rem, 3vw, 2rem);
}

.project-lightbox__next {
    right: clamp(0.75rem, 3vw, 2rem);
}

.project-lightbox__nav span {
    font-size: 2rem;
    line-height: 1;
    margin-top: -3px;
}

.project-lightbox__counter {
    grid-row: 2;
    margin: 0;
    padding: 0.35rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

@keyframes lightboxFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-lightbox[open],
    .project-lightbox::backdrop,
    .project-lightbox__image {
        animation: none;
    }
}

@media screen and (max-width: 760px) {
    .project-lightbox__image {
        max-height: calc(100dvh - 12rem);
    }

    .project-lightbox__nav {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .project-lightbox__prev {
        left: 0.6rem;
    }

    .project-lightbox__next {
        right: 0.6rem;
    }
}

.project-top-image {
    width: min(60%, 1120px);
    margin: 0 auto;
}

.project-top-image img {
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media screen and (max-width: 760px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
}

#instagram-header {
    text-align: center;
}

#instagram-header i,
#instagram-handle {
    color: var(--muted);
}

#instagram-section .section {
    padding-top: calc(var(--section-padding) * 1.6);
    padding-bottom: calc(var(--section-padding) * 1.6);
}

#instagram-section #instagram-header {
    margin-bottom: 1.6rem;
}

.instagram-profile {
    display: flex;
    justify-content: center;
    margin-bottom: 1.6rem;
}

.instagram-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.instagram-profile-link:hover,
.instagram-profile-link:focus-visible {
    color: var(--blue-deep);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.instagram-profile-avatar {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    border-radius: 50%;
}

.instagram-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.instagram-updated {
    font-size: 0.8rem;
    color: var(--muted);
}

#instagram-feed {
    width: 100%;
    min-height: 12rem;
}

.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    width: min(100%, 960px);
    margin-inline: auto;
}

.instagram-feed-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.instagram-feed-item:hover,
.instagram-feed-item:focus-visible {
    color: var(--blue-deep);
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.instagram-feed-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.instagram-feed-placeholder {
    display: grid;
    place-items: center;
    min-height: 160px;
    aspect-ratio: 1 / 1;
    padding: 1rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    background:
        linear-gradient(135deg, rgba(65, 105, 225, 0.92), rgba(29, 45, 111, 0.96)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%);
}

.instagram-feed-caption {
    margin: 0;
    padding: 0.75rem 0.85rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.instagram-feed-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(23, 32, 51, 0.72);
    border-radius: 999px;
}

.instagram-feed-skeleton {
    min-height: 200px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--blue-soft) 25%, #f8faff 50%, var(--blue-soft) 75%);
    background-size: 200% 100%;
    animation: instagramSkeleton 1.2s ease-in-out infinite;
}

.instagram-feed-error {
    margin: 0;
    padding: 1.25rem;
    text-align: center;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

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

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

#instagram-follow {
    width: fit-content;
    margin: 1.6rem auto 4.8rem;
}

/* Hide Elfsight free-plan branding link */
#instagram-section a[href*="elfsight.com"],
#instagram-section a[href*="elfsigh.net"],
#instagram-section [class*="eapps-widget-toolbar"],
#instagram-section [class*="ea-free-link"],
#instagram-section [class*="eapps-link"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

footer {
    margin-top: auto;
    padding: 2.5rem 1rem 6rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

footer > .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
    gap: 1.5rem;
    width: min(100%, 1120px);
    margin: 0 auto;
}

footer .footer-logo {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin: 0;
    pointer-events: none;
}

footer .footer-content > div:first-child h2 {
    margin: 0;
    font-size: 0;
    line-height: 0;
}

footer .footer-content > div:first-child p {
    margin: 0.35rem 0 0;
}

footer ul {
    padding: 0;
    list-style: none;
}

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

footer a:hover,
footer a:focus-visible {
    color: var(--white);
    text-decoration: none;
}

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

.social-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    background: var(--white);
}

.social-links > a:hover,
.social-links > a:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: var(--shadow-hover);
}

.social-links img {
    width: 28px;
    height: 28px;
}

footer > p {
    text-align: center;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deep);
    will-change: opacity;
    animation: loaderOverlay 5.2s ease forwards;
}

.loader-mark {
    display: block;
    width: 60%;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    will-change: transform, opacity;
    animation: loaderMark 4.3s cubic-bezier(.2,.8,.2,1) both;
}

.loader--waiting,
.loader--waiting .loader-mark {
    animation-play-state: paused;
}

@keyframes loaderMark {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

@keyframes loaderOverlay {
    0%, 72% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 1000px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .instagram-feed-skeleton {
        animation: none;
    }
}

@media screen and (max-width: 760px) {
    header > #title {
        padding: 1.25rem 6rem 1.15rem;
        text-align: center;
    }

    header.is-compact > #title {
        padding: 18px 6rem;
    }

    header > #title .site-logo {
        width: min(100%, 240px);
        margin: 0 auto;
    }

    header.is-compact > #title .site-logo {
        transform: scale(0.7);
    }

    header > #title > p {
        font-size: 0.8rem;
    }

    .instagram-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    header {
        view-transition-name: site-header;
    }

    main {
        view-transition-name: page-main;
    }

    footer {
        view-transition-name: site-footer;
    }

    ::view-transition-group(root),
    ::view-transition-group(page-main),
    ::view-transition-group(site-footer) {
        overflow: hidden;
    }

    ::view-transition-old(page-main),
    ::view-transition-old(site-footer) {
        animation: page-slide-out-left 0.7s ease-in both;
        z-index: 1;
    }

    ::view-transition-new(page-main),
    ::view-transition-new(site-footer) {
        animation: page-slide-in-from-right 0.7s ease-in both;
        z-index: 2;
    }
}

@keyframes page-slide-out-left {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 1;
        transform: translateX(-100%);
    }
}

@keyframes page-slide-in-from-right {
    from {
        opacity: 1;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
