/* Site-wide live background */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--color-black);
}

.site-bg__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.site-bg__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(5, 5, 5, 0.65) 100%);
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero__content {
    width: 100%;
    padding-top: var(--nav-height);
}

.hero__inner {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 1.5rem 2.5rem;
    align-items: center;
    min-height: auto;
    padding-block: 1.75rem 0.5rem;
}

.hero__text {
    max-width: 580px;
}

.hero__line {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fade-up 0.8s ease forwards;
    opacity: 0;
}

.hero__line--accent {
    width: 28px;
    flex-shrink: 0;
}

.hero__company {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    margin: 0;
}

.hero__headline-wrap {
    margin-bottom: 1rem;
    animation: fade-up 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero__line--bottom {
    width: min(260px, 72%);
    margin-top: 0.75rem;
}

.hero__title {
    font-size: clamp(1.5rem, 2.35vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    max-width: 15em;
    text-wrap: balance;
    margin-bottom: 0;
    color: var(--color-gray-200);
}

.hero__title-accent {
    color: var(--color-white);
}

.hero__description {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.7;
    color: var(--color-gray-500);
    margin-bottom: 1.25rem;
    max-width: 34em;
    animation: fade-up 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero__cta {
    animation: fade-up 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    animation: fade-up 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero__actions .btn--compact {
    padding: 0.8125rem 1.625rem;
    font-size: 0.8125rem;
    gap: 0.5rem;
}

.hero__actions .btn--compact .btn__icon {
    width: 16px;
    height: 16px;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    max-height: 720px;
}

.hero__visual-img {
    width: 100%;
    max-width: none;
    max-height: 680px;
    height: auto;
    object-fit: contain;
    animation: fade-in 1.2s ease 0.4s forwards;
    opacity: 0;
}

.hero__network {
    display: none;
}

.hero__node {
    position: absolute;
    width: var(--size, 8px);
    height: var(--size, 8px);
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
    animation: node-float var(--node-duration, 6s) ease-in-out infinite;
    animation-delay: var(--node-delay, 0s);
}

.hero__ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
    animation: ring-expand 6s ease-in-out infinite;
}

.hero__ring--1 { width: 180px; height: 180px; }
.hero__ring--2 { width: 280px; height: 280px; animation-delay: -2s; }
.hero__ring--3 { width: 380px; height: 380px; animation-delay: -4s; }

/* About Section */
.about-stats {
    position: relative;
    z-index: 1;
    padding-block: 1.25rem;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section.about {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section.services {
    padding-top: 2.5rem;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
    align-items: center;
}

.about__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.about__visual-frame {
    position: relative;
    width: 100%;
    padding: 0;
}

.about__content .prose,
.about__prose--desktop {
    margin-bottom: 2rem;
}

.content-accordions--mobile {
    display: none;
}

.content-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-accordion:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.content-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9375rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
}

.content-accordion summary::-webkit-details-marker {
    display: none;
}

.content-accordion summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-gray-400);
    line-height: 1;
}

.content-accordion[open] summary::after {
    content: '−';
}

.content-accordion p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--color-gray-400);
}

.about__company {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

.about__features {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
}

.about__feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.about__feature:last-child {
    border-right: none;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    filter: invert(1);
    opacity: 0.85;
}

.about__feature-body {
    min-width: 0;
}

.about__feature-value {
    display: block;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.125rem;
    font-variant-numeric: tabular-nums;
    transition: text-shadow var(--transition-base);
}

.about__feature-value.is-counted {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.about__feature-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-gray-400);
    letter-spacing: 0;
    text-transform: none;
}

.about__visual-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* Services Section */
.services__intro {
    max-width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.services__intro p,
.services-intro-reveal__panel .prose {
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.9;
    color: var(--color-gray-400);
    margin-bottom: 0;
}

.services__company {
    font-weight: 700;
    color: var(--color-white);
}

/* Services intro — hover reveal panels */
.services-intro-reveal {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
}

.services-intro-reveal__panel {
    position: relative;
    flex: 1 1 0;
    min-width: 13.5rem;
    max-width: 16.5rem;
    height: 8.75rem;
    overflow: hidden;
    padding: 0.9rem 1.05rem;
    border-radius: var(--radius-md);
    outline: none;
    cursor: default;
    transition:
        flex var(--transition-slow),
        max-width var(--transition-slow),
        height var(--transition-slow),
        background-color var(--transition-base),
        box-shadow var(--transition-base),
        padding var(--transition-base);
}

.services-intro-reveal__panel + .services-intro-reveal__panel {
    margin-left: 0.45rem;
}

.services-intro-reveal__panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    opacity: 0.55;
    transition: opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.services-intro-reveal__panel--lead::before {
    display: none;
}

.services-intro-reveal__panel--lead {
    flex: 1.2 1 0;
    max-width: 26rem;
    min-width: 0;
    height: auto;
    padding: 0.15rem 0.85rem 0.15rem 0;
    background: transparent;
}

.services-intro-reveal__content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 22rem;
}

.services-intro-reveal__panel--lead .services-intro-reveal__content {
    min-width: 0;
}

.services-intro-reveal__panel .prose {
    max-width: none;
    opacity: 0.18;
    transform: translateX(0.75rem);
    filter: blur(1px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow),
        filter var(--transition-base),
        color var(--transition-base);
    pointer-events: none;
}

.services-intro-reveal__panel .prose p {
    font-size: clamp(0.875rem, 1.05vw, 0.9875rem);
    line-height: 1.55;
    margin-bottom: 0;
}

.services-intro-reveal__panel .prose p + p {
    margin-top: 0.55rem;
}

.services-intro-reveal__panel--lead .prose {
    opacity: 1;
    transform: translateX(0);
    filter: none;
    pointer-events: auto;
}

.services-intro-reveal__panel--lead .prose p,
.services-intro-reveal__panel--lead > .services-intro-reveal__content > .prose {
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    line-height: 1.65;
}

.services-intro-reveal__visual {
    display: block;
    width: 9.5rem;
    max-width: 100%;
    height: auto;
    opacity: 0.72;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead) .services-intro-reveal__visual {
    opacity: 0;
    transform: translateY(0.35rem);
}

/* Soft invite cue on collapsed side panels — peek only, not full text */
.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):not(:hover):not(:focus-visible) {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):not(:hover):not(:focus-visible) .prose {
    opacity: 0.28;
    filter: blur(1.1px);
    transform: translateX(0.35rem);
}

.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):not(:hover):not(:focus-visible)::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 28%,
            rgba(5, 5, 5, 0.55) 62%,
            rgba(5, 5, 5, 0.92) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 55%,
            rgba(5, 5, 5, 0.75) 100%
        );
    pointer-events: none;
}

/* Hover hint arrows — every panel except the last */
.services-intro-reveal__arrow {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    z-index: 2;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: -0.575rem;
    pointer-events: none;
    opacity: 0.55;
    color: rgba(255, 255, 255, 0.55);
    transition: opacity var(--transition-base), color var(--transition-base);
    animation: services-intro-arrow-nudge 1.8s ease-in-out infinite;
}

.services-intro-reveal__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg) scale(0.55);
    transform-origin: center;
}

.services-intro-reveal__panel--lead .services-intro-reveal__arrow {
    right: 0.15rem;
    opacity: 0.42;
    color: rgba(255, 255, 255, 0.42);
}

.services-intro-reveal__panel:hover .services-intro-reveal__arrow,
.services-intro-reveal__panel:focus-visible .services-intro-reveal__arrow,
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead .services-intro-reveal__arrow,
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead .services-intro-reveal__arrow {
    opacity: 0;
    animation: none;
}

@keyframes services-intro-arrow-nudge {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateX(0.28rem);
        opacity: 0.7;
    }
}

.services-intro-reveal__panel:hover,
.services-intro-reveal__panel:focus-visible {
    flex: 3.2 1 0;
    max-width: 38rem;
    min-width: 17rem;
    height: auto;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    cursor: default;
}

.services-intro-reveal__panel:hover::before,
.services-intro-reveal__panel:focus-visible::before {
    opacity: 1;
    top: 12%;
    bottom: 12%;
}

.services-intro-reveal__panel:hover .prose,
.services-intro-reveal__panel:focus-visible .prose {
    opacity: 1;
    transform: translateX(0);
    filter: none;
    color: var(--color-gray-300);
    pointer-events: auto;
}

.services-intro-reveal__panel:hover .services-intro-reveal__visual,
.services-intro-reveal__panel:focus-visible .services-intro-reveal__visual {
    opacity: 0.85;
    transform: translateY(0);
}

/* When a side panel opens, gently compress the lead */
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead,
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead {
    flex: 0.85 1 0;
    max-width: 16rem;
}

.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead .prose,
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead .prose {
    opacity: 0.45;
}

.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead .services-intro-reveal__visual,
.services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead .services-intro-reveal__visual {
    opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
    .services-intro-reveal__panel,
    .services-intro-reveal__panel .prose,
    .services-intro-reveal__visual,
    .services-intro-reveal__arrow {
        transition: none;
        animation: none;
    }
}

/* Stack fully on touch / narrow viewports — no hover needed */
@media (max-width: 900px), (hover: none) {
    .services-intro-reveal {
        flex-direction: column;
        min-height: 0;
        gap: 1rem;
    }

    .services-intro-reveal__panel,
    .services-intro-reveal__panel--lead,
    .services-intro-reveal__panel:hover,
    .services-intro-reveal__panel:focus-visible,
    .services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead,
    .services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        margin-left: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .services-intro-reveal__content {
        min-width: 0;
        gap: 0.5rem;
    }

    .services-intro-reveal__panel::before,
    .services-intro-reveal__panel::after,
    .services-intro-reveal__arrow {
        display: none;
    }

    .services-intro-reveal__panel .prose,
    .services-intro-reveal__panel--lead .prose,
    .services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):hover) .services-intro-reveal__panel--lead .prose,
    .services-intro-reveal:has(.services-intro-reveal__panel:not(.services-intro-reveal__panel--lead):focus-visible) .services-intro-reveal__panel--lead .prose {
        opacity: 1;
        transform: none;
        filter: none;
        max-width: 40rem;
        color: var(--color-gray-400);
        pointer-events: auto;
    }

    .services-intro-reveal__panel .services-intro-reveal__visual,
    .services-intro-reveal__panel:not(.services-intro-reveal__panel--lead) .services-intro-reveal__visual {
        opacity: 0.7;
        transform: none;
        width: 8.5rem;
    }
}
