:root {
    --ink-950: #111827;
    --ink-900: #162033;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-200: #dbe4ee;
    --paper: #f7f9fc;
    --white: #ffffff;
    --accent: #cf3f36;
    --accent-dark: #9f2018;
    --gold: #d7b36a;
    --line: rgba(17, 24, 39, 0.1);
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 40px 100px rgba(15, 23, 42, 0.16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(215, 179, 106, 0.24), transparent 30%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
    overflow-x: hidden;
}

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

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

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

main {
    overflow: hidden;
}

.page-view {
    display: none;
}

.page-view[hidden] {
    display: none !important;
}

.page-view.is-active {
    display: block;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-shell,
.header-bar,
.hero-grid,
.split-panel,
.card-grid,
.case-grid,
.timeline-grid,
.testimonial-grid,
.outcome-grid,
.faq-list,
.detail-grid,
.contact-layout,
.about-grid,
.leader-panel,
.project-toolbar,
.footer-grid,
.footer-base,
.cta-banner,
.case-study,
.form-grid {
    min-width: 0;
}

.header-bar > *,
.hero-grid > *,
.split-panel > *,
.card-grid > *,
.case-grid > *,
.timeline-grid > *,
.testimonial-grid > *,
.outcome-grid > *,
.faq-list > *,
.detail-grid > *,
.contact-layout > *,
.about-grid > *,
.leader-panel > *,
.project-toolbar > *,
.footer-grid > *,
.footer-base > *,
.case-study > *,
.form-grid > * {
    min-width: 0;
}

.narrow {
    width: min(840px, 100%);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(247, 249, 252, 0.88);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    overflow: visible;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 420px;
    flex: 0 1 auto;
    position: relative;
    z-index: 2;
}

.brand img {
    width: auto;
    min-width: 96px;
    max-width: 120px;
    height: 76px;
    margin-block: -14px;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.brand strong,
.site-nav a,
h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.brand-name {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-left: -0.35rem;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

.brand-word {
    font-size: 1.3rem;
    letter-spacing: -0.04em;
}

.brand-word-primary {
    color: var(--accent);
}

.brand-word-secondary {
    color: #8e98a6;
}

.header-search {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    max-width: 320px;
    margin-left: 0.075rem;
    transition: width 0.25s ease;
}

.header-search.is-open {
    width: min(320px, 100%);
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-900);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
    color: var(--accent-dark);
}

.site-search-input {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    min-height: 44px;
    padding: 0.68rem 0.92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.header-search.is-open .site-search-input {
    opacity: 1;
    pointer-events: auto;
}

.header-search.is-open .search-toggle {
    opacity: 0;
    pointer-events: none;
}

.site-search-results {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow);
    max-height: min(70vh, 32rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.site-search-caption,
.site-search-empty {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.88rem;
}

.site-search-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.site-search-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.035);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-search-item:hover {
    background: rgba(207, 63, 54, 0.08);
    transform: translateY(-1px);
}

.site-search-type {
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-search-item strong {
    font-size: 0.96rem;
}

.site-search-item span:last-child {
    color: var(--ink-500);
    font-size: 0.86rem;
    line-height: 1.5;
}

h1,
h2,
h3,
p,
span,
a,
button,
label,
li,
strong,
blockquote {
    overflow-wrap: anywhere;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
}

.site-nav a {
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 700;
}

.site-nav a.active {
    color: var(--accent-dark);
}

.site-nav .nav-cta {
    padding: 0.78rem 1.1rem;
    font-size: 0.88rem;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: var(--ink-900);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 18px 36px rgba(159, 32, 24, 0.28);
}

.button-secondary {
    border-color: rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.button-accent-outline {
    color: var(--accent-dark);
    border-color: rgba(200, 63, 52, 0.6);
    background: transparent;
    box-shadow: none;
}

.button-accent-outline:hover {
    background: rgba(200, 63, 52, 0.08);
}

.hero-section,
.page-hero {
    padding: 5.6rem 0 3.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.45rem, 4.5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-lead,
.page-lead {
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--ink-700);
    max-width: 62ch;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.15rem 0 1.15rem;
}

.hero-actions .button {
    border-radius: 10px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.hero-metrics article,
.timeline-card,
.service-card,
.testimonial-card,
.case-card,
.contact-form-panel,
.contact-panel,
.faq-item,
.case-study,
.cta-banner,
.leader-panel,
.about-image-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.hero-metrics article {
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.hero-metrics strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.hero-metrics span {
    color: var(--ink-500);
    font-size: 0.92rem;
}

.hero-card {
    position: relative;
}

.hero-card img {
    min-height: 520px;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.hero-card-panel {
    position: absolute;
    right: 1.2rem;
    bottom: calc(1.2rem + 0.75rem);
    width: min(100%, calc(340px + 0.56rem));
    max-width: calc(340px + 0.56rem);
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.88);
    color: var(--white);
}

.hero-card-panel strong {
    display: block;
    margin-top: 0.45rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-card-panel span,
.service-category {
    display: inline-block;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section {
    padding: 3.6rem 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(244, 247, 251, 0.85));
}

.split-panel,
.leader-panel,
.contact-layout,
.about-grid {
    display: grid;
    gap: 2rem;
}

.split-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.section-heading {
    margin-bottom: 1.8rem;
}

#services > .section:first-child .section-heading,
#solutions > .section:first-child .section-heading,
#projects > .section:first-child .section-heading,
#about > .section:first-child .section-heading,
#contact > .section:first-child .section-heading {
    text-align: center;
    max-width: 56rem;
    margin-inline: auto;
}

#services > .section:first-child .section-heading p,
#solutions > .section:first-child .section-heading p,
#projects > .section:first-child .section-heading p,
#about > .section:first-child .section-heading p,
#contact > .section:first-child .section-heading p {
    margin-inline: auto;
}

.section-heading h2,
.split-panel h2,
.cta-banner h2,
.leader-panel h2,
.about-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.card-grid,
.case-grid,
.testimonial-grid,
.timeline-grid,
.outcome-grid,
.faq-list {
    display: grid;
    gap: 1.4rem;
}

.card-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    overflow: visible;
}

.timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid,
.faq-list,
.outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.timeline-card,
.case-card,
.testimonial-card,
.faq-item,
.contact-form-panel,
.contact-panel,
.cta-banner,
.case-study,
.leader-panel,
.about-image-panel {
    border-radius: var(--radius-lg);
}

.service-card,
.timeline-card,
.testimonial-card,
.faq-item {
    padding: 1.35rem;
}

.service-card {
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card.service-card-open {
    z-index: 20;
    transform: translateY(-2px);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
}

.service-card-large {
    padding: 1.8rem;
}

.service-card h2,
.service-card h3,
.timeline-card h3,
.case-card h3,
.testimonial-card strong,
.faq-item h3 {
    margin: 0.6rem 0 0.8rem;
}

.service-card p,
.timeline-card p,
.case-card p,
.testimonial-card p,
.faq-item p,
.split-panel p,
.contact-panel p,
.case-study-body p,
.about-copy p,
.leader-panel blockquote {
    color: var(--ink-700);
    line-height: 1.75;
    text-wrap: pretty;
}

.service-card ul,
.footer-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.service-card li,
.footer-list li,
.contact-list article {
    margin-bottom: 0.75rem;
}

.service-card-large > p {
    margin-bottom: 0;
}

.service-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    background: rgba(207, 63, 54, 0.1);
    font-size: 1.2rem;
}

.timeline-card span {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 800;
}

.case-card,
.case-study,
.leader-panel,
.contact-form-panel,
.contact-panel,
.cta-banner {
    overflow: hidden;
}

.case-media img,
.about-image-panel img,
.leader-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-media {
    min-height: 240px;
}

.case-media.wide {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(215, 179, 106, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
}

.case-body,
.case-study-body {
    padding: 1.5rem;
}

.case-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    aspect-ratio: 1 / 1;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.case-logo-frame.small {
    width: min(100%, 150px);
    border-radius: 20px;
}

.case-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.pill-row span {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.rating {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.4rem 0;
}

.testimonial-carousel::before,
.testimonial-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4.5rem;
    z-index: 2;
    pointer-events: none;
}

.testimonial-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(251, 252, 254, 1), rgba(251, 252, 254, 0));
}

.testimonial-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(251, 252, 254, 1), rgba(251, 252, 254, 0));
}

.testimonial-track {
    display: flex;
    width: max-content;
    gap: 1.4rem;
    animation: testimonial-loop 30s linear infinite;
}

.testimonial-carousel:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-card-carousel {
    flex: 0 0 min(360px, calc(100vw - 4rem));
}

@keyframes testimonial-loop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.7rem));
    }
}

.stack-list {
    display: grid;
    gap: 1.6rem;
}

.project-toolbar {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 360px);
    gap: 2rem;
    align-items: end;
}

.project-toolbar h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.project-toolbar-copy,
.project-search-status {
    color: var(--ink-500);
}

.project-search-wrap {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.project-search-label {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.92rem;
}

.project-search {
    min-height: 54px;
}

.case-study {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.1rem;
}

.detail-grid h3 {
    margin-bottom: 0.45rem;
}

.project-feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-700);
}

.project-feature-list li + li {
    margin-top: 0.45rem;
}

.project-dropdown,
.service-dropdown {
    margin-top: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(244, 247, 251, 0.82);
    overflow: visible;
    position: relative;
}

.project-dropdown summary,
.service-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--ink-900);
}

.project-dropdown summary span:first-child,
.service-dropdown summary span:first-child {
    min-width: 0;
}

.project-dropdown summary::-webkit-details-marker,
.service-dropdown summary::-webkit-details-marker {
    display: none;
}

.project-dropdown-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.project-dropdown-icon::before,
.project-dropdown-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-dropdown-icon::after {
    transform: rotate(90deg);
}

.project-dropdown[open] .project-dropdown-icon::after {
    opacity: 0;
    transform: rotate(90deg) scaleX(0.2);
}

.project-dropdown .detail-grid,
.service-dropdown-body {
    padding: 0 1.15rem 1.15rem;
    margin-top: 0;
}

.service-dropdown summary {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    background: rgba(244, 247, 251, 0.92);
    transition: border-radius 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.service-dropdown[open] summary {
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-dropdown .service-dropdown-body {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 0.2rem);
    z-index: 3;
    padding: 0.15rem 1.15rem 1.15rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 44px rgba(15, 23, 42, 0.14);
}

.service-dropdown[open] .service-dropdown-body {
    display: block;
}

.service-dropdown-body > p {
    margin-top: 0;
}

.service-dropdown-body ul {
    margin-bottom: 0;
}

.project-empty-state {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.about-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
}

.about-image-panel img {
    min-height: 460px;
}

.value-stack {
    display: grid;
    gap: 1rem;
}

.value-stack article {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.leader-panel {
    grid-template-columns: 0.82fr 1.18fr;
}

.leader-panel img {
    min-height: 420px;
}

.leader-panel > div {
    padding: 2rem;
}

.leader-panel blockquote {
    margin: 1.2rem 0 0;
    padding-left: 1rem;
    border-left: 4px solid rgba(207, 63, 54, 0.24);
    font-size: 1.05rem;
}

.contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.contact-panel,
.contact-form-panel {
    padding: 1.55rem;
}

.contact-highlight {
    margin-bottom: 1.35rem;
    padding: 1.25rem;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(207, 63, 54, 0.1), rgba(159, 32, 24, 0.06)),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(207, 63, 54, 0.14);
}

.contact-highlight h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.08;
}

.contact-highlight p {
    margin-top: 0;
}

.contact-highlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.logo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top, rgba(215, 179, 106, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-list strong {
    display: block;
    margin-bottom: 0.3rem;
}

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

label {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--ink-700);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--ink-900);
}

button,
input,
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
}

.meta-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    color: var(--ink-500);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
}

.cta-banner .button {
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: fit-content;
}

.form-response {
    min-height: 1.4rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-response.is-success {
    color: #0f766e;
}

.form-response.is-error {
    color: #b91c1c;
}

.form-response.is-pending {
    color: var(--ink-500);
}

.site-footer {
    padding: 4rem 0 2rem;
    background: var(--ink-950);
    color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
    color: var(--white);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: var(--white);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
    filter: saturate(1.08);
}

.social-link i {
    font-size: 1.22rem;
    line-height: 1;
}

.social-facebook {
    background: #1877f2;
}

.social-whatsapp {
    background: #25d366;
}

.social-linkedin {
    background: #0a66c2;
}

.social-instagram {
    background: linear-gradient(135deg, #f58529 0%, #feda77 22%, #dd2a7b 52%, #8134af 78%, #515bd4 100%);
}

.footer-newsletter {
    margin-top: 1rem;
}

.footer-newsletter-row {
    position: relative;
    min-height: 60px;
    padding: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.footer-newsletter-row:focus-within {
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.03),
        0 0 0 3px rgba(207, 63, 54, 0.16);
}

.footer-newsletter-row input {
    min-height: 52px;
    padding: 0 8.6rem 0 1rem;
    border-radius: 18px;
    border: 0;
    background: transparent;
}

.footer-newsletter-row input:focus {
    outline: none;
}

.footer-newsletter-row .button {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    min-height: 52px;
    padding: 0.82rem 1.15rem;
    border-radius: 18px;
    box-shadow: none;
}

.footer-newsletter-row .button:hover {
    transform: translateY(calc(-50% - 1px));
}

.footer-newsletter-response {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-newsletter-response.is-success {
    color: #86efac;
}

.footer-newsletter-response.is-error {
    color: #fca5a5;
}

.footer-newsletter-response.is-pending {
    color: rgba(255, 255, 255, 0.72);
}

.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
}

.footer-base p {
    margin: 0;
}

.footer-base p:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(0.78rem, 2.2vw, 0.94rem);
}

@media (max-width: 1080px) {
    .header-bar {
        align-items: center;
        flex-wrap: wrap;
    }

    .header-search {
        margin-left: auto;
        min-width: 0;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-grid,
    .split-panel,
    .contact-layout,
    .about-grid,
    .leader-panel,
    .case-study {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .testimonial-grid,
    .timeline-grid,
    .case-grid,
    .faq-list,
    .outcome-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-toolbar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-card img,
    .leader-panel img,
    .about-image-panel img {
        min-height: 360px;
    }

    .hero-card-panel {
        width: min(100%, calc(360px + 0.56rem));
        max-width: calc(360px + 0.56rem);
    }
}

@media (min-width: 781px) {
    .header-bar {
        flex-wrap: nowrap;
    }

    .header-search {
        width: min(280px, 24vw);
        max-width: 280px;
        min-width: 220px;
        margin-left: auto;
    }

    .header-search.is-open,
    .header-search.is-open-desktop {
        width: min(280px, 24vw);
    }

    .search-toggle {
        display: none;
    }

    .site-search-input {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        width: 100%;
    }

    .site-nav {
        margin-left: 0.25rem;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(100% - 1.25rem, 1180px);
    }

    .brand {
        max-width: min(58vw, 226px);
        gap: 0.55rem;
    }

    .brand-name {
        display: flex;
        gap: 0.24rem;
    }

    .brand-word {
        font-size: 1.16rem;
    }

    .header-bar {
        gap: 0.6rem;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 40px;
        height: 40px;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.95rem;
        padding: 1.1rem;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 5.5rem);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.open {
        display: flex;
    }

    .header-search {
        width: 46px;
        max-width: calc(100vw - 7rem);
    }

    .header-search.is-open {
        width: min(calc(100vw - 6.5rem), 260px);
    }

    .search-toggle,
    .site-search-input {
        width: 46px;
        min-height: 46px;
        height: 46px;
    }

    .header-search.is-open .site-search-input {
        width: 100%;
    }

    .site-nav a {
        font-size: 0.9rem;
        padding: 0.2rem 0;
        line-height: 1.45;
    }

    .site-nav .nav-cta {
        margin-top: 0.3rem;
        padding: 0.95rem 1.15rem;
    }

    .site-search-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.95rem;
    }

    .site-search-results {
        padding: 0.8rem;
        border-radius: 18px;
        max-height: min(65vh, 24rem);
    }

    .hero-section,
    .page-hero {
        padding-top: 4.8rem;
        padding-bottom: 3.2rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-copy {
        display: grid;
        gap: 1rem;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
        line-height: 1.05;
    }

    .hero-lead,
    .page-lead {
        font-size: 1.05rem;
        line-height: 1.72;
    }

    .eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.13em;
    }

    .card-grid,
    .testimonial-grid,
    .timeline-grid,
    .case-grid,
    .faq-list,
    .outcome-grid,
    .footer-grid,
    .detail-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner,
    .footer-base,
    .contact-highlight-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        align-items: stretch;
        margin: 1.25rem 0 1.2rem;
    }

    .hero-actions .button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 0.88rem 0.7rem;
        font-size: 0.88rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        align-items: stretch;
        margin-top: 1.4rem;
    }

    .hero-metrics article {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.15rem 0.95rem;
        min-height: auto;
        height: auto;
        border-radius: var(--radius-md);
    }

    /* Stats cards sit in straight rows on mobile */

    .hero-metrics strong {
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 0.4rem;
    }

    .hero-metrics span {
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .hero-metrics article,
    .service-card,
    .timeline-card,
    .testimonial-card,
    .faq-item,
    .panel-card,
    .case-study,
    .contact-panel,
    .contact-form-panel,
    .cta-banner {
        border-radius: 20px;
    }

    .service-card,
    .timeline-card,
    .testimonial-card,
    .faq-item,
    .contact-panel,
    .contact-form-panel {
        padding: 1.15rem;
    }

    .case-study {
        gap: 0;
    }

    .case-study-body,
    .case-body {
        padding: 1.2rem;
    }

    .case-logo-frame {
        width: min(100%, 150px);
        padding: 0.9rem;
    }

    .project-toolbar h2,
    .section-heading h2,
    .split-panel h2,
    .cta-banner h2,
    .leader-panel h2,
    .about-copy h2 {
        font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    }

    .project-toolbar-copy,
    .project-search-status,
    .project-search-label,
    .service-card p,
    .timeline-card p,
    .case-card p,
    .testimonial-card p,
    .faq-item p,
    .split-panel p,
    .contact-panel p,
    .case-study-body p,
    .about-copy p,
    .leader-panel blockquote {
        font-size: 1rem;
        line-height: 1.72;
    }

    .button {
        padding: 0.88rem 1.15rem;
        font-size: 0.9rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .case-media.wide {
        min-height: auto;
    }

    .hero-card-panel {
        bottom: 1.2rem;
        left: 1.2rem;
        right: 1.2rem;
        width: auto;
        max-width: none;
    }

    .service-card.service-card-open {
        transform: none;
    }

    .service-dropdown {
        overflow: hidden;
    }

    .service-dropdown summary,
    .service-dropdown[open] summary {
        border-radius: 20px;
        box-shadow: none;
    }

    .service-dropdown .service-dropdown-body {
        position: static;
        display: none;
        padding: 0 1.15rem 1.15rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .service-dropdown[open] .service-dropdown-body {
        display: block;
    }

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 1.5rem;
    }

    .testimonial-card-carousel {
        flex-basis: min(300px, calc(100vw - 3rem));
    }

    .footer-socials {
        gap: 0.75rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .footer-newsletter-row {
        position: relative;
        min-height: 58px;
    }

    .footer-newsletter-row .button {
        width: auto;
        min-height: 48px;
        padding: 0.78rem 1rem;
        font-size: 0.88rem;
    }

    /* Mobile alignment: center only what benefits from it */
    .hero-copy,
    .section-heading,
    .cta-banner,
    .site-footer,
    .footer-grid > div:first-child,
    .footer-base {
        text-align: center;
    }

    .hero-metrics article,
    .hero-card-panel,
    .testimonial-card strong,
    .contact-list article,
    .footer-list li,
    .footer-list a {
        text-align: center;
    }

    .hero-lead,
    .page-lead,
    .section-heading p {
        margin-inline: auto;
    }

    .hero-actions,
    .pill-row,
    .contact-highlight-actions,
    .footer-socials,
    .contact-list,
    .meta-row {
        justify-content: center;
    }

    .contact-list,
    .footer-list {
        justify-items: center;
    }

    /* Keep readable left alignment for body text on mobile */
    .service-card p,
    .timeline-card p,
    .case-study-body p,
    .faq-item p,
    .about-copy p,
    .leader-panel blockquote,
    .contact-panel p,
    .split-panel p {
        text-align: left;
    }

    .faq-item h3 {
        text-align: left;
    }

    .form-grid label,
    .contact-form-panel label {
        text-align: left;
    }

    .leader-panel blockquote {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .header-bar {
        padding: 0.72rem 0;
    }

    .brand img {
        width: auto;
        min-width: 78px;
        max-width: 96px;
        height: 62px;
        margin-block: -10px;
    }

    .brand {
        max-width: min(56vw, 198px);
    }

    .brand-word {
        font-size: 1.08rem;
    }

    .site-nav {
        gap: 0.8rem;
        padding: 1rem;
    }

    .hero-section,
    .page-hero,
    .section {
        padding-top: 4.2rem;
        padding-bottom: 2.8rem;
    }

    .hero-grid {
        gap: 1.6rem;
    }

    .hero-copy {
        gap: 0.9rem;
    }

    .hero-actions .button {
        min-height: 48px;
        padding: 0.82rem 0.55rem;
        font-size: 0.82rem;
    }

    .hero-metrics article {
        min-height: auto;
        height: auto;
        padding: 1rem 0.75rem;
    }

    /* Stats cards sit in straight rows on mobile */

    .hero-metrics strong {
        font-size: 1.2rem;
    }

    .hero-metrics span {
        font-size: 0.78rem;
    }

    .service-card,
    .timeline-card,
    .testimonial-card,
    .faq-item,
    .contact-panel,
    .contact-form-panel,
    .case-study-body,
    .case-body,
    .project-search-wrap {
        padding: 1.25rem;
    }

    .project-dropdown summary,
    .service-dropdown summary {
        padding: 0.9rem 1rem;
        font-size: 0.94rem;
        line-height: 1.35;
    }

    .project-dropdown-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .project-dropdown-icon::before,
    .project-dropdown-icon::after {
        width: 16px;
    }

    .project-dropdown .detail-grid,
    .service-dropdown-body {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .case-logo-frame {
        width: min(100%, 132px);
    }

    .pill-row {
        gap: 0.5rem;
    }

    .pill-row span {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    .contact-highlight {
        padding: 1rem;
    }

    .contact-highlight h2 {
        font-size: 1.4rem;
    }

    .contact-highlight-actions .button,
    .cta-banner .button {
        width: 100%;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-base {
        gap: 0.7rem;
        padding-top: 1.4rem;
        margin-top: 1.5rem;
    }

    .footer-base p:last-child {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 1rem, 1180px);
    }

    .brand {
        max-width: calc(100vw - 8rem);
        gap: 0.45rem;
    }

    .brand-name {
        gap: 0.18rem;
    }

    .brand-word {
        font-size: 0.98rem;
    }

    .site-nav {
        left: 0.75rem;
        right: 0.75rem;
        gap: 0.72rem;
        padding: 0.95rem;
        border-radius: 18px;
    }

    .site-nav a {
        font-size: 0.88rem;
    }

    .search-toggle,
    .site-search-input,
    .nav-toggle {
        width: 42px;
        min-height: 42px;
        height: 42px;
    }

    .header-search {
        width: 42px;
        max-width: calc(100vw - 8rem);
    }

    .header-search.is-open {
        width: min(calc(100vw - 7.5rem), 220px);
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.4rem);
    }

    .hero-lead,
    .page-lead,
    .project-toolbar-copy,
    .project-search-status,
    .service-card p,
    .timeline-card p,
    .case-card p,
    .testimonial-card p,
    .faq-item p,
    .split-panel p,
    .contact-panel p,
    .case-study-body p,
    .about-copy p,
    .leader-panel blockquote {
        font-size: 0.92rem;
    }

    .site-footer p,
    .footer-list li,
    .footer-list a,
    .footer-newsletter-response,
    .footer-newsletter-row input,
    .footer-newsletter-row .button,
    .footer-base p {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .hero-actions {
        gap: 0.62rem;
    }

    .hero-actions .button {
        font-size: 0.82rem;
        letter-spacing: 0;
        min-height: 48px;
        padding: 0.8rem 0.5rem;
    }

    .hero-metrics {
        gap: 0.65rem;
    }

    .hero-metrics article {
        min-height: auto;
        height: auto;
        padding: 0.9rem 0.6rem;
    }

    /* Stats cards sit in straight rows on mobile */

    .hero-metrics strong {
        font-size: 1.1rem;
    }

    .hero-metrics span {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .hero-card-panel {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.9rem;
        padding: 1rem;
    }

    .hero-card-panel strong {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .project-toolbar,
    .stack-list {
        gap: 1.2rem;
    }

    .project-search-wrap,
    .contact-highlight,
    .service-card,
    .timeline-card,
    .testimonial-card,
    .faq-item,
    .contact-panel,
    .contact-form-panel,
    .case-study-body,
    .case-body {
        padding: 1.1rem;
    }

    .project-dropdown summary,
    .service-dropdown summary {
        padding: 0.86rem 0.95rem;
        font-size: 0.9rem;
    }

    .project-dropdown .detail-grid,
    .service-dropdown-body {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .meta-row {
        gap: 0.45rem;
        font-size: 0.88rem;
    }

    .footer-socials {
        gap: 0.6rem;
    }

    .social-link {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .social-link i {
        font-size: 1.05rem;
    }

    .footer-newsletter-row {
        min-height: 56px;
        border-radius: 16px;
    }

    .footer-newsletter-row input {
        min-height: 48px;
        padding: 0 7rem 0 0.9rem;
        border-radius: 16px;
        font-size: 0.92rem;
    }

    .footer-newsletter-row .button {
        right: 0.3rem;
        min-height: 46px;
        padding: 0.72rem 0.9rem;
        border-radius: 16px;
        font-size: 0.8rem;
    }

    .footer-base p:last-child {
        letter-spacing: -0.01em;
    }
}

@media (max-width: 360px) {
    .brand {
        max-width: calc(100vw - 7.4rem);
    }

    .brand-word {
        font-size: 0.88rem;
    }

    .header-search {
        max-width: calc(100vw - 7.4rem);
    }

    .header-search.is-open {
        width: min(calc(100vw - 6.9rem), 200px);
    }

    .hero-actions .button {
        font-size: 0.74rem;
        padding: 0.72rem 0.35rem;
    }

    .hero-metrics article {
        min-height: auto;
        height: auto;
        padding: 0.8rem 0.5rem;
    }

    .hero-metrics strong {
        font-size: 1rem;
    }

    .hero-metrics span {
        font-size: 0.68rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer-newsletter-row input {
        padding-right: 6.5rem;
    }

    .footer-newsletter-row .button {
        padding: 0.68rem 0.78rem;
    }
}

/* ── Skip-to-content link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 0.5rem;
}

/* ── Focus-visible states ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-search-input:focus-visible,
.project-search:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(207, 63, 54, 0.15);
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Form validation ── */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(207, 63, 54, 0.12);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ── Outcome grid cards ── */
.outcome-grid > article {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.outcome-grid > article .service-icon {
    margin-bottom: 0.75rem;
}

/* ── Card hover effects ── */
.service-card,
.timeline-card,
.case-study,
.outcome-grid > article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.timeline-card:hover,
.outcome-grid > article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.case-study:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.case-media img,
.case-logo-frame img {
    transition: transform 0.4s ease;
}

.case-study:hover .case-logo-frame img {
    transform: scale(1.05);
}

/* ── Button interactions ── */
.button:active {
    transform: scale(0.97) translateY(0);
}

.button-primary:hover {
    box-shadow: 0 22px 44px rgba(159, 32, 24, 0.35);
}

/* ── Nav backdrop ── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(17, 24, 39, 0.35);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

body.nav-open {
    overflow: hidden;
}

/* ── Hamburger animation ── */
.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle span {
    transition: transform 0.25s ease;
}

/* ── Mobile nav drawer animation ── */
@media (max-width: 780px) {
    .site-nav.open {
        animation: navSlideIn 0.2s ease;
    }
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Entrance animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Category pills ── */
.category-pills span {
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    cursor: default;
    user-select: none;
}

.category-pills span[role="button"] {
    cursor: pointer;
}

.category-pills span[role="button"]:hover {
    background: var(--ink-900);
    color: var(--white);
    transform: translateY(-1px);
}

.category-pills span.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

/* ── FAQ accordion ── */
.faq-item h3 {
    position: relative;
    padding-right: 1.5rem;
    transition: color 0.2s ease;
}

.faq-item h3:hover {
    color: var(--accent-dark);
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.faq-item h3[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

/* ── Social link hover colors ── */
.social-link {
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.social-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.social-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

/* ── Loading spinner on buttons ── */
.button .fa-circle-notch {
    margin-right: 0.4rem;
}

button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* ── Form response states ── */
.form-response.is-success,
.footer-newsletter-response.is-success {
    color: #0f766e;
    font-weight: 600;
}

.form-response.is-error,
.footer-newsletter-response.is-error {
    color: var(--accent-dark);
    font-weight: 600;
}

/* ── Testimonial carousel edge fades ── */
.testimonial-carousel::before,
.testimonial-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 2;
    pointer-events: none;
}

.testimonial-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--paper) 0%, transparent 100%);
}

.testimonial-carousel::after {
    right: 0;
    background: linear-gradient(-90deg, var(--paper) 0%, transparent 100%);
}

/* ── Smooth scroll anchor offset ── */
html {
    scroll-padding-top: calc(var(--space-xl) + 1rem);
}

/* ── Print styles ── */
@media print {
    .site-header,
    .site-footer .footer-newsletter,
    .site-footer .footer-socials,
    .nav-toggle,
    .search-toggle,
    .header-search,
    .cta-banner .button,
    .contact-highlight-actions {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .service-card,
    .timeline-card,
    .case-study,
    .faq-item {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .hero-section,
    .page-hero,
    .section {
        padding: 1.5rem 0 !important;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: var(--ink-500);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-backdrop,
    .site-nav,
    .nav-toggle span,
    .service-card,
    .timeline-card,
    .case-study,
    .button,
    .social-link {
        transition: none !important;
        animation: none !important;
    }
}
