:root {
    --ink: #141b31;
    --muted: #6e7c94;
    --soft: #f4f8fb;
    --white: #ffffff;
    --line: #dfe8f0;
    --blue: #315fe8;
    --teal: #55c3bd;
    --green: #53b56a;
    --dark: #0f172a;
    --shadow: 0 28px 80px rgba(34, 49, 79, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 18%, rgba(49, 95, 232, .10), transparent 28%),
        radial-gradient(circle at 78% 6%, rgba(85, 195, 189, .15), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(83, 181, 106, .10), transparent 26%);
    animation: backgroundDrift 14s ease-in-out infinite alternate;
}

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

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

.site-header {
    position: fixed;
    z-index: 30;
    top: 16px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    padding: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(223, 232, 240, .86);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(34, 49, 79, .08);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
    animation: headerDrop .7s ease both;
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    overflow: hidden;
}

.brand-mark img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.nav-links {
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a,
.login-link {
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.nav-links a:hover,
.login-link:hover {
    transform: translateY(-1px);
}

.nav-links a:hover {
    color: var(--blue);
}

.login-link,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.login-link,
.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    box-shadow: 0 14px 34px rgba(49, 95, 232, .22);
}

.secondary-button {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    min-height: 100vh;
    padding: 132px clamp(18px, 5vw, 72px) 74px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 26%, rgba(49, 95, 232, .14), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(85, 195, 189, .20), transparent 32%),
        linear-gradient(180deg, #ffffff, var(--soft));
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero-copy,
.hero-showcase {
    position: relative;
    z-index: 1;
}

.hero-copy {
    animation: fadeLift .8s ease both;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.two-column h2,
.gallery-layout h2,
.cta-panel h2 {
    margin: 0;
    letter-spacing: 0;
}

.hero h1 {
    font-size: 76px;
    line-height: .96;
}

.hero-copy p:not(.eyebrow) {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

.primary-button:hover {
    box-shadow: 0 18px 40px rgba(49, 95, 232, .30);
}

.hero-ready {
    display: inline-flex;
    margin-top: 18px !important;
    padding: 10px 12px;
    color: #31506f !important;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(223, 232, 240, .92);
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 900;
}

.hero-showcase {
    animation: floatIn 900ms ease both;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 92%;
    margin: 0 auto -1px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.browser-bar span {
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
}

.browser-bar span:nth-child(2) {
    background: #f7c948;
}

.browser-bar span:nth-child(3) {
    background: #51cf66;
}

.browser-bar small {
    margin-left: 14px;
    color: var(--muted);
    font-weight: 700;
}

.hero-showcase > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform .45s ease, box-shadow .45s ease;
}

.hero-showcase:hover > img {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 36px 95px rgba(34, 49, 79, .22);
}

.floating-card {
    position: absolute;
    max-width: 250px;
    padding: 16px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(223, 232, 240, .9);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(34, 49, 79, .12);
    backdrop-filter: blur(16px);
    animation: bob 4.5s ease-in-out infinite;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    margin-bottom: 7px;
    font-size: 18px;
}

.floating-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.card-one {
    left: -22px;
    bottom: 18%;
}

.card-two {
    right: 4%;
    top: 14%;
    animation-delay: .8s;
}

.story-section {
    padding: 0 0 88px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.story-card {
    min-height: 260px;
    padding: 28px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 42px rgba(34, 49, 79, .06);
    transition: transform .26s ease, box-shadow .26s ease, background .26s ease;
}

.story-card:hover,
.story-card.active {
    transform: translateY(-7px);
    background: var(--white);
    box-shadow: 0 24px 62px rgba(34, 49, 79, .12);
}

.story-card span {
    display: inline-flex;
    margin-bottom: 36px;
    padding: 8px 11px;
    color: var(--blue);
    background: #edf4ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.story-card.active span {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.story-card h3 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.08;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.section-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.intro-section,
.module-carousel-section,
.services-section,
.animated-gallery,
.benefits-section,
.impact-section,
.cta-section {
    padding: 88px 0;
}

.section-heading p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.two-column,
.gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(34px, 6vw, 88px);
    align-items: start;
}

.two-column h2,
.section-heading h2,
.gallery-layout h2,
.cta-panel h2 {
    max-width: 820px;
    font-size: 46px;
    line-height: 1.08;
}

.two-column p,
.gallery-layout p,
.cta-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-heading.centered {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading.centered p {
    margin-right: auto;
    margin-left: auto;
}

.impact-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.impact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(49, 95, 232, .05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(85, 195, 189, .06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.impact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.impact-card {
    padding: 24px;
    min-height: 236px;
    background: rgba(248, 251, 253, .88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(34, 49, 79, .08);
    animation: metricPop .8s ease both;
    transition: transform .24s ease, box-shadow .24s ease;
}

.impact-card:nth-child(2) {
    animation-delay: .08s;
}

.impact-card:nth-child(3) {
    animation-delay: .16s;
}

.impact-card:nth-child(4) {
    animation-delay: .24s;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 70px rgba(34, 49, 79, .14);
}

.impact-card span {
    display: block;
    margin-bottom: 22px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.impact-card strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    color: var(--ink);
    animation: numberPulse 2.8s ease-in-out infinite;
}

.impact-card p {
    margin: 16px 0 24px;
    color: var(--muted);
    line-height: 1.55;
}

.round-stat {
    width: 132px;
    height: 132px;
    margin: 0 0 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #ffffff 58%, transparent 60%),
        conic-gradient(var(--blue) var(--value), #e8eef5 0);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(223, 232, 240, .7), 0 18px 38px rgba(49, 95, 232, .10);
    animation: ringDraw 1.2s ease both;
}

.round-stat.teal {
    background:
        radial-gradient(circle at center, #ffffff 58%, transparent 60%),
        conic-gradient(var(--teal) var(--value), #e8eef5 0);
}

.round-stat.green {
    background:
        radial-gradient(circle at center, #ffffff 58%, transparent 60%),
        conic-gradient(var(--green) var(--value), #e8eef5 0);
}

.round-stat strong {
    font-size: 30px;
    animation: none;
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.mini-voter-chart {
    position: relative;
    height: 132px;
    margin-bottom: 18px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(49, 95, 232, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(49, 95, 232, .08) 1px, transparent 1px),
        #ffffff;
    background-size: 42px 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mini-voter-chart::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
    border-radius: 999px;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    animation: chartLine 1.3s ease .25s both;
}

.mini-voter-chart i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 4px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(49, 95, 232, .18);
    transform: translate(-50%, -50%) scale(0);
    animation: chartDot .45s ease both;
}

.mini-voter-chart i:nth-child(2) { animation-delay: .12s; }
.mini-voter-chart i:nth-child(3) { animation-delay: .24s; }
.mini-voter-chart i:nth-child(4) { animation-delay: .36s; }
.mini-voter-chart i:nth-child(5) { animation-delay: .48s; }
.mini-voter-chart i:nth-child(6) { animation-delay: .60s; }
.mini-voter-chart i:nth-child(7) { animation-delay: .72s; }

.chart-card > strong {
    font-size: 32px;
}

.module-carousel-section {
    background: linear-gradient(180deg, var(--soft), #ffffff 52%, var(--soft));
}

.module-carousel-section input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.module-tabs label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.module-tabs label:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34, 49, 79, .08);
}

.module-tabs span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--blue);
    background: #edf4ff;
    border-radius: 8px;
    font-size: 11px;
}

#module-dashboard:checked ~ .module-tabs label[for="module-dashboard"],
#module-metrics:checked ~ .module-tabs label[for="module-metrics"],
#module-campaign:checked ~ .module-tabs label[for="module-campaign"],
#module-chatbot:checked ~ .module-tabs label[for="module-chatbot"],
#module-events:checked ~ .module-tabs label[for="module-events"] {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(49, 95, 232, .18);
}

#module-dashboard:checked ~ .module-tabs label[for="module-dashboard"] span,
#module-metrics:checked ~ .module-tabs label[for="module-metrics"] span,
#module-campaign:checked ~ .module-tabs label[for="module-campaign"] span,
#module-chatbot:checked ~ .module-tabs label[for="module-chatbot"] span,
#module-events:checked ~ .module-tabs label[for="module-events"] span {
    color: var(--ink);
    background: rgba(255, 255, 255, .88);
}

.module-carousel {
    position: relative;
    min-height: 760px;
    padding: 18px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 68px rgba(34, 49, 79, .12);
    overflow: hidden;
}

.module-slide {
    position: absolute;
    inset: 18px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity .36s ease, transform .36s ease;
}

#module-dashboard:checked ~ .module-carousel .slide-dashboard,
#module-metrics:checked ~ .module-carousel .slide-metrics,
#module-campaign:checked ~ .module-carousel .slide-campaign,
#module-chatbot:checked ~ .module-carousel .slide-chatbot,
#module-events:checked ~ .module-carousel .slide-events {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.module-copy {
    padding: 24px;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(34, 49, 79, .06);
}

.module-copy span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 11px;
    color: var(--blue);
    background: #edf4ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.module-copy h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.14;
}

.module-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.module-frame {
    margin: 0;
    padding: 10px;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.module-frame img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    object-position: center;
    background: #f8fbfd;
    border-radius: 6px;
    transition: transform .35s ease;
}

.module-slide:hover .module-frame img {
    transform: scale(1.01);
}

.services-section {
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 25px;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .22s ease, box-shadow .22s ease;
    animation: fadeLift .75s ease both;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: auto 18px 18px 18px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    border-radius: 999px;
    transform: scaleX(.18);
    transform-origin: left center;
    transition: transform .28s ease;
}

.service-card:nth-child(2) {
    animation-delay: .06s;
}

.service-card:nth-child(3) {
    animation-delay: .12s;
}

.service-card:nth-child(4) {
    animation-delay: .18s;
}

.service-card:nth-child(5) {
    animation-delay: .24s;
}

.service-card:nth-child(6) {
    animation-delay: .30s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(34, 49, 79, .10);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 30px;
    color: var(--white);
    background: var(--dark);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.16;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.service-card small {
    display: inline-flex;
    margin-top: 18px;
    padding: 8px 10px;
    color: #31506f;
    background: #edf4ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.animated-gallery {
    overflow: hidden;
}

.gallery-layout {
    align-items: center;
}

.gallery-stack {
    position: relative;
    height: 420px;
}

.gallery-stack img {
    position: absolute;
    width: 84%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    background: #f8fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: stackPulse 7s ease-in-out infinite;
    transition: transform .35s ease, z-index .1s ease;
}

.gallery-stack:hover img {
    animation-play-state: paused;
}

.gallery-stack img:hover {
    z-index: 3;
    transform: translateY(-14px) scale(1.04);
}

.gallery-stack img:nth-child(1) {
    top: 0;
    right: 0;
}

.gallery-stack img:nth-child(2) {
    top: 84px;
    left: 0;
    animation-delay: .8s;
}

.gallery-stack img:nth-child(3) {
    right: 34px;
    bottom: 0;
    animation-delay: 1.6s;
}

.benefit-list {
    display: grid;
    gap: 12px;
}

.benefit-list div {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.benefit-list div:hover {
    transform: translateX(8px);
    border-color: rgba(49, 95, 232, .35);
    box-shadow: 0 16px 38px rgba(34, 49, 79, .08);
}

.benefit-list strong,
.benefit-list span {
    display: block;
}

.benefit-list strong {
    margin-bottom: 7px;
    font-size: 18px;
}

.benefit-list span {
    color: var(--muted);
    line-height: 1.55;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: fadeLift .8s ease both;
}

.cta-panel p {
    max-width: 760px;
    margin: 20px 0 30px;
    color: var(--muted);
}

.cta-photo {
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(20, 27, 49, .10), rgba(20, 27, 49, .32)),
        url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=900&q=80") center / cover;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.cta-photo::after {
    content: "Equipo, territorio y datos hablando el mismo idioma";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px;
    color: var(--white);
    background: rgba(15, 23, 42, .70);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.35;
    backdrop-filter: blur(12px);
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 72px);
    color: var(--muted);
    background: var(--white);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

@keyframes heroGlow {
    from {
        filter: hue-rotate(0deg) saturate(1);
    }
    to {
        filter: hue-rotate(8deg) saturate(1.12);
    }
}

@keyframes backgroundDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(0, -18px, 0) scale(1.04);
    }
}

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

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes stackPulse {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(.35deg);
    }
}

@keyframes metricPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ringDraw {
    from {
        clip-path: circle(0 at center);
        opacity: 0;
    }
    to {
        clip-path: circle(75% at center);
        opacity: 1;
    }
}

@keyframes chartLine {
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes chartDot {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 1040px) {
    .nav-links {
        display: none;
    }

    .hero,
    .two-column,
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 118px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .two-column h2,
    .section-heading h2,
    .gallery-layout h2,
    .cta-panel h2 {
        font-size: 38px;
    }

    .module-slide {
        grid-template-columns: 1fr;
    }

    .module-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .module-carousel {
        min-height: 930px;
    }

    .module-frame img {
        max-height: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid,
    .cta-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .brand span:last-child {
        display: none;
    }

    .login-link {
        min-height: 40px;
        padding: 0 13px;
        font-size: 14px;
    }

    .hero {
        padding: 108px 16px 54px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .two-column h2,
    .section-heading h2,
    .gallery-layout h2,
    .cta-panel h2 {
        font-size: 30px;
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .floating-card {
        position: static;
        max-width: none;
        margin-top: 10px;
    }

    .section-inner,
    .cta-panel {
        width: calc(100% - 28px);
    }

    .intro-section,
    .module-carousel-section,
    .services-section,
    .animated-gallery,
    .benefits-section,
    .story-section,
    .impact-section,
    .cta-section {
        padding: 62px 0;
    }

    .module-tabs {
        grid-template-columns: 1fr;
    }

    .module-carousel {
        min-height: 690px;
        padding: 12px;
    }

    .module-slide {
        inset: 12px;
        gap: 12px;
    }

    .module-copy {
        padding: 18px;
    }

    .module-copy h3 {
        font-size: 24px;
    }

    .module-frame {
        padding: 6px;
    }

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

    .impact-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .impact-card strong {
        font-size: 36px;
    }

    .cta-photo {
        min-height: 280px;
    }

    .gallery-stack {
        height: 330px;
    }

    .gallery-stack img {
        width: 92%;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 16px;
    }
}
