/* =======================================================================
   ABOUT PAGE — rebuilt layout (matches the approved full-page mockup).
   Global chrome (header, menu, footer) + .hd/.eyebrow/.btn come from
   assets/css/style.css. Everything below is scoped to this page.
   ======================================================================= */
main {
    --c-blue: #2b5088;
    --c-accent: #3b6fd4;
    --c-accent-2: #6ea8fe;
    --c-ink: #141a22;
    --c-muted: #5f6b7a;
    --c-line: #e7ebf2;
    --c-paper: #f5f7fb;
    --c-grad: var(--blue);
}

/* =======================================================================
   PAGE BANNER — single source of truth for #ab-hero.
   Compact, centred banner carrying just the page title and the
   breadcrumb.

   Colour comes from the home page: navy #0B1D3F, brand blue #1E56C8,
   bright blue #3B7BFF, sky #E5EDFB and chip text #E3EBFA — the .ipv /
   #hero palette in assets/css/style.css. The previous near-black
   scrim drained the photograph and read grey; these gradients keep a
   blue cast, so the banner looks like the same brand as index.html.

   Behind the type: the still photograph under a blue duotone scrim, a
   fine dot grid, two brand-blue glows and corner ring arcs that draw
   themselves in — the same ring motif the home page uses.
   ======================================================================= */
#ab-hero {
    /* home-page palette, scoped to the banner */
    --bn-navy: #0B1D3F;
    --bn-blue: #1E56C8;
    --bn-blue-2: #3B7BFF;
    --bn-sky: #E5EDFB;
    --bn-chip: #E3EBFA;
    /* the sky tint the home page hero uses on its <em> words */
    --bn-accent: #fff;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    min-height: 360px;
    height: min(520px, 60svh);
    /* bottom padding must stay taller than .ab-hero-wave's height,
       or the title sits on top of the crests */
    padding: 126px var(--pad) clamp(132px, 14vw, 206px);
    background: var(--bn-navy);
    color: #fff;
}

/* --- background photograph --- */
#ab-hero .ab-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -4;
}

#ab-hero .ab-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1.06);
    /* a touch more contrast and colour, because the scrim over it is
       lighter than it used to be */
    filter: saturate(1.05) contrast(1.04);
    animation: ab-hero-drift 30s ease-in-out infinite alternate;
}

@keyframes ab-hero-drift {
    to {
        transform: scale(1.12) translate3d(-1%, -1.4%, 0);
    }
}

#ab-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: #2b5088;
}

#ab-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#ab-hero .ab-hero-glow {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

#ab-hero .ab-hero-glow.g1 {
    width: 560px;
    height: 560px;
    top: -240px;
    right: -120px;
    opacity: .85;
    background: radial-gradient(circle, rgba(59, 123, 255, .55), transparent 70%);
}

#ab-hero .ab-hero-glow.g2 {
    width: 520px;
    height: 520px;
    bottom: -250px;
    left: -150px;
    opacity: .8;
    background: radial-gradient(circle, rgba(30, 86, 200, .7), transparent 70%);
}

#ab-hero .ab-hero-net {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .6;
    background-image: radial-gradient(rgba(229, 237, 251, .2) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 0%, transparent 72%);
    mask-image: radial-gradient(80% 70% at 50% 50%, #000 0%, transparent 72%);
    pointer-events: none;
}

#ab-hero .ab-hero-arcs {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    stroke: rgba(229, 237, 251, .26);
    stroke-width: 1;
    pointer-events: none;
}

#ab-hero .ab-hero-arcs circle:not([stroke-dasharray]) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ab-arc-loop 7s cubic-bezier(.45, 0, .25, 1) .2s infinite;
}

#ab-hero .ab-hero-arcs circle:nth-of-type(2) {
    animation-delay: .34s;
}

#ab-hero .ab-hero-arcs circle:nth-of-type(4) {
    animation-delay: .48s;
}

#ab-hero .ab-hero-arcs circle[stroke-dasharray] {
    opacity: 0;
    animation: ab-arc-fade 1.1s ease .95s forwards,
        ab-arc-march 5s linear infinite;
}

#ab-hero .ab-hero-arcs circle:nth-of-type(5) {
    animation-direction: normal, reverse;
}

@keyframes ab-arc-loop {
    0% {
        stroke-dashoffset: 1;
    }

    40% {
        stroke-dashoffset: 0;
    }

    60% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1;
    }
}

@keyframes ab-arc-march {
    to {
        stroke-dashoffset: -90;
    }
}

@keyframes ab-arc-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ab-arc-fade {
    to {
        opacity: 1;
    }
}

#ab-hero .ab-hero-in {
    position: relative;
    z-index: 2;
    width: 100%;
    width: 500px;
    border-radius: 50%;
}

#ab-hero .ab-kick {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 clamp(18px, 2.2vw, 26px);
    padding: 7px 16px 7px 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--bn-chip);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1;
}

#ab-hero .ab-kick::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bn-blue-2);
    box-shadow: 0 0 0 4px rgba(59, 123, 255, .25);
}

#ab-hero h1 {
    color: #fff;
    letter-spacing: -.025em;
    font-family: "Red Hat Display", sans-serif;
    font-size: clamp(26px, 3.4vw, 52px);
    line-height: 1;
    font-weight: 400;
    padding: 0 0 20px;
}

#ab-hero h1 .w:last-of-type .i {
    color: var(--bn-accent);
}

#ab-hero .ab-crumb {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 0px;
    padding: 6px 6px 6px 8px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -24px rgba(4, 12, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

#ab-hero .ab-crumb a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    color: var(--bn-chip);
    transition: color .3s var(--ease), background .3s var(--ease);
}

#ab-hero .ab-crumb a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

#ab-hero .ab-crumb .ab-crumb-ico {
    width: 18px;
    height: 18px;
    opacity: .85;
    transition: transform .35s var(--ease), opacity .3s var(--ease);
}

#ab-hero .ab-crumb a:hover .ab-crumb-ico {
    opacity: 1;
    transform: translateY(-1px) scale(1.06);
}

/* the label gets a slide-in underline on hover, drawn from the left */
#ab-hero .ab-crumb a span {
    position: relative;
}

#ab-hero .ab-crumb a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

#ab-hero .ab-crumb a:hover span::after {
    transform: scaleX(1);
}

#ab-hero .ab-crumb .ab-crumb-sep {
    width: 12px;
    height: 12px;
    opacity: .45;
    flex: none;
}

#ab-hero .ab-crumb [aria-current] {
    position: relative;
    overflow: hidden;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-weight: 600;
    /* box-shadow: 0 8px 18px -8px #3b7bffb0, inset 0 1px 0 rgba(255, 255, 255, .3); */
}

/* a slow sheen that sweeps across the current-page chip */
#ab-hero .ab-crumb [aria-current]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg);
    animation: ab-crumb-sheen 4.5s var(--ease) 3s infinite;
}

@keyframes ab-crumb-sheen {
    0% {
        left: -60%;
    }

    55%,
    100% {
        left: 130%;
    }
}

/* The eyebrow and breadcrumb rise in around the title, which the
   loader timeline in assets/js/script.js drives (its panes clear at
   ~1.55s and the title words start at ~1.9s). Plain CSS delays are
   enough here because the banner is hidden behind the panes until
   then. animation-fill-mode: both leaves both elements visible when
   the animation finishes, and the html.js guard means a JS-less
   page renders them in place with no animation at all. */
html.js #ab-hero .ab-kick,
html.js #ab-hero .ab-crumb {
    opacity: 0;
    transform: translateY(14px);
    animation: ab-rise .9s var(--ease) both;
}

html.js #ab-hero .ab-kick {
    animation-delay: 1.85s;
}

html.js #ab-hero .ab-crumb {
    animation-delay: 2.35s;
}

@keyframes ab-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* --- wave that hands the banner over to the page below ---
   Three crests: two tinted ones for depth and a solid one in the
   page's own background colour, so the curve reads as the page
   rising into the banner rather than a shape sitting on top. The
   tints are brand blue and sky rather than plain white — white over
   navy turned the whole foot of the banner grey. The crests drift
   sideways at different speeds, which gives the edge a slow swell
   without moving the type above it.

   The height matters as much as the path data: preserveAspectRatio
   is "none", so the 1440x120 viewBox is squashed into this box and
   a short box flattens the crests into near-straight lines no
   matter how much amplitude the paths carry. At this height the
   crests rise roughly a sixth of their own half-period, which is
   what makes them read as curves. If you shrink the height, raise
   #ab-hero's bottom padding budget with it. */
#ab-hero .ab-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    width: 100%;
    height: clamp(80px, 11vw, 168px);
    display: block;
    pointer-events: none;
}

#ab-hero .ab-hero-wave path {
    transform-origin: center bottom;
}

/* fine dot field laid over the wave's white crest, matching the
   #nw-story backdrop below (same colour + 26px grid). It sits above
   the wave but below the hero content, and fades out toward the top
   so it only reads over the white part of the hand-off, never over
   the blue crests. This removes the flat white gap between the wave
   and where the section's own dots begin. */
#ab-hero .ab-hero-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    height: clamp(86px, 11vw, 172px);
    pointer-events: none;
    background-image: radial-gradient(rgba(59, 111, 212, .20) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 34%, transparent 86%);
    mask-image: linear-gradient(0deg, #000 0%, #000 34%, transparent 86%);
}

#ab-hero .ab-hero-wave .w1 {
    fill: rgba(59, 123, 255, .3);
    animation: ab-wave-a 15s ease-in-out infinite alternate;
}

#ab-hero .ab-hero-wave .w2 {
    fill: rgba(229, 237, 251, .45);
    animation: ab-wave-b 11s ease-in-out infinite alternate;
}

#ab-hero .ab-hero-wave .w3 {
    fill: #fff;
    animation: ab-wave-a 9s ease-in-out infinite alternate-reverse;
}

@keyframes ab-wave-a {
    from {
        transform: translate3d(-2.5%, 0, 0) scaleY(1);
    }

    to {
        transform: translate3d(2.5%, 0, 0) scaleY(1.06);
    }
}

@keyframes ab-wave-b {
    from {
        transform: translate3d(2%, 0, 0) scaleY(1.04);
    }

    to {
        transform: translate3d(-2%, 0, 0) scaleY(.97);
    }
}

@media (max-width: 760px) {
    #ab-hero {
        min-height: 330px;
        height: auto;
        padding: 116px var(--pad) 82px;
    }

    #ab-hero .ab-hero-bg img {
        object-position: 50% 45%;
    }

    #ab-hero .ab-hero-net {
        background-size: 20px 20px;
    }

    #ab-hero h1 {
        font-size: clamp(36px, 10.5vw, 60px);
    }
}

@media (max-width: 430px) {
    #ab-hero {
        padding-top: 104px;
        /* still has to clear the wave, which bottoms out at 80px */
        padding-bottom: 108px;
    }

    #ab-hero .ab-kick {
        font-size: 10.5px;
        letter-spacing: .13em;
    }

    #ab-hero .ab-crumb {
        gap: 4px;
        padding: 5px 5px 5px 6px;
        font-size: 12px;
    }

    #ab-hero .ab-crumb a {
        padding: 4px 10px;
        gap: 6px;
    }

    #ab-hero .ab-crumb .ab-crumb-ico {
        width: 14px;
        height: 14px;
    }

    #ab-hero .ab-crumb [aria-current] {
        padding: 5px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #ab-hero .ab-hero-bg img {
        animation: none;
    }

    #ab-hero .ab-hero-arcs circle {
        animation: none !important;
        stroke-dashoffset: 0;
        opacity: 1;
    }

    #ab-hero .ab-hero-wave path {
        animation: none !important;
    }

    html.js #ab-hero .ab-kick,
    html.js #ab-hero .ab-crumb {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    #ab-hero .ab-crumb [aria-current]::after {
        animation: none !important;
        display: none;
    }
}

#ab-hero {
    place-content: center start;
    justify-items: start;
    text-align: left;
    padding-left: max(var(--pad), calc((100vw - 1400px) / 2));
    padding-right: var(--pad);
}

#ab-hero .ab-hero-in {
    width: 100%;
    max-width: 560px;
    border-radius: 0;
}

#ab-hero h1 {
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 1.04;
    padding: 0 0 24px;
    white-space: nowrap;
}

#ab-hero .ab-crumb {
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* the photo starts at 30% and fades in over a long ramp, so it grows
   out of the navy instead of starting at a hard 50% edge */
#ab-hero .ab-hero-bg,
#ab-hero::before {
    left: 0%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 14%, rgba(0, 0, 0, .65) 32%, #000 55%);
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .25) 14%, rgba(0, 0, 0, .65) 46%, #000 72%);
}

#ab-hero .ab-hero-bg img {
    object-position: 68% 50%;
}

/* breadcrumb: pinned bottom-left, just above the wave */
#ab-hero .ab-hero-in {
    position: static;
}

#ab-hero .ab-crumb {
    position: absolute;
    z-index: 3;
    left: max(var(--pad), calc((100vw - 1240px) / 2));
    bottom: calc(clamp(80px, 11vw, 168px) * .62 + 18px);
    max-width: calc(100% - 2 * var(--pad));
}

/* wave: left and right positions swapped */
#ab-hero .ab-hero-wave {
    transform: scaleX(-1);
}

@media (max-width: 760px) {
    #ab-hero {
        padding-left: var(--pad);
    }

    #ab-hero .ab-hero-in {
        max-width: 100%;
    }

    #ab-hero .ab-crumb {
        flex-wrap: wrap;
    }

    #ab-hero .ab-crumb {
        left: var(--pad);
        bottom: 96px;
    }

    /* no room for two columns: the photo sits behind the text, dimmed */
    #ab-hero .ab-hero-bg {
        left: 0;
        opacity: .45;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #ab-hero::before {
        left: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* no wave: the banner ends in a clean edge, breadcrumb sits at the bottom */
#ab-hero .ab-hero-wave,
#ab-hero .ab-hero-floor {
    display: none;
}

#ab-hero {
    height: min(460px, 60svh);
    padding-top: 110px;
    padding-bottom: 90px;
    border-radius: 0px 0px 30px 0px;
    /* margin: 10px; */
}

#ab-hero .ab-crumb {
    bottom: 30px;
}

@media (max-width: 760px) {
    #ab-hero {
        padding-top: 104px;
        padding-bottom: 96px;
    }

    #ab-hero .ab-crumb {
        bottom: 26px;
    }
}

#ab-hero .ab-crumb {
    left: 0;
    bottom: 0;
    max-width: none;
    gap: 4px;
    padding: 16px 30px 14px max(var(--pad), calc((100vw - 1400px) / 2));
    border: 0;
    border-radius: 0 30px 0 0;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: #000;
}

#ab-hero .ab-crumb::before {
    content: "";
    position: absolute;
    left: 0%;
    top: -30px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    background: radial-gradient(circle at 100% 0, transparent 29.5px, #fff 30px);
}

#ab-hero .ab-crumb::after {
    content: "";
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    background: radial-gradient(circle at 100% 0, transparent 29.5px, #fff 30px);
}

#ab-hero .ab-crumb a {
    color: #000;
}

#ab-hero .ab-crumb a:hover {
    background: rgba(43, 80, 136, .1);
    color: #2b5088;
}

#ab-hero .ab-crumb .ab-crumb-sep {
    color: #000;
    opacity: .45;
}

#ab-hero .ab-crumb [aria-current] {
    background: #2b5088;
    color: #fff;
}

@media (max-width: 760px) {
    #ab-hero .ab-crumb {
        left: 0;
        bottom: 0;
        padding: 14px 22px 12px var(--pad);
    }
}

/* --- banner heading + entrance animation (plays after the loader clears) ---
   Timeline (the loader panes start clearing at ~1.55s):
   1.80s photo wipes in from the right  ->  1.90s title words rise (script.js)
   2.60s accent bar draws under the title  ->  2.40s breadcrumb tab slides up,
   its items follow one by one. */
#ab-hero h1 {
    position: relative;
    font-size: clamp(40px, 5.2vw, 76px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.035em;
    padding: 0 0 20px;
}

#ab-hero h1::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 76px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2f528a, #fff);
    transform-origin: left center;
}

html.js #ab-hero h1::after {
    transform: scaleX(0);
    animation: ab-bar-in .9s cubic-bezier(.2, .85, .25, 1) 2.6s both;
}

@keyframes ab-bar-in {
    to {
        transform: scaleX(1);
    }
}

html.js #ab-hero .ab-hero-bg,
html.js #ab-hero::before {
    animation: ab-photo-in 1.7s cubic-bezier(.2, .8, .2, 1) 1.8s both;
}

@keyframes ab-photo-in {
    from {
        clip-path: inset(0 0 0 100%);
        transform: translateX(5%) scale(1.08);
    }

    to {
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

html.js #ab-hero .ab-crumb {
    opacity: 1;
    transform: translateY(101%);
    animation: ab-notch-up .9s cubic-bezier(.2, .85, .25, 1) 2.4s both;
}

@keyframes ab-notch-up {
    to {
        transform: translateY(0);
    }
}

html.js #ab-hero .ab-crumb>* {
    opacity: 0;
    transform: translateY(8px);
    animation: ab-rise .6s var(--ease) both;
}

html.js #ab-hero .ab-crumb> :nth-child(1) {
    animation-delay: 3.05s;
}

html.js #ab-hero .ab-crumb> :nth-child(2) {
    animation-delay: 3.13s;
}

html.js #ab-hero .ab-crumb> :nth-child(3) {
    animation-delay: 3.21s;
}

html.js #ab-hero .ab-crumb> :nth-child(4) {
    animation-delay: 3.29s;
}

html.js #ab-hero .ab-crumb> :nth-child(5) {
    animation-delay: 3.37s;
}

@media (prefers-reduced-motion: reduce) {

    html.js #ab-hero h1::after,
    html.js #ab-hero .ab-hero-bg,
    html.js #ab-hero::before,
    html.js #ab-hero .ab-crumb,
    html.js #ab-hero .ab-crumb>* {
        animation: none !important;
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}

/* breadcrumb tab: round the top-left corner too, so both top corners curve */
#ab-hero .ab-crumb {
    border-radius: 0 30px 0 0;
}

.ct-sec {
    --ct-blue: var(--blue);
    --ct-navy: var(--blue-d);
    --ct-line: #e3e9f4;
    position: relative;
    isolation: isolate;
    padding: clamp(40px, 6vh, 80px) var(--pad) clamp(70px, 10vh, 130px);
    background: #fff;
    color: var(--ink);
    font-family: var(--fb);
}

.ct-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-image: radial-gradient(rgba(47, 82, 138, .16) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.ct-aur {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.ct-aur.a1 {
    width: 520px;
    height: 520px;
    top: -200px;
    right: -140px;
    background: radial-gradient(circle, rgba(47, 82, 138, .22), transparent 70%);
}

.ct-aur.a2 {
    width: 460px;
    height: 460px;
    top: 380px;
    left: -180px;
    background: radial-gradient(circle, rgba(47, 82, 138, .16), transparent 70%);
}

.ct-wrap {
    max-width: 1600px;
    margin: 0 auto;
}

.ct-head {
    text-align: center;
    max-width: 760px;
    margin: 0 0 20px;
    text-align: left;
}

/* section label: same "kick" style as the home page (index.html),
   a hand-drawn line that draws itself in, then the uppercase label */
.ct-head .kick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fd);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue);
    line-height: 1;
}

.ct-head .kick svg {
    flex: 0 0 auto;
}

/* style.css only auto-draws .kick lines on the home page. Here a
   small observer adds .line-drawn (the style.css rule draws it);
   without JS the line is shown already drawn. */
html:not(.js) .ct-head .kick .scroll-draw-line path {
    stroke-dashoffset: 0;
}

.ct-head h2 {
    margin: 18px 0 0;
    font-family: var(--fd);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
    font-size: clamp(28px, 3.6vw, 46px);
}

.ct-head h2 em {
    font-style: normal;
    color: var(--ct-blue);
}

.ct-head p {
    margin: 16px auto 0;
    color: #5f6b7a;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
}

/* email row inside the offices panel */
.ct-mail {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .3s, border-color .3s, transform .35s var(--ease);
}

.ct-mail:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-3px);
}

.ct-mail-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--ct-navy);
}

.ct-mail-ic svg {
    width: 22px;
    height: 22px;
}

.ct-mail-tx {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ct-mail small {
    color: #cfe0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ct-mail b {
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* form + offices */
.ct-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--gap);
    align-items: stretch;
}

.ct-form,
.ct-side {
    border-radius: 26px;
    padding: clamp(24px, 3vw, 40px);
}

.ct-form {
    border: 1px solid var(--ct-line);
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(31, 60, 104, .4);
}

.ct-form h3,
.ct-side h3 {
    margin: 0;
    font-family: var(--fd);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.ct-sub {
    margin: 6px 0 22px;
    color: #6b7686;
    font-size: 14px;
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-f {
    margin-bottom: 16px;
}

.ct-f label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #2a3442;
}

.ct-f input,
.ct-f select,
.ct-f textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--ct-line);
    border-radius: 14px;
    background: #f7f9fd;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.ct-f textarea {
    resize: vertical;
    min-height: 130px;
}

.ct-f input:focus,
.ct-f select:focus,
.ct-f textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--ct-blue);
    box-shadow: 0 0 0 4px rgba(47, 82, 138, .14);
}

.ct-f .bad {
    border-color: #d64545;
    background: #fff7f7;
}

.ct-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 28px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(120deg, var(--ct-navy), var(--ct-blue));
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 18px 34px -16px rgba(47, 82, 138, .7);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.ct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px -16px rgba(47, 82, 138, .8);
}

.ct-btn:focus-visible,
.ct-tabs button:focus-visible,
.ct-dir:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

.ct-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .35s var(--ease);
}

.ct-btn:hover svg {
    transform: translateX(4px);
}

.ct-status {
    margin: 14px 0 0;
    min-height: 1.4em;
    font-size: 14px;
    color: #2a7a4b;
}

.ct-status.err {
    color: #d64545;
}

/* offices panel */
.ct-side {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(90% 60% at 100% 0%, rgba(47, 82, 138, .5), transparent 70%), linear-gradient(160deg, #2f528a, var(--blue));
}

.ct-side::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(229, 237, 251, .22);
    box-shadow: 0 0 0 40px rgba(229, 237, 251, .04), 0 0 0 80px rgba(229, 237, 251, .03);
    pointer-events: none;
}

.ct-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.ct-tabs button {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    color: #E3EBFA;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}

.ct-tabs button:hover {
    background: rgba(255, 255, 255, .16);
}

.ct-tabs button.on {
    background: #fff;
    color: var(--ct-navy);
    border-color: #fff;
}

.ct-off {
    display: none;
    position: relative;
    z-index: 1;
}

.ct-off.on {
    display: block;
    animation: ct-fade .5s var(--ease);
}

@keyframes ct-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.ct-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    color: #cfe0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ct-off b {
    display: block;
    font-family: var(--fd);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ct-off address {
    font-style: normal;
    line-height: 1.65;
    color: #dbe6fb;
    margin-bottom: 14px;
}

.ct-off a {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.ct-hours {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px;
    color: #cfe0ff;
}

.ct-hours i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .22);
}

/* map */
.ct-map {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    height: clamp(240px, 24vw, 320px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    box-shadow: 0 24px 50px -30px rgba(4, 12, 30, .8);
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(.95) contrast(1.02);
}

.ct-dir {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 99px;
    background: #fff;
    color: var(--ct-navy);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 14px 30px -12px rgba(31, 60, 104, .5);
    transition: transform .3s var(--ease);
}

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

.ct-dir svg {
    width: 16px;
    height: 16px;
}

/* reveal on scroll */
html.js .ct-rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

html.js .ct-rv.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1000px) {

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

@media (max-width: 560px) {

    .ct-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    html.js .ct-rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ct-off.on {
        animation: none;
    }
}

.ct-w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.ct-w>span {
    display: inline-block;
    will-change: transform;
}

.ct-f[hidden] {
    display: none;
}
