/*  CORA Services — Services Page */

.sv {
    --sv-blue:  var(--blue, #1d4ed8);
    --sv-black: var(--black, #0b0d12);
    --sv-navy:  #0a1024;
    --sv-page:  #f3f6fb;
    --sv-gray:  #4a5160;
    --sv-ease:  cubic-bezier(.16, 1, .3, 1);

    background: var(--sv-page);
    color: var(--sv-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.sv *, .sv *::before, .sv *::after { box-sizing: border-box; }
.sv img { display: block; max-width: 100%; }
.sv a { color: inherit; text-decoration: none; }
.sv h1, .sv h2, .sv h3 {
    margin: 0;
    color: var(--sv-black);
    font-weight: 800;
    letter-spacing: -.04em;
}
.sv p { margin: 0; line-height: 1.8; }

.sv-wrap { width: min(1180px, 90%); margin-inline: auto; }

/* Scroll progress bar */
.sv-progress {
    display: none;
}

/* Shared type */

.sv-label {
    display: block;
    margin-bottom: 18px;
    color: var(--sv-black);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sv-h2 {
    margin-top: 16px;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.1;
}
.sv-h2 > span,
.sv-h2 > strong { display: block; }
.sv-h2 > strong { color: var(--sv-blue); }

/* Solid button  */
.sv-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 26px;
    border-radius: 3px;
    background: var(--sv-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: transform .35s var(--sv-ease), box-shadow .35s ease;
}
.sv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(29, 78, 216, .7);
}
.sv-btn:focus-visible { outline: 2px solid var(--sv-blue); outline-offset: 3px; }

/* Hero (shorter, photo only: no glow)  */
.sv-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 100px 0;
    color: #fff;
    overflow: hidden;
    background: var(--sv-navy);
}
.sv-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    z-index: 1;
    overflow: hidden;
}
/*  photo fades  */
.sv-hero__frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 16, 36, .45) 0%, rgba(10, 16, 36, 0) 35%),
        linear-gradient(90deg,
            var(--sv-navy) 0%,
            rgba(10, 16, 36, .95) 22%,
            rgba(10, 16, 36, .6) 42%,
            rgba(10, 16, 36, 0) 68%),
        var(--hero-img, none) 70% center / cover no-repeat,
        var(--sv-black);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
    will-change: transform;
}
.sv-hero__copy {
    position: relative;
    z-index: 2;
}
.sv .sv-hero__title {
    margin: 0;
    font-size: clamp(40px, 5.4vw, 70px);
    line-height: 1.02;
    letter-spacing: -.04em;
    color: #fff;
}
.sv .sv-hero__title .sv-line {
    display: inline-block;
    color: #fff;
}
.sv .sv-hero__title .sv-hl { color: var(--sv-blue); }
.sv-hero__copy > p {
    max-width: 460px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

/* Hero title lines and paragraph drop down  */
.sv.is-ready .sv-hero__title .sv-line,
.sv.is-ready .sv-hero__copy > p {
    animation: svDropIn 1.1s var(--sv-ease) var(--d, 0s) both;
}

/*  Service card list  */
.sv-list { padding: 40px 0 30px; }

/* One card fills roughly one screen height */
.sv-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(460px, 78vh, 640px);
    margin-bottom: 36px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 14px 34px -24px rgba(11, 13, 18, .3);
    overflow: hidden;
    transition: transform .6s var(--sv-ease), box-shadow .6s ease;
}
.sv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -26px rgba(11, 13, 18, .4);
}

/* Photo column: solid blue band shows where the slant cuts the photo */
.sv-card__media {
    position: relative;
    min-height: 100%;
    background: var(--sv-blue);
    clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%);
    order: 0;
}
.sv-card__frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--sv-navy);
    clip-path: polygon(0 0, 87% 0, 72% 100%, 0 100%);
}
/* Whole photo visible */
.sv-card__frame img.sv-parallax {
    position: absolute;
    top: -6%;
    left: 0;
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: center 35%;
    transform: none;
    will-change: transform;
}

/* Flipped cards: photo on the right, band on the left (mirror image) */
.sv-card--flip .sv-card__media {
    order: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 17% 100%);
}
.sv-card--flip .sv-card__frame {
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 28% 100%);
}
.sv-card--flip .sv-card__text { order: 0; }

/* Text column */
.sv-card__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    padding: 72px clamp(36px, 4.5vw, 72px);
}
.sv-card__text > p {
    max-width: 500px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.85;
}
.sv-card__text > .sv-label,
.sv-card__text > .sv-h2,
.sv-card__text > p,
.sv-card__text > .sv-learn { position: relative; z-index: 1; }

/* Large faint number */
.sv-card__no {
    position: absolute;
    top: 30px;
    left: clamp(36px, 4.5vw, 72px);
    z-index: 0;
    color: rgba(29, 78, 216, .12);
    font-size: clamp(54px, 5.6vw, 80px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    pointer-events: none;
}

/* Learn more: outlined button */
.sv-learn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 28px;
    height: 42px;
    padding: 0 22px;
    border: 1px solid var(--sv-blue);
    border-radius: 3px;
    color: var(--sv-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    transition: background .35s ease, color .35s ease;
}
.sv-learn > span:last-child { transition: transform .4s var(--sv-ease); }
.sv-learn:hover {
    background: var(--sv-blue);
    color: #fff;
}
.sv-learn:hover > span:last-child { transform: translateX(6px); }

/*  Call to action: shorter, white first line, no eyebrow  */
.sv-cta {
    position: relative;
    padding: 70px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 14, 30, .86) 0%, rgba(8, 14, 30, .95) 100%),
        var(--cta-img, none) center / cover no-repeat,
        var(--sv-navy);
}
/* Floating blue arc on the left */
.sv-cta::before {
    content: "";
    position: absolute;
    left: -170px;
    top: 50%;
    width: 360px;
    height: 120%;
    border-radius: 50%;
    border-left: 46px solid rgba(47, 128, 237, .8);
    transform: translateY(-50%);
    pointer-events: none;
    animation: svArc 9s ease-in-out infinite;
}
.sv-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Higher specificity than the global heading colour, so the first line is white */
.sv .sv-cta__title {
    margin-top: 0;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.02;
    letter-spacing: -.045em;
    color: #fff;
}
.sv .sv-cta__title span,
.sv .sv-cta__title strong { display: block; }
.sv .sv-cta__title span { color: #fff; }
.sv .sv-cta__title strong { color: var(--sv-blue); }
.sv-cta__inner > p {
    max-width: 580px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}
.sv .sv-cta .sv-btn { margin-top: 28px; }

/* Scroll reveal: text (fade + rise, or slide from side)  */
.sv.is-ready .sv-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 1s var(--sv-ease) var(--d, 0s),
                transform 1s var(--sv-ease) var(--d, 0s);
}
.sv.is-ready .sv-reveal.is-in {
    opacity: 1;
    transform: none;
}
.sv.is-ready .sv-reveal--left { transform: translate3d(-40px, 0, 0); }
.sv.is-ready .sv-reveal--right { transform: translate3d(40px, 0, 0); }
.sv.is-ready .sv-reveal--left.is-in,
.sv.is-ready .sv-reveal--right.is-in { transform: none; }

/* Card photo wipe-in and number rise  */
.sv.is-ready .sv-card.is-in .sv-card__frame {
    animation: svWipeL 1.4s var(--sv-ease) both;
}
.sv.is-ready .sv-card--flip.is-in .sv-card__frame {
    animation: svWipeR 1.4s var(--sv-ease) both;
}
.sv.is-ready .sv-card.is-in .sv-card__no {
    animation: svNoIn 1.2s var(--sv-ease) .1s both;
}

/*  Keyframes */
@keyframes svWipeL {
    from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    to   { clip-path: polygon(0 0, 87% 0, 72% 100%, 0 100%); }
}
@keyframes svWipeR {
    from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
    to   { clip-path: polygon(13% 0, 100% 0, 100% 100%, 28% 100%); }
}
@keyframes svNoIn {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes svArc {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50%      { transform: translateY(-50%) rotate(-4deg); }
}
@keyframes svHeroIn {
    from { opacity: 0; transform: translate3d(60px, 0, 0); }
    to   { opacity: 1; transform: none; }
}
@keyframes svDropIn {
    from { opacity: 0; transform: translate3d(0, -40px, 0); }
    to   { opacity: 1; transform: none; }
}

/* Hero photo entrance (runs once the page is ready) */
.sv.is-ready .sv-hero__media { animation: svHeroIn 1.4s var(--sv-ease) both; }

/* Responsive  */
@media (max-width: 900px) {
    .sv-hero { min-height: 0; padding: 80px 0 70px; }
    .sv-hero__media { width: 100%; opacity: .4; }
    .sv-hero__frame { clip-path: none; }

    .sv-card { grid-template-columns: 1fr; min-height: 0; }
    .sv-card__media,
    .sv-card--flip .sv-card__media {
        clip-path: none;
        min-height: 260px;
        order: 0;
    }
    .sv-card__frame,
    .sv-card--flip .sv-card__frame {
        clip-path: none;
        animation: none !important;
    }
    .sv-card__text,
    .sv-card--flip .sv-card__text { order: 1; padding: 44px 28px 48px; }
    .sv-card__no { top: 16px; font-size: 56px; }
}

@media (max-width: 600px) {
    .sv-list { padding: 30px 0 20px; }
    .sv .sv-hero__title { font-size: 40px; }
    .sv-h2 { font-size: 28px; }
    .sv-label { font-size: 22px; }
    .sv-cta { padding: 60px 0; }
    .sv .sv-cta__title { font-size: 36px; }
    .sv .sv-cta .sv-btn { width: 100%; }
}

/*  Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sv *, .sv *::before, .sv *::after {
        animation: none !important;
        transition: none !important;
    }
    .sv.is-ready .sv-reveal { opacity: 1; transform: none; }
    .sv-hero__frame { transform: scale(1.06); }
    .sv-card__frame img.sv-parallax { transform: none; }
}