/* Zlaja 2015 — zajednički vizuelni sistem */
:root {
    --flow-blue: #2f80ff;
    --flow-cyan: #25c2f5;
    --flow-mint: #20d39a;
    --flow-amber: #ffc857;
    --flow-ink: #07111f;
    --flow-line: rgba(74, 161, 255, .24);
    --flow-surface: rgba(20, 36, 58, .88);
    --flow-surface-strong: rgba(25, 44, 70, .96);
    --flow-radius: 20px;
    --flow-shadow: 0 24px 70px rgba(0, 8, 24, .28);
}

[data-theme="light"] {
    --flow-line: rgba(28, 112, 224, .18);
    --flow-surface: rgba(255, 255, 255, .92);
    --flow-surface-strong: rgba(255, 255, 255, .98);
    --flow-shadow: 0 22px 60px rgba(30, 82, 148, .13);
}

html {
    scroll-padding-top: 104px;
    scrollbar-color: var(--flow-blue) var(--bg-primary);
}

body {
    background:
        radial-gradient(circle at 7% 5%, rgba(47, 128, 255, .2), transparent 32rem),
        radial-gradient(circle at 92% 31%, rgba(32, 211, 154, .12), transparent 34rem),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 82%, #03152d) 0, var(--bg-primary) 46rem),
        var(--bg-primary) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .26;
    background-image:
        linear-gradient(var(--flow-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--flow-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

::selection {
    color: #fff;
    background: #176fe8;
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--flow-amber) !important;
    outline-offset: 4px;
}

.site-scroll-progress {
    position: fixed;
    z-index: 1300;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: rgba(255, 255, 255, .06);
}

.site-scroll-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--flow-blue), var(--flow-cyan), var(--flow-mint));
    box-shadow: 0 0 18px rgba(37, 194, 245, .65);
}

.header {
    background: color-mix(in srgb, var(--header-bg) 90%, transparent) !important;
    border-bottom-color: var(--flow-line) !important;
    box-shadow: 0 12px 40px rgba(0, 8, 24, .2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.header::after {
    content: "";
    position: absolute;
    left: max(1rem, calc((100% - 1340px) / 2));
    right: max(1rem, calc((100% - 1340px) / 2));
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--flow-blue), var(--flow-cyan), transparent);
    opacity: .55;
}

.logo {
    text-decoration: none;
}

.logo-image {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .24));
}

.logo-text {
    letter-spacing: .06em;
}

.nav-link {
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    border-color: var(--flow-line);
    background: linear-gradient(135deg, rgba(47, 128, 255, .13), rgba(37, 194, 245, .05));
}

.nav-item.has-dropdown::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(100% - 3px);
    left: -10px;
    right: -10px;
    height: 22px;
}

.dropdown-menu {
    top: calc(100% + 10px) !important;
    min-width: 286px;
    max-height: min(72vh, 620px);
    overflow-y: auto;
    padding: .65rem !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
}

.nav-item.has-dropdown:is(:hover, :focus-within, .dropdown-open) .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header:has(.has-dropdown:is(:hover, :focus-within, .dropdown-open)) {
    overflow: visible !important;
}

.dropdown-menu a {
    min-height: 44px;
    border-left: 0 !important;
    border-radius: 10px;
}

.theme-toggle,
.lang-toggle {
    min-width: 44px;
    min-height: 44px;
}

main {
    position: relative;
    counter-reset: flow-section;
}

main > section {
    isolation: isolate;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

[data-cv] {
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
}

main > section:not(:first-child) {
    counter-increment: flow-section;
}

main > section:not(:first-child)::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -96px;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-primary) 58%, transparent));
}

.section-header,
.section-heading,
.content-header {
    position: relative;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-header::before,
.section-heading::before {
    content: "0" counter(flow-section);
    display: block;
    margin-bottom: .55rem;
    color: var(--flow-cyan);
    font: 700 .72rem/1 Inter, sans-serif;
    letter-spacing: .2em;
}

.section-title,
.section-header h2,
.section-heading h2 {
    letter-spacing: -.035em;
    text-wrap: balance;
}

.section-subtitle,
.section-header p,
.section-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.hero-section,
[class$="-hero"],
.page-hero {
    overflow: clip;
}

.hero-section {
    min-height: min(850px, calc(100svh - 72px));
    padding-top: clamp(5rem, 9vw, 8rem) !important;
    padding-bottom: clamp(3.2rem, 7vw, 6.5rem) !important;
    background:
        linear-gradient(115deg, rgba(5, 17, 36, .97) 0 48%, rgba(7, 31, 58, .88) 72%, rgba(9, 62, 78, .72) 100%),
        radial-gradient(circle at 72% 25%, rgba(37, 194, 245, .23), transparent 32rem) !important;
}

[data-theme="light"] .hero-section {
    background:
        linear-gradient(115deg, rgba(239, 247, 255, .98) 0 48%, rgba(226, 244, 255, .95) 72%, rgba(224, 252, 244, .9) 100%) !important;
}

.hero-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: auto -12% -44% 34%;
    height: 72%;
    border: 1px solid rgba(37, 194, 245, .18);
    border-radius: 50% 50% 0 0;
    background: linear-gradient(145deg, transparent, rgba(32, 211, 154, .06));
    transform: rotate(-7deg);
    pointer-events: none;
}

.hero-container,
.hero-links {
    position: relative;
    z-index: 1;
}

.hero-container {
    gap: clamp(2.2rem, 6vw, 7rem) !important;
}

.hero-left {
    position: relative;
}

.hero-left::before {
    content: "INTERVENCIJE • BEOGRAD";
    display: block;
    margin-bottom: 1rem;
    color: var(--flow-cyan);
    font: 800 .69rem/1 Inter, sans-serif;
    letter-spacing: .22em;
}

.hero-section::before,
[class$="-hero"]::before,
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(52vw, 760px);
    aspect-ratio: 1;
    right: -15%;
    top: -42%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 194, 245, .17), rgba(47, 128, 255, .06) 48%, transparent 70%);
    filter: blur(8px);
}

.hero-h1,
.hero-title,
.page-title,
[class$="-hero"] h1 {
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 5.15vw, 5.7rem) !important;
    line-height: .97 !important;
}

.hero-h1 span:last-child {
    color: transparent !important;
    background: linear-gradient(90deg, #67b3ff, #31d4f4 52%, #3fe0aa);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-p {
    max-width: 670px;
    font-size: clamp(1rem, 1.25vw, 1.22rem) !important;
    line-height: 1.72 !important;
}

.hero-right {
    position: relative;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.hero-right::before,
.hero-right::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-right::before {
    inset: -9% -7% 7% 10%;
    border: 1px solid rgba(37, 194, 245, .24);
    border-radius: 46% 54% 58% 42%;
    background: radial-gradient(circle at 48% 40%, rgba(47, 128, 255, .22), transparent 64%);
    transform: rotate(5deg);
}

.hero-right::after {
    right: -4%;
    bottom: 4%;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 211, 154, .26), transparent 68%);
    filter: blur(8px);
}

.hero-chip,
.hero-badge,
.emergency-badge,
.featured-badge,
.feature-badge {
    border-color: rgba(37, 194, 245, .32) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

:where(.service-card, .service-item, .feature-card, .work-card, .faq-item, .location-card, .advantage-card, .process-card, .process-step, .benefit-card, .review-card, .testimonial-card, .step-card, .method-card, .tip-card, .problem-card, .equipment-card, .company-card, .schedule-item, .info-item) {
    border-color: var(--flow-line) !important;
    border-radius: var(--flow-radius) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 45px rgba(0, 8, 24, .12);
}

@media (hover: hover) and (pointer: fine) {
    :where(.service-card, .service-item, .feature-card, .work-card, .location-card, .advantage-card, .process-card, .process-step, .benefit-card, .review-card, .testimonial-card, .step-card, .method-card, .tip-card, .problem-card, .equipment-card, .company-card):hover {
        border-color: rgba(37, 194, 245, .48) !important;
        box-shadow: var(--flow-shadow);
        transform: translateY(-4px);
    }
}

:where(.service-card, .service-item, .feature-card, .work-card, .location-card, .advantage-card, .process-card, .process-step, .benefit-card, .review-card, .testimonial-card, .step-card, .method-card, .tip-card, .problem-card, .equipment-card, .company-card) {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
}

.btn-primary,
.hero-btn-form,
.btn-secondary,
.btn-submit,
.btn-call,
.btn-emergency,
.btn-emergency-large {
    min-height: 48px;
    border-radius: 14px !important;
}

.btn-primary,
.btn-submit {
    background: linear-gradient(135deg, var(--flow-blue), #175fd1) !important;
    box-shadow: 0 12px 30px rgba(47, 128, 255, .28) !important;
}

.hero-btn-call,
.btn-cta-call,
.floating-contact-btn {
    background: linear-gradient(135deg, var(--flow-mint), #0cab73) !important;
}

.hero-img-wrap,
.hero-image img,
.about-image img,
.work-showcase img,
.equipment-showcase img {
    border-color: rgba(37, 194, 245, .38) !important;
    box-shadow: 0 30px 80px rgba(0, 9, 27, .32), 0 0 0 1px rgba(255, 255, 255, .05) !important;
}

.hero-img-wrap {
    isolation: isolate;
    overflow: hidden;
    border-radius: 34px 12px 34px 12px !important;
    transform: rotate(1.4deg);
}

.hero-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(47, 128, 255, .1), transparent 45%, rgba(32, 211, 154, .14));
    pointer-events: none;
}

.hero-links {
    padding: .7rem;
    border: 1px solid rgba(37, 194, 245, .16);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 35, 61, .72), rgba(8, 24, 43, .42));
    box-shadow: 0 22px 60px rgba(0, 8, 24, .2);
}

.hero-link-card {
    border-radius: 15px !important;
}

.hero-link-card:is(:hover, :focus-visible) {
    background: linear-gradient(135deg, rgba(47, 128, 255, .18), rgba(32, 211, 154, .09)) !important;
}

.about-section,
.services-preview,
.why-choose-us,
.testimonials-section,
.process-section,
.faq-preview,
.coverage-section {
    padding-top: clamp(5rem, 9vw, 9rem) !important;
    padding-bottom: clamp(5rem, 9vw, 9rem) !important;
}

.services-preview,
.testimonials-section,
.faq-preview {
    background:
        linear-gradient(180deg, transparent 0, rgba(47, 128, 255, .035) 18%, rgba(47, 128, 255, .035) 82%, transparent 100%) !important;
}

.about-content,
.why-choose-us .container,
.process-section .container,
.coverage-content {
    position: relative;
    border: 1px solid rgba(37, 194, 245, .16);
    border-radius: clamp(24px, 3vw, 40px);
    background:
        linear-gradient(135deg, rgba(20, 41, 68, .8), rgba(8, 24, 44, .46)),
        linear-gradient(90deg, rgba(47, 128, 255, .04) 1px, transparent 1px),
        linear-gradient(rgba(47, 128, 255, .04) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    box-shadow: 0 36px 90px rgba(0, 8, 24, .2);
}

[data-theme="light"] :is(.about-content, .why-choose-us .container, .process-section .container, .coverage-content) {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(236, 248, 255, .9)),
        linear-gradient(90deg, rgba(47, 128, 255, .05) 1px, transparent 1px),
        linear-gradient(rgba(47, 128, 255, .05) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

.about-content,
.coverage-content {
    padding: clamp(1.15rem, 3vw, 2.5rem) !important;
}

.services-grid {
    align-items: stretch;
}

.service-item {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: clamp(1.45rem, 2.4vw, 2.2rem) !important;
    background: linear-gradient(145deg, rgba(24, 47, 75, .92), rgba(8, 24, 43, .78)) !important;
}

.service-item::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 105px;
    aspect-ratio: 1;
    border: 1px solid rgba(37, 194, 245, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(47, 128, 255, .035), 0 0 0 36px rgba(32, 211, 154, .025);
}

.service-item:nth-child(2n) {
    background: linear-gradient(145deg, rgba(13, 48, 67, .92), rgba(8, 24, 43, .78)) !important;
}

.service-icon,
.advantage-icon {
    border: 1px solid rgba(116, 205, 255, .22);
    background: linear-gradient(135deg, rgba(47, 128, 255, .24), rgba(32, 211, 154, .12)) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 12px 28px rgba(0, 10, 30, .2);
}

.advantage-card {
    background: linear-gradient(145deg, rgba(24, 47, 75, .72), rgba(8, 24, 43, .52)) !important;
}

.why-choose-us .container,
.process-section .container {
    padding: clamp(1.5rem, 4vw, 4.5rem) !important;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    padding-top: 2.2rem !important;
    background: linear-gradient(150deg, rgba(24, 47, 75, .88), rgba(8, 24, 43, .72)) !important;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -.25rem;
    right: .8rem;
    color: rgba(37, 194, 245, .16);
    font: 800 8rem/1 Georgia, serif;
}

.process-steps {
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 7%;
    right: 7%;
    height: 2px;
    background: linear-gradient(90deg, var(--flow-blue), var(--flow-cyan), var(--flow-mint));
    opacity: .45;
}

.process-step {
    position: relative;
    background: color-mix(in srgb, var(--flow-surface) 80%, transparent) !important;
}

.step-number {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg-primary) 88%, transparent), 0 0 30px rgba(37, 194, 245, .25);
}

.faq-grid {
    max-width: 980px;
    margin-inline: auto;
}

.faq-item {
    background: linear-gradient(135deg, rgba(20, 41, 68, .78), rgba(8, 24, 43, .56)) !important;
}

.coverage-item {
    border: 1px solid rgba(37, 194, 245, .15);
    border-radius: 14px;
    background: rgba(47, 128, 255, .045);
}

.faq-question {
    min-height: 58px;
}

.faq-answer {
    transition: max-height .3s ease, opacity .2s ease !important;
}

.footer {
    border-top: 1px solid var(--flow-line);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6vw;
    right: 6vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--flow-blue), var(--flow-cyan), transparent);
}

@media (max-width: 1024px) {
    .header {
        overflow: visible !important;
    }

    .mobile-menu {
        position: fixed !important;
        top: 80px !important;
        bottom: 0;
        max-height: none !important;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg-primary) 97%, transparent) !important;
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
        overscroll-behavior: contain;
    }

    .mobile-nav-list {
        max-width: 620px;
        margin: 0 auto;
    }

    .mobile-nav-list a {
        border: 1px solid transparent;
    }

    .mobile-nav-list a:hover,
    .mobile-nav-list a:focus-visible {
        border-color: var(--flow-line);
    }

    body.mobile-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }

    .mobile-menu { top: 70px !important; }

    body::before {
        background-size: 42px 42px;
        opacity: .18;
    }

    main > section:not(:first-child)::after {
        top: -58px;
        height: 100px;
    }

    .section-header::before,
    .section-heading::before {
        margin-bottom: .45rem;
    }

    .hero-img-wrap {
        border-radius: 18px !important;
    }

    .hero-section {
        min-height: auto;
        padding-top: 5.25rem !important;
    }

    .hero-right {
        padding: .25rem;
    }

    .hero-img-wrap {
        transform: none;
    }

    .about-content,
    .why-choose-us .container,
    .process-section .container,
    .coverage-content {
        border-radius: 22px;
    }

    .service-item {
        min-height: 0;
    }

    .process-steps::before {
        top: 2rem;
        bottom: 2rem;
        left: 2rem;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--flow-blue), var(--flow-cyan), var(--flow-mint));
    }
}

@media (max-width: 480px) {
    .mobile-menu { top: 60px !important; }
    .mobile-nav-list { padding: .8rem; }
    .mobile-nav-list a { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .site-scroll-progress__bar,
    :where(.service-card, .service-item, .feature-card, .work-card, .location-card, .advantage-card, .process-card, .process-step, .benefit-card, .review-card, .testimonial-card, .step-card, .method-card, .tip-card, .problem-card, .equipment-card, .company-card) {
        transition: none !important;
    }
}

/* Tok vode kroz stranicu */
.site-flow-intro {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: flowIntroLeave 620ms var(--flow-ease, cubic-bezier(.22, 1, .36, 1)) both;
}

.site-flow-intro__pipe {
    position: relative;
    width: min(64vw, 480px);
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(117, 204, 255, .36);
    border-radius: 999px;
    background: rgba(5, 20, 38, .6);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), 0 0 34px rgba(37, 194, 245, .18);
}

.site-flow-intro__pipe::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 14px 50%, rgba(255, 255, 255, .96) 0 2px, transparent 3px),
        linear-gradient(90deg, var(--flow-blue), var(--flow-cyan), var(--flow-mint));
    background-size: 28px 100%, 100% 100%;
    transform-origin: left;
    animation: flowPipeFill 520ms cubic-bezier(.16, 1, .3, 1) both;
}

.site-flow-intro__label {
    position: absolute;
    margin-top: 62px;
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
}

@keyframes flowPipeFill {
    from { transform: scaleX(.04); filter: brightness(.8); }
    to { transform: scaleX(1); filter: brightness(1.16); }
}

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

.site-flow-guide {
    position: absolute;
    z-index: 8;
    top: 112px;
    left: max(12px, calc((100vw - 1340px) / 2 - 92px));
    display: none;
    width: 76px;
    height: calc(100% - 260px);
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(37, 194, 245, .2));
}

.site-flow-guide__bed,
.site-flow-guide__water {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-flow-guide__bed {
    stroke: color-mix(in srgb, var(--flow-blue) 24%, transparent);
    stroke-width: 5;
}

.site-flow-guide__water {
    stroke: url(#siteFlowGradient);
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.site-flow-guide__runner {
    position: absolute;
    z-index: 9;
    display: none;
    width: 13px;
    height: 20px;
    border-radius: 60% 40% 62% 38% / 72% 46% 54% 28%;
    pointer-events: none;
    background: linear-gradient(145deg, #8ce9ff, var(--flow-cyan) 48%, var(--flow-blue));
    opacity: .72;
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .5), 0 0 14px rgba(37, 194, 245, .9);
    filter: drop-shadow(0 0 5px rgba(37, 194, 245, .75));
    transition: opacity .18s ease;
}

@media (min-width: 1280px) {
    body { position: relative; }
    .site-flow-guide,
    .site-flow-guide__runner { display: block; }
}

/* Na manjim ekranima tok postaje kratka sekcijska cev, bez bočnog preliva. */
@media (max-width: 1279px) {
    .site-flow-segment {
        position: absolute;
        z-index: 2;
        top: 18px;
        left: max(18px, calc((100% - 1180px) / 2));
        display: block;
        width: clamp(42px, 8vw, 88px);
        height: 3px;
        border-radius: 999px;
        pointer-events: none;
        background: linear-gradient(90deg, var(--flow-blue), var(--flow-cyan), transparent);
        box-shadow: 0 0 14px rgba(37, 194, 245, .25);
    }

    main > section:not(:first-child)::after {
        border-top: 1px solid color-mix(in srgb, var(--flow-cyan) 10%, transparent);
    }
}

.portfolio-refresh-ready [data-flow-state] {
    transition:
        opacity .52s cubic-bezier(.22, 1, .36, 1),
        transform .62s cubic-bezier(.22, 1, .36, 1),
        clip-path .66s cubic-bezier(.16, 1, .3, 1),
        filter .52s ease;
}

.portfolio-refresh-ready [data-flow-delay="1"] { transition-delay: 45ms; }
.portfolio-refresh-ready [data-flow-delay="2"] { transition-delay: 90ms; }
.portfolio-refresh-ready [data-flow-delay="3"] { transition-delay: 135ms; }

.portfolio-refresh-ready [data-flow-state="waiting"][data-flow-motion="wipe"] {
    opacity: .34;
    clip-path: inset(0 100% 0 0 round 16px);
}

.portfolio-refresh-ready [data-flow-state="waiting"][data-flow-motion="drift"] {
    opacity: .25;
    transform: translate3d(28px, 8px, 0);
    filter: blur(5px);
}

.portfolio-refresh-ready [data-flow-state="waiting"][data-flow-motion="settle"] {
    opacity: .32;
    transform: translate3d(0, 20px, 0) scale(.98);
}

.portfolio-refresh-ready [data-flow-state="visible"] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0 round 16px);
    filter: none;
}

.flow-pressable {
    transform-origin: center;
}

.flow-pressable.is-flow-pressed {
    transform: scale(.975) !important;
    filter: brightness(1.08);
}

:where(.form-group, .input-group, .form-field):focus-within {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 14px rgba(37, 194, 245, .16));
}

@media (prefers-reduced-motion: reduce) {
    .site-flow-intro,
    .site-flow-guide,
    .site-flow-guide__runner { display: none !important; }

    .portfolio-refresh-ready [data-flow-state],
    .flow-pressable,
    .flow-pressable.is-flow-pressed {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root body *, :root body *::before, :root body *::after {
        animation: none !important;
        transition: none !important;
    }
}
