/*
==================================================
Alves Estudio - Modern white visual system
==================================================
Tema claro com acentos azul/vermelho, texto preto e superficies brancas.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #0d4fb8;
    --blue-700: #0a3f94;
    --blue-050: #edf4ff;
    --blue-100: #e6f0ff;
    --blue-200: #d1e3ff;
    --red: #d72638;
    --red-700: #b81b2c;
    --red-050: #fff1f3;
    --red-100: #ffe7ea;
    --black: #101827;
    --ink: #1f2937;
    --muted: #526071;
    --line: #e5e7eb;
    --line-strong: #cfd8e3;
    --white: #ffffff;
    --surface: #f5f7fb;
    --surface-strong: #edf3fb;
    --shadow-sm: 0 10px 24px rgba(16, 24, 39, 0.08);
    --shadow-md: 0 18px 48px rgba(16, 24, 39, 0.12);
    --shadow-blue: 0 18px 42px rgba(13, 79, 184, 0.2);
    --shadow-red: 0 18px 42px rgba(215, 38, 56, 0.18);
    --radius: 8px;
    --radius-sm: 6px;
    --container: min(1120px, calc(100% - 40px));
    --header-height: 86px;
    --font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #0f172a;
    background: #ffffff;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.72;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
    color: #0f172a;
}

body.page-body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background: url('../images/BKG.png') center center / cover no-repeat;
    filter: blur(5px) brightness(1.12) saturate(0.7) contrast(1.02);
    transform: scale(1.04);
    opacity: 0.55;
}

body.page-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.7);
}

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

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

::selection {
    color: var(--white);
    background: var(--blue);
}

#studio-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.45;
    pointer-events: none;
}

.studio-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(13, 79, 184, 0.03);
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 98px 0;
}

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

.section__title {
    margin-bottom: 42px;
}

.title--section,
.section__heading {
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.muted,
.text--lead,
.service-card__copy,
.feature p,
.timeline-item p,
.about p,
.about li,
.contact-card p,
.footer__brand p,
.footer__info {
    color: #121314;
}

.text--lead {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.section__title {
    display: grid;
    gap: 12px;
    max-width: 780px;
    margin-bottom: 34px;
}

/* Card styling for main page intro sections only */
.services.section > .section__title,
.apps-page > .section__title {
    padding: 32px 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,245,255,0.8));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Contact page intro */
main.container > .section > .section__title {
    padding: 32px 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,245,255,0.8));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.section__title > span,
.tag {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid rgba(7, 89, 216, 0.18);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(7, 89, 216, 0.08);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.title--section,
.section__heading {
    color: var(--black);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 850;
}

.title-sm {
    font-size: 1.3rem;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 229, 238, 0.82);
    box-shadow: 0 8px 28px rgba(11, 15, 25, 0.06);
    backdrop-filter: blur(16px);
    transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    width: auto;
    height: 54px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: var(--blue-050);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--red);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--black);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.menu-toggle:hover,
.menu-toggle.active {
    color: var(--blue);
    border-color: rgba(7, 89, 216, 0.35);
    transform: translateY(-1px);
}

/* Buttons */
.btn,
.footer__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.15;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.btn:hover,
.footer__action-btn:hover {
    transform: translateY(-2px);
}

.btn--primary,
.footer__action-btn {
    color: var(--white);
    background: var(--blue);
    box-shadow: var(--shadow-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.footer__action-btn:hover,
.footer__action-btn:focus-visible {
    background: var(--blue-700);
    box-shadow: 0 16px 30px rgba(13, 79, 184, 0.22);
}

.btn--secondary {
    color: var(--red);
    background: var(--white);
    border-color: rgba(225, 29, 46, 0.26);
    box-shadow: var(--shadow-red);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 16px 30px rgba(215, 38, 56, 0.2);
}

/* WhatsApp Button Styling */
#whatsapp-button {
    color: var(--red);
    background: var(--white);
    border-color: rgba(225, 29, 46, 0.26);
    box-shadow: var(--shadow-red);
}

#whatsapp-button:hover,
#whatsapp-button:focus-visible {
    color: var(--white);
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.25);
}

.btn--ghost {
    color: var(--blue);
    border-color: rgba(7, 89, 216, 0.28);
    background: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(7, 89, 216, 0.22);
    outline-offset: 3px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 54px) 0 76px;
    color: var(--white);
    background: var(--blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 39, 0.18);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: min(52vw, 640px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(8deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.hero-content .tag {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    border-left-color: var(--red);
    box-shadow: none;
}

.hero h1 {
    max-width: 820px;
    color: var(--white);
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    font-weight: 850;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero .btn--primary {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.hero .btn--primary:hover {
    color: var(--white);
    background: var(--red);
}

.hero .btn--secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.hero .btn--secondary:hover {
    background: var(--blue);
    border-color: var(--blue);
}

/* Cards and content blocks */
.service-card,
.feature,
.timeline-item,
.about__panel,
.contact-card,
.card,
.glass-card,
.stat-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover,
.feature:hover,
.timeline-item:hover,
.about__panel:hover,
.contact-card:hover,
.card:hover,
.glass-card:hover,
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7, 89, 216, 0.3);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
}

.services__wrapper,
.feature-grid,
.portfolio__grid,
.portfolio-grid,
.services-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, #75b4ff 50%, var(--red) 100%);
}

.service-card img,
.service-card__audio,
.service-card__video,
.service-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-strong);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 300ms ease;
}

.service-card__media {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.service-card__media .service-card__audio {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
}

.clickable-image {
    cursor: pointer;
}

.clickable-image:hover {
    opacity: 0.9;
}

.service-card__title,
.service-card__copy {
    padding-inline: 22px;
}

.service-card__title {
    padding-top: 24px;
    color: var(--black);
    font-size: 1.32rem;
    line-height: 1.25;
    font-weight: 850;
}

.service-card__copy {
    padding-top: 12px;
    padding-bottom: 26px;
    line-height: 1.8;
    font-size: 0.98rem;
    color: var(--muted);
}

.feature {
    min-height: 230px;
    padding: 32px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--blue);
}

.feature h3 {
    color: var(--black);
    font-size: 1.38rem;
    line-height: 1.22;
    margin-bottom: 14px;
}

.feature p {
    color: var(--black);
}

.features {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

/* Process */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.timeline-item {
    padding: 32px 24px 28px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.timeline-item::before {
    content: attr(data-year);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}

.timeline-item:nth-child(even)::before {
    background: var(--red);
}

.timeline-item h4 {
    color: var(--black);
    font-size: 1.12rem;
    margin-bottom: 8px;
}

/* Stats */
.stats {
    color: var(--white);
    background: var(--blue);
}

.stats-grid > div,
.stat-card {
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    box-shadow: none;
}

.stats h2,
.stat-card strong {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1;
    font-weight: 900;
}

.stats p,
.stat-card span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

/* Gallery and portfolio */
.gallery,
.portfolio__grid {
    align-items: stretch;
}

.gallery img,
.portfolio__grid img,
.portfolio-card {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery img:hover,
.portfolio__grid img:hover,
.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 29, 46, 0.28);
    box-shadow: var(--shadow-md);
}

.portfolio-card {
    position: relative;
    min-height: 320px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: var(--white);
    background: rgba(16, 24, 39, 0.88);
}

.portfolio-card__label {
    color: #cfe1ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card__title {
    margin-top: 5px;
    font-size: 1.35rem;
}

.portfolio-card__link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--white);
    font-weight: 800;
}

.apps-page {
    padding-top: 28px;
}

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

.app-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    gap: 20px 22px;
    align-items: center;
    min-height: 260px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,247,255,0.82));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.6);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.app-card::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue) 0%, #75b4ff 100%);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 89, 216, 0.24);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

.app-card > h2,
.app-card > p,
.app-card > .app-card__link {
    grid-column: 1;
}

.app-card > h2 {
    color: var(--black);
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
    line-height: 1.15;
}

.app-card > p {
    max-width: 46ch;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.78;
}

.app-card__link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--blue);
    font-weight: 800;
    transition: color var(--transition), transform var(--transition);
}

.app-card__link:hover,
.app-card__link:focus-visible {
    color: var(--red);
    transform: translateX(3px);
}

.app-card .gallery {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 210px;
}

.app-card .gallery img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    background: var(--surface-strong);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card .gallery img:hover {
    transform: scale(1.02);
    border-color: rgba(7, 89, 216, 0.22);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.portfolio-catalog {
    display: grid;
    gap: 58px;
}

.portfolio-intro {
    margin: 10px 0 28px;
    padding: 20px 22px;
    border: 1px solid rgba(13, 79, 184, 0.12);
    border-left: 4px solid var(--blue);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(237, 244, 255, 0.9), rgba(255, 255, 255, 0.96));
    box-shadow: 0 16px 34px rgba(13, 79, 184, 0.06);
}

.portfolio-summary {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 20px;
    align-items: center;
    padding: 24px 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(238,245,255,0.82));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.04);
}

.portfolio-summary__content {
    display: grid;
    gap: 12px;
}

.portfolio-summary__content p {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.8;
}

.portfolio-summary__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.portfolio-summary__stats div {
    display: grid;
    gap: 6px;
    padding: 16px 12px;
    border: 1px solid rgba(13, 79, 184, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.portfolio-summary__stats strong {
    color: var(--blue);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1;
}

.portfolio-summary__stats span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-category {
    display: grid;
    gap: 18px;
    padding: 28px 22px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,249,252,0.82));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.portfolio-category:nth-child(even) {
    border-left-color: var(--red);
}

.portfolio-category > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.portfolio-category__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.portfolio-category__header span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue) 0%, #2c7df7 100%);
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(13, 79, 184, 0.18);
}

.portfolio-category:nth-child(even) .portfolio-category__header span {
    background: linear-gradient(135deg, var(--red) 0%, #f65a68 100%);
    box-shadow: 0 10px 22px rgba(215, 38, 56, 0.18);
}

.portfolio-category__header h3 {
    color: var(--black);
    font-size: clamp(1.48rem, 3vw, 2.18rem);
    line-height: 1.18;
}

.portfolio-actions {
    margin-top: auto;
    padding: 0 22px 24px;
}

.portfolio-actions .btn {
    width: 100%;
}

.portfolio-cta {
    padding: 20px 0 56px;
}

.portfolio-cta__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 26px 28px;
    border: 1px solid rgba(13, 79, 184, 0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--blue) 0%, #0a3f94 100%);
    box-shadow: var(--shadow-blue);
}

.portfolio-cta__inner > div:first-child {
    display: grid;
    gap: 14px;
}

.portfolio-cta .tag {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.portfolio-cta h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.portfolio-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.75;
}

.portfolio-cta__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
}

.services-page-shell {
    width: min(1220px, calc(100% - 40px));
    margin: 120px auto 80px;
}

.services-page {
    display: grid;
    gap: 26px;
}

.services-page__intro {
    display: grid;
    gap: 14px;
    padding: 28px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,245,255,0.8));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.5);
}

.about__intro {
    padding: 28px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,245,255,0.8));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.5);
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(13, 79, 184, 0.18);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services-page__intro h1 {
    color: var(--black);
    font-size: clamp(1.7rem, 5vw, 3.4rem);
    line-height: 0.96;
}

.services-page__intro p {
    max-width: 720px;
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.8;
}

.services__wrapper,
.feature-grid,
.portfolio__grid,
.portfolio-grid,
.services-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.services-page__grid {
    display: grid;
    gap: 28px;
}

.service-showcase {
    position: relative;
    display: grid;
    gap: 20px;
    padding: 24px 24px 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,249,252,0.85));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-showcase::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 16px;
    bottom: 16px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue) 0%, #75b4ff 100%);
}

.service-showcase--red::before {
    background: linear-gradient(180deg, var(--red) 0%, #f65a68 100%);
}

.service-showcase--red {
    border-left-color: var(--red);
}

.service-showcase__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 8px 0;
    text-align: center;
}

.service-showcase__header span {
    display: inline-flex;
    width: 50px;
    min-width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue) 0%, #2c7df7 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(13, 79, 184, 0.2);
}

.service-showcase--red .service-showcase__header span {
    background: linear-gradient(135deg, var(--red) 0%, #f65a68 100%);
    box-shadow: 0 12px 28px rgba(215, 38, 56, 0.2);
}

.service-showcase__header h2 {
    width: 100%;
    color: var(--black);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    text-align: center;
}

.service-showcase__body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 260px;
}

.service-showcase__body img {
    width: 220px !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    border-radius: 20px;
    object-fit: cover;
    background: var(--surface-strong);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0 !important;
    align-self: start !important;
    display: block;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.service-showcase__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 10px 6px;
    text-align: left;
    width: 100%;
}

.service-showcase__content p {
    color: var(--muted);
    font-size: 0.99rem;
    line-height: 1.8;
    text-align: left;
    width: 100%;
}

.service-showcase__content strong {
    margin-top: auto;
    color: var(--black);
    font-size: 0.94rem;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

.service-list {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border: 0 solid rgba(13, 79, 184, 0.12);
    border-radius: 16px;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
}

.service-list.open {
    display: grid;
    max-height: 420px;
    overflow-y: auto;
    opacity: 1;
    padding: 12px;
    border-width: 1px;
    background: rgba(13, 79, 184, 0.02);
}

.service-list a {
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    border: 1px solid rgba(13, 79, 184, 0.12);
    border-radius: 12px;
    color: var(--blue);
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-list a:hover,
.service-list a:focus-visible {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13, 79, 184, 0.14);
}

.service-dialog-trigger {
    width: auto;
    min-width: 148px;
    max-width: 195px;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .services-page-shell {
        width: min(100% - 22px, 1220px);
        margin-top: 90px;
    }

    .service-showcase__body {
        grid-template-columns: 1fr;
    }

    .service-showcase__body img {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .services-page-shell {
        margin-top: 86px;
    }

    .service-showcase {
        padding: 14px 14px 18px;
    }

    .service-showcase__header {
        gap: 10px;
    }

    .service-showcase__header h2 {
        font-size: 1.9rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

/* About page */
.about-page-shell {
    padding-top: 120px;
}

.about {
    max-width: 1100px;
    margin-inline: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
}

.about-card {
    position: relative;
    display: grid;
    gap: 0;
    align-content: start;
    padding: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,249,252,0.85));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.about-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue) 0%, #75b4ff 100%);
}

.about-card .section__title {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 26px 28px 14px 32px;
    max-width: none;
}

.about-card .title--section {
    font-size: clamp(2.05rem, 2.8vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.about-card--wide {
    grid-column: auto;
}

.about .section {
    padding: 0;
    border-top: 0;
}

.about__intro {
    padding-bottom: 12px;
}

.about__story,
.about__two-col,
.about__feature-grid {
    display: grid;
    gap: 18px;
}

.about__story,
.about__two-col,
.about__feature-grid,
.about__projects,
.about-card > p,
.about-card > .text--lead,
.about-card > ul,
.about-card .about__list {
    padding: 0 24px 22px 28px;
}

.about__story {
    display: grid;
    gap: 14px;
}

.about__story p,
.about__panel p,
.about__feature-item p,
.about-card > p,
.about-card > .text--lead,
.about-card li {
    color: var(--ink);
}

.about__two-col,
.about__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    padding-top: 0;
    gap: 16px;
}

.about__panel,
.about__feature-item {
    display: grid;
    align-content: start;
    min-height: 150px;
    padding: 16px 18px 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
}

.about__panel h3,
.about__feature-item h3,
.about h3,
.about h4 {
    margin: 0 0 10px;
    color: var(--black);
    line-height: 1.25;
}

.about__panel h3,
.about__feature-item h3 {
    color: var(--blue);
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.about__feature-item--full {
    grid-column: 1 / -1;
}

.about__projects {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.about__projects h4 {
    margin-bottom: 12px;
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    color: var(--black);
}

.about__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
}

.about-card > .text--lead,
.about-card > p,
.about-card > .about__list {
    margin-top: 0;
}

.about-card > .text--lead,
.about-card > p,
.about-card > .about__list {
    margin-top: 0;
}

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

.about li {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    line-height: 1.7;
}

.about li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(224, 60, 58, 0.12);
}

.about p,
.about li {
    margin: 0;
}

.about strong {
    color: var(--black);
}

.about__closing {
    font-size: 1.15rem;
}

.about a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(7, 89, 216, 0.28);
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .about-grid,
    .about__two-col,
    .about__feature-grid,
    .about__list--grid,
    .about__list--inline {
        grid-template-columns: 1fr;
    }

    .about-page-shell {
        padding-top: 96px;
    }
}

/* Contact */
.contact-section {
    margin-top: 28px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.contact-card {
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--blue);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,249,252,0.85));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.contact-card h3 {
    color: var(--black);
    font-size: 1.48rem;
    margin-bottom: 10px;
    font-weight: 850;
    line-height: 1.22;
}

.contact-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.contact-form .full,
.contact-form textarea,
.form-cta,
#form-status {
    grid-column: 1 / -1;
}

input,
textarea,
select,
.form-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--black);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.6;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

textarea {
    min-height: 154px;
    resize: vertical;
    padding-top: 14px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(82, 96, 113, 0.7);
}

input:focus,
textarea:focus,
select:focus,
.form-field:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(7, 89, 216, 0.12);
    background: var(--white);
}

.form-cta,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

#form-status .success,
#form-status .error {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

#form-status .success {
    color: #0f6a39;
    background: #eaf8ef;
    border: 1px solid #bde9cd;
}

#form-status .error {
    color: #9f1622;
    background: var(--red-050);
    border: 1px solid #ffc9d0;
}

.briefing-fields {
    display: grid;
}

.briefing-empty,
.briefing-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.briefing-empty {
    padding: 16px;
    color: var(--muted);
    font-weight: 700;
}

.briefing-panel {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.briefing-panel h4 {
    color: var(--black);
    font-size: 1.15rem;
    line-height: 1.2;
}

.briefing-panel p {
    color: var(--muted);
}

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

.briefing-control,
.briefing-group {
    display: grid;
    gap: 8px;
}

.briefing-control span,
.briefing-group legend {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 800;
}

.briefing-control textarea {
    min-height: 118px;
}

.briefing-group {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.briefing-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    accent-color: var(--blue);
}

.contact-contact-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.contact-contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(245, 247, 251, 0.8);
    border: 1px solid rgba(207, 216, 227, 0.6);
    transition: all 200ms ease;
}

.contact-contact-item:hover {
    background: rgba(237, 244, 255, 0.9);
    border-color: rgba(13, 79, 184, 0.2);
    transform: translateY(-2px);
}

.icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(13, 79, 184, 0.2);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-contact-item:hover .icon {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(13, 79, 184, 0.3);
}

.icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact-contact-item strong {
    display: block;
    font-size: 1.02rem;
    color: var(--black);
    margin-bottom: 4px;
    line-height: 1.3;
}

.contact-contact-item .muted {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.divider {
    height: 1px;
    margin: 26px 0;
    background: var(--line);
}

.map,
.contact-map {
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
}

.map iframe,
.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* CTA */
.cta {
    padding: 78px 0;
    color: var(--white);
    background: var(--blue);
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta h2 {
    max-width: 720px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.cta .btn--primary {
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.cta .btn--primary:hover {
    color: var(--white);
    background: var(--red);
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    padding: 64px 0 28px;
    color: var(--ink);
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--red);
}

.footer::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(520px, 42vw);
    height: 100%;
    pointer-events: none;
    background: rgba(13, 79, 184, 0.02);
}

.footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.45fr 0.75fr 0.75fr;
    gap: 34px;
    align-items: start;
}

.footer__brand {
    display: grid;
    gap: 16px;
}

.footer__brand img {
    width: auto;
    height: 62px;
}

.footer__brand p,
.footer__info {
    color: var(--muted);
}

.footer__info {
    display: grid;
    gap: 6px;
    max-width: 560px;
    padding-left: 16px;
    border-left: 3px solid rgba(7, 89, 216, 0.22);
}

.footer__info strong {
    color: var(--black);
}

.footer__heading {
    margin-bottom: 14px;
    color: var(--black);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__heading::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--blue);
}

.footer__links,
.footer__socials {
    display: grid;
    gap: 10px;
}

.footer__links a,
.footer__socials a {
    width: fit-content;
    color: var(--muted);
    transition: color var(--transition), transform var(--transition);
}

.footer__links a:hover,
.footer__socials a:hover {
    color: var(--blue);
    transform: translateX(3px);
}

.footer__actions {
    margin-top: 18px;
}

.footer .footer__action-btn {
    color: var(--white);
    background: var(--blue);
    box-shadow: none;
}

.footer .footer__action-btn:hover,
.footer .footer__action-btn:focus-visible {
    background: var(--red);
    box-shadow: none;
}

.footer__bottom {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin: 38px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

#top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    width: 48px;
    height: 48px;
    display: none;
    border: 0;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 34px rgba(225, 29, 46, 0.28);
    font-size: 1.2rem;
    font-weight: 900;
    transition: transform var(--transition), background var(--transition);
}

#top-button:hover {
    transform: translateY(-3px);
    background: var(--blue);
}

/* Compatibility helpers kept for existing markup/scripts */
.card__content {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.card__heading {
    color: var(--black);
    font-size: 1.35rem;
}

.card__copy {
    color: var(--muted);
}

.card__tag,
.card__badge,
.badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
}

.card__tag,
.badge {
    color: var(--blue);
    background: var(--blue-050);
}

.card__badge {
    color: var(--red);
    background: var(--red-050);
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
}

.text-gradient {
    color: var(--blue);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.reveal,
.card,
.feature,
.timeline div {
    opacity: 1;
    transform: none;
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.active,
.card.active,
.feature.active,
.timeline div.active {
    opacity: 1;
    transform: none;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--white);
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--surface);
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--surface);
}

*::-webkit-scrollbar-thumb {
    background: var(--blue);
    border: 2px solid var(--surface);
    border-radius: 999px;
}

@media (max-width: 1100px) {
    :root {
        --container: min(100% - 32px, 920px);
    }

    .services__wrapper,
    .feature-grid,
    .portfolio__grid,
    .portfolio-grid,
    .services-grid,
    .stats-grid,
    .timeline,
    .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-catalog {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .service-overview-card,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        grid-template-columns: 1fr;
    }

    .app-card > h2,
    .app-card > p,
    .app-card > .app-card__link,
    .app-card .gallery {
        grid-column: auto;
        grid-row: auto;
    }

    .cta .container {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 74px;
    }

    .portfolio-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portfolio-cta__actions {
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
    }

    .portfolio-cta .btn,
    .portfolio-cta .btn--secondary {
        width: 100%;
    }

    .navbar {
        min-height: var(--header-height);
    }

    .logo img {
        height: 46px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header .btn--primary {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: grid;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 82vh;
        padding-top: calc(var(--header-height) + 42px);
    }

    .hero::after {
        width: 76vw;
        opacity: 0.5;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100% - 24px, 100%);
    }

    body {
        font-size: 15px;
    }

    .hero {
        min-height: 78vh;
        padding-bottom: 56px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.55rem);
    }

    .hero-buttons,
    .form-cta,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .footer__action-btn {
        width: 100%;
    }

    .services__wrapper,
    .feature-grid,
    .portfolio__grid,
    .portfolio-grid,
    .services-grid,
    .stats-grid,
    .timeline,
    .grid,
    .briefing-grid,
    .contact-form form {
        grid-template-columns: 1fr;
    }

    .service-card__title,
    .service-card__copy,
    .feature,
    .timeline-item,
    .about__panel,
    .contact-card {
        padding-inline: 18px;
    }

    .service-card__title {
        padding-top: 18px;
    }

    .service-card__copy {
        padding-bottom: 20px;
    }

    .service-overview-card > img {
        min-height: 220px;
    }

    .services-catalog {
        grid-template-columns: 1fr;
    }

    .service-overview-card__content {
        padding: 20px;
    }

    .service-list a {
        width: 100%;
    }

    .section__title {
        margin-bottom: 26px;
    }

    .title--section,
    .section__heading {
        font-size: clamp(1.85rem, 10vw, 2.55rem);
    }

    .footer {
        padding-top: 44px;
    }

    .footer__bottom {
        text-align: left;
    }

    #top-button {
        right: 14px;
        bottom: 14px;
    }
}

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

.gallery img {
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.clickable-image {
    cursor: pointer;
    transition: opacity 300ms ease;
}

.clickable-image:hover {
    opacity: 0.85;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 39, 0.94);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border: 4px solid rgba(255, 255, 255, 0.12);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(13, 79, 184, 0.85);
}
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(16,24,39,.94);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.lightbox img{
    max-width:95%;
    max-height:95%;
    object-fit:contain;
}

.lightbox.active{
    display:flex;
}

.close{
    position:absolute;
    top:25px;
    right:40px;
    color:#fff;
    font-size:45px;
    cursor:pointer;
}

.gallery-image{
    cursor:pointer;
}

.portfolio-video{
    width:100%;
    border-radius:12px;
    cursor:pointer;
    background: #f5f7fb;
    border: 1px solid var(--line);
}

audio{
    width:100%;
    margin-top:12px;
}