:root {
    --heading: #1b2a6b;
    --blue: #3a5bd9;
    --text: #6b7394;
    --muted: #9aa1b9;
    --line: #e9ebf5;
    --page: #fbfbfe;
    --poly: url("../images/index/poly-section-bg.webp");
    --purple-a: #5e68ff;
    --purple-b: #ceb7ff;
    --purple-grad:
        linear-gradient(
            160deg,
            rgba(206, 183, 255, 1) 0%,
            rgba(206, 183, 255, 0) 100%
        ),
        linear-gradient(135deg, #5e68ff 0%, #ffffff 100%);
    --band-grad: linear-gradient(
        90deg,
        rgba(94, 104, 255, 1) 0%,
        rgba(120, 128, 255, 1) 38%,
        rgba(155, 162, 255, 1) 62%,
        rgba(190, 195, 255, 1) 82%,
        rgba(220, 224, 255, 1) 100%
    );
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--heading);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

svg,
img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
textarea,
button {
    font-family: inherit;
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.band-inner {
    width: min(1106px, 100%);
    margin-inline: auto;
}

.hero picture,
.logo picture,
.award-logo picture,
.practice picture,
.foot-brand picture {
    display: contents;
}

/* ---------- Navigation ---------- */
header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
}

header.is-stuck {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(94, 104, 255, 0.12);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 90px;
    transition: height 0.35s ease;
}

header.is-stuck .nav {
    height: 68px;
}

/* Anchor targets need to clear the fixed header */
section[id],
.nav-anchor {
    scroll-margin-top: 96px;
}

.nav-anchor {
    display: block;
    height: 0;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
    transition: height 0.35s ease;
}

header.is-stuck .logo-img {
    height: 48px;
}

header .logo-img {
    filter: brightness(1.18) contrast(1.05);
}

header .logo {
    position: relative;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

header .logo:hover,
header .logo:focus-visible {
    opacity: 0.9;
    transform: translateY(-1px);
}

header .logo::before {
    content: "";
    position: absolute;
    left: -1%;
    top: 100%;
    z-index: -1;
    width: 260px;
    height: 345px;
    transform: translate(-21%, -45%) scale(1.08);
    background: url("../images/index/ellipse-678.webp") center / contain
        no-repeat;
    filter: blur(12px);
    opacity: 0.92;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* The glow blob fights the solid bar once the header is pinned */
header.is-stuck .logo::before {
    opacity: 0;
}

.foot-brand .logo-img {
    height: 58px;
}

.menu {
    display: flex;
    gap: 32px;
    list-style: none;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 1.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a:hover,
.menu a:focus-visible {
    color: #fff;
}

.menu a.active {
    color: #fff;
    font-weight: 700;
}

.menu a.active::after {
    transform: scaleX(1);
}

.menu a svg {
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    opacity: 0.75;
}

.menu a:hover svg,
.menu a:focus-visible svg {
    transform: translateY(2px);
    opacity: 1;
}

.menu-item-drop {
    position: relative;
}

.menu-item-drop > a {
    padding-right: 2px;
}

.menu-item-drop:hover > a svg,
.menu-item-drop:focus-within > a svg {
    transform: rotate(180deg) translateY(-1px);
    opacity: 1;
}

.menu-drop {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    z-index: 70;
    min-width: 168px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: 1px solid #e9ebf5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(16, 22, 80, 0.14);
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.menu-item-drop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.menu-item-drop:hover .menu-drop,
.menu-item-drop:focus-within .menu-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

header .menu-drop a,
header .menu-drop a:hover,
header .menu-drop a:focus-visible,
header .menu-drop a.active,
header.is-stuck .menu-drop a,
header.is-stuck .menu-drop a:hover,
header.is-stuck .menu-drop a:focus-visible,
header.is-stuck .menu-drop a.active {
    display: block;
    width: 100%;
    padding: 9px 16px;
    color: #000;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
}

header .menu-drop a::after {
    display: none;
}

header .menu-drop a:hover,
header .menu-drop a:focus-visible,
header .menu-drop a.active,
header.is-stuck .menu-drop a:hover,
header.is-stuck .menu-drop a:focus-visible,
header.is-stuck .menu-drop a.active {
    color: #000;
    background: #f4f5fa;
}

header.is-stuck .menu-drop {
    border-color: #e9ebf5;
    background: #fff;
    box-shadow: 0 16px 36px rgba(16, 22, 80, 0.14);
}

.mobile-sub {
    padding: 0 0 6px 12px;
}

.mobile-sub a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

header.is-stuck .mobile-sub a {
    color: rgba(27, 42, 107, 0.72);
}

.practice[id] {
    scroll-margin-top: 110px;
}

.burger {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.burger:hover,
.burger:focus-visible {
    opacity: 0.82;
    transform: scale(1.04);
}

.mobile {
    display: none;
    background: rgba(28, 23, 110, 0.97);
    padding: 8px 24px 18px;
}

.mobile a {
    display: block;
    color: #fff;
    font-size: 14px;
    padding: 9px 0;
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile a:hover,
.mobile a:focus-visible {
    color: rgba(255, 255, 255, 0.82);
    padding-left: 6px;
}

.mobile a.active {
    font-weight: 700;
    padding-left: 10px;
    box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.9);
}

/* Pinned header sits on white, so the nav flips to the page palette */
header.is-stuck .logo-img {
    filter: none;
}

header.is-stuck .menu a {
    color: rgba(27, 42, 107, 0.78);
}

header.is-stuck .menu a::after {
    background: var(--purple-a);
}

header.is-stuck .menu a:hover {
    color: var(--purple-a);
}

header.is-stuck .menu a.active {
    color: black;
}

header.is-stuck .burger {
    color: var(--heading);
}

header.is-stuck .mobile {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
}

header.is-stuck .mobile a {
    color: var(--heading);
}

header.is-stuck .mobile a:hover,
header.is-stuck .mobile a:focus-visible {
    color: var(--purple-a);
}

header.is-stuck .mobile a.active {
    color: var(--purple-a);
    box-shadow: inset 2px 0 0 var(--purple-a);
}

.poly-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--poly);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.85;
    mix-blend-mode: soft-light;
    filter: contrast(1.7) brightness(3.2);
}

.hero .poly-overlay {
    z-index: 1;
    opacity: 0.22;
    mix-blend-mode: soft-light;
    background-position: center;
}

.practices .poly-overlay,
.newsroom .poly-overlay,
.awards .poly-overlay,
.gradient-band-poly {
    background-image: url("../images/index/image-8.webp");
    background-position: revert;
    background-size: cover;
    opacity: revert-rule;
    mix-blend-mode: unset;
    filter: none;
}

.newsroom .poly-overlay {
    z-index: 0;
}

.global .poly-overlay {
    background-image: url("../images/index/image-8.webp");
    background-position: center;
    background-size: cover;
    opacity: 0.14;
    mix-blend-mode: multiply;
    filter: none;
}

.contact .poly-overlay {
    background-image: url("../images/index/image-8.webp");
    background-position: revert;
    background-size: cover;
    opacity: revert-rule;
    mix-blend-mode: unset;
    filter: none;
}

footer .poly-overlay {
    display: none;
}

.gradient-band {
    position: relative;
    overflow: hidden;
    background: var(--band-grad);
}

.practices,
.newsroom,
.awards,
.global,
.contact,
footer {
    position: relative;
    overflow: hidden;
}

.gradient-band .practices,
.gradient-band .newsroom,
.gradient-band .awards {
    background: transparent;
}

.gradient-band > *:not(.poly-overlay),
.practices > *:not(.poly-overlay),
.newsroom > *:not(.poly-overlay),
.awards > *:not(.poly-overlay),
.global > *:not(.poly-overlay),
.contact > *:not(.poly-overlay),
footer > *:not(.poly-overlay) {
    position: relative;
    z-index: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: #252a91;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: auto;
    width: 70%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
}

.hero-corner {
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: min(29vw, 380px);
    height: auto;
    pointer-events: none;
}

.hero-corner.left {
    left: 0;
    transform: scaleX(-1);
}

.hero-corner.right {
    right: 0;
}

/* Keeps the corners black once the artwork is stretched to the viewport */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 95% 75% at 50% 18%,
        transparent 45%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-orbs {
    position: contents;
}

.orb {
    position: absolute;
    z-index: 4;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    color: #eef1ff;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.04),
        0 0 28px rgba(170, 175, 255, 0.35);
    animation: bob 5s ease-in-out infinite;
}

.orb.cloud {
    top: 19%;
    left: 50%;
}

.orb.spark {
    top: 33%;
    left: 30%;
    animation-delay: 1.5s;
}

.orb.tune {
    top: 33%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes bob {
    50% {
        transform: translateY(-10px);
    }
}

.hero-copy {
    position: static;
    z-index: 5;
    text-align: center;
    padding: 0px 0px;
    max-width: 920px;
    margin-top: 30vh;
}

.hero h1,
.hero p,
.hero .ctas {
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: clamp(36px, 6.4vw, 68px);
    font-weight: 700;
    color: #fff;
    line-height: 1.14;
    letter-spacing: -0.028em;
}

.hero h1 span {
    display: block;
    color: #c5c9b8;
    font-weight: 700;
}

.hero h1 .hero-kicker {
    color: #fff;
}

.hero p {
    margin: 20px auto 0;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    line-height: 1.55;
}

.ctas {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-fill {
    color: #fff;
    font-size: 13px;
    background: linear-gradient(180deg, #5f4fd4 0%, #4a3db8 100%);
    border-color: rgba(210, 202, 255, 0.65);
    box-shadow:
        0 8px 22px rgba(40, 28, 130, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-fill:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-ghost {
    color: #1a1f4a;
    font-size: 12.5px;
    background: linear-gradient(180deg, #ffffff 0%, #e8eaf5 100%);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(15, 10, 60, 0.2);
}

.btn-ghost:hover {
    transform: translateY(-1px);
}

/* ---------- Sections ---------- */
section {
    padding: 76px 0;
}

h2.sec {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    position: relative;
    opacity: 0.4;
    transform: translateY(20px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        padding-left 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 0.75s ease;
}

h2.sec::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        #5e68ff 0%,
        rgba(94, 104, 255, 0.25) 100%
    );
    opacity: 0;
    transition:
        height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.75s ease;
}

h2.sec.is-visible {
    opacity: 1;
    transform: translateY(0);
    padding-left: 16px;
}

h2.sec.is-visible::before {
    height: 30px;
    opacity: 1;
}

h2.sec::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: 10px;
    margin-left: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5e68ff 0%, rgba(94, 104, 255, 0) 100%);
    transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

h2.sec.is-visible::after {
    width: 64px;
}

.practices h2.sec::before,
.newsroom h2.sec::before,
.awards h2.sec::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.practices h2.sec::after,
.newsroom h2.sec::after,
.awards h2.sec::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.practices h2.sec.is-visible,
.newsroom h2.sec.is-visible,
.awards h2.sec.is-visible {
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.global .kicker,
.global .kicker-line,
.global h2,
.contact-card h2 {
    opacity: 0.4;
    transform: translateY(20px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.global .kicker.is-visible,
.global .kicker-line.is-visible,
.global h2.is-visible,
.contact-card h2.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.global .kicker-line.is-visible {
    transition-delay: 0.08s;
}

.global h2.is-visible {
    transition-delay: 0.14s;
}

.global h2,
.contact-card h2 {
    position: relative;
}

.global h2::after,
.contact-card h2::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5e68ff 0%, rgba(94, 104, 255, 0) 100%);
    transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.global h2::after {
    margin-left: auto;
    margin-right: auto;
}

.global h2.is-visible::after,
.contact-card h2.is-visible::after {
    width: 64px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.link:hover {
    gap: 9px;
}

/* ---------- Core practices ---------- */
.practices {
    background: transparent;
}

.practices h2.sec {
    color: white;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 325px;
    aspect-ratio: -1 / -4;
    padding: 34px 30px 32px;
    border-radius: 18px;
    border-left: 1px solid #ffffff65;
    box-shadow: 0 2px 10px rgb(0 0 0 / 21%);
    background: linear-gradient(
        145deg,
        #c9c9c935 0%,
        #ffffff37 42%,
        #ffffff44 100%
    );
}

/*
      Artwork ships as opaque PNGs with an off-white backdrop and a thin dark
      frame. brightness() lifts that backdrop to pure white so multiply drops it,
      clip-path trims the frame, and the fixed box keeps all three the same size.
    */
.practice-art {
    position: absolute;
    top: 0;
    right: -29px;
    width: 100%;
    height: 101%;
    object-fit: cover;
    object-position: bottom;
    clip-path: inset(2%);
    filter: brightness(1.1) saturate(1.08);
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: translateY(0);
    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

.practice:hover .practice-art {
    animation: practiceArtFloat 2.8s ease-in-out infinite;
}

@keyframes practiceArtFloat {
    0%,
    100% {
        transform: translateY(0);
        filter: brightness(1.1) saturate(1.08);
    }

    50% {
        transform: translateY(-10px);
        filter: brightness(1.13) saturate(1.12);
    }
}

.practice-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f1ff 0%, #e9e5fa 100%);
    border: 1.5px solid rgba(94, 104, 255, 0.2);
    display: grid;
    place-items: center;
    color: #3b3e9a;
    box-shadow: 0 4px 16px rgba(94, 104, 255, 0.16);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.practice:hover .practice-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(94, 104, 255, 0.24);
}

.practice-icon::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(94, 104, 255, 0.28) 0%,
        transparent 68%
    );
    opacity: 0.35;
    z-index: -1;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.practice:hover .practice-icon::before {
    opacity: 0.55;
    transform: scale(1.05);
}

.practice-icon svg {
    transition: transform 0.35s ease;
}

.practice:hover .practice-icon svg {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    h2.sec,
    .global .kicker,
    .global .kicker-line,
    .global h2,
    .contact-card h2 {
        opacity: 1;
        transform: none;
        transition: none;
        padding-left: 16px;
    }

    h2.sec::before,
    h2.sec::after,
    .global h2::after,
    .contact-card h2::after {
        width: 64px;
        height: 30px;
        opacity: 1;
        transition: none;
    }

    .practice-art,
    .practice-icon,
    .practice-icon::before,
    .practice-icon svg {
        animation: none !important;
        transition: none;
    }
}

.practice h3 {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2f2a7a;
    margin-bottom: 8px;
}

.practice p {
    position: relative;
    z-index: 1;
    max-width: 200px;
    font-size: 15px;
    line-height: 1.55;
    color: #4a4570;
    margin-bottom: 0;
}

.practice .link {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5e68ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        gap 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.practice .link:hover {
    gap: 10px;
    color: #4a52e0;
    transform: translateX(2px);
}

.practice .link span {
    font-size: 16px;
    line-height: 1;
}

.story:hover {
    box-shadow:
        0 18px 40px rgba(45, 45, 46, 0.28),
        0 8px 18px rgba(33, 36, 67, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ---------- Newsroom ---------- */
.newsroom {
    background: transparent;
    isolation: isolate;
}

.newsroom .wrap {
    position: relative;
    z-index: 2;
}

.newsroom h2.sec {
    color: white;
    position: relative;
    z-index: 3;
}

.rail-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 0 58px 4px;
    width: 100%;
    min-width: 0;
}

.rail-fade-left,
.rail-fade-right {
    position: absolute;
    top: 0;
    width: 72px;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.rail-fade-left {
    left: 0;
    background: linear-gradient(
        270deg,
        transparent 0%,
        rgba(97, 106, 239, 0.55) 100%
    );
}

.rail-fade-right {
    right: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(97, 106, 239, 0.55) 100%
    );
}

.rail-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.94);
    color: #5e68ff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(40, 35, 100, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rail-scroll-btn.rail-scroll-prev {
    left: 10px;
}

.rail-scroll-btn.rail-scroll-next {
    right: 10px;
}

.rail-scroll-btn:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 10px 26px rgba(94, 104, 255, 0.28);
}

.rail-scroll-btn svg {
    width: 18px;
    height: 18px;
}

.rail {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 20px;
    overflow: visible;
    padding: 4px 0;
    cursor: grab;
    position: relative;
    z-index: 3;
    touch-action: pan-y;
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.rail.is-dragging,
.rail.is-jumping {
    cursor: grabbing;
    user-select: none;
    touch-action: none;
    transition: none;
}

.story {
    flex: 0 0 275px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgb(0 0 0 / 21%);
    background: linear-gradient(
        145deg,
        #c9c9c935 0%,
        #ffffff37 42%,
        #ffffff44 100%
    );
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 3;
}

.thumb {
    height: 186px;
    background: linear-gradient(
        145deg,
        rgba(217, 219, 255, 0.96) 0%,
        rgba(232, 234, 255, 0.92) 55%,
        rgba(206, 183, 255, 0.35) 100%
    );
    overflow: hidden;
    display: block;
}

.story:nth-child(2) .thumb {
    background: linear-gradient(
        145deg,
        rgba(228, 230, 255, 0.96) 0%,
        rgba(210, 214, 255, 0.9) 55%,
        rgba(94, 104, 255, 0.18) 100%
    );
}

.story:nth-child(3) .thumb {
    background: linear-gradient(
        145deg,
        rgba(236, 238, 255, 0.96) 0%,
        rgba(217, 219, 255, 0.9) 55%,
        rgba(123, 92, 255, 0.16) 100%
    );
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.story-body {
    padding: 8px 12px 13px;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8px;
    margin-bottom: 9px;
}

.tag {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.date {
    color: #1e1e1e;
}

.story h3 {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 7px;
}

.story p {
    font-size: 11.5px;
    color: #444040;
}

.story .link {
    font-size: 11.5px;
    margin-top: 12px;
}

/* ---------- Awards ---------- */
.awards {
    background: transparent;
}

.awards h2.sec {
    color: white;
}

.award-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 22px;
}

.award-board .award:nth-child(6) {
    grid-column: 2;
}

.award-board .award:nth-child(7) {
    grid-column: 3;
}

.award-board .award:nth-child(8) {
    grid-column: 4;
}

.award {
    background: linear-gradient(
        145deg,
        #c9c9c935 0%,
        #ffffff37 42%,
        #ffffff44 100%
    );
    border-left: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 21%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 213px;
    padding: 28px 16px 24px;
}

.award-logo {
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 118px;
    margin-bottom: 18px;
}

.award img {
    max-height: 130px;
    max-width: 94%;
    object-fit: contain;
}

.award span {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-align: center;
    line-height: 1.35;
}

/* ---------- Global presence ---------- */
.global {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4ff 42%, #eceeff 100%);
    overflow: hidden;
    position: relative;
}

.global::before,
.global::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(94, 104, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: globalRingDrift 14s ease-in-out infinite;
}

.global::before {
    width: min(340px, 42vw);
    height: min(340px, 42vw);
    top: 8%;
    left: -8%;
}

.global::after {
    width: min(420px, 48vw);
    height: min(420px, 48vw);
    bottom: -6%;
    right: -10%;
    animation-delay: -7s;
}

@keyframes globalRingDrift {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateY(-8px);
        opacity: 0.85;
    }
}

.global .wrap {
    position: relative;
    z-index: 1;
}

.map-fluid {
    width: 100%;
    max-width: min(1106px, calc(100% - 48px));
    margin: 40px auto 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.map-fluid::before,
.map-fluid::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(94, 104, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: globalRingDrift 16s ease-in-out infinite;
}

.map-fluid::before {
    width: min(300px, 36vw);
    height: min(300px, 36vw);
    top: 12%;
    left: 3%;
}

.map-fluid::after {
    width: min(260px, 30vw);
    height: min(260px, 30vw);
    bottom: 8%;
    right: 4%;
}

.map-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.map-deco span {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.14;
}

.map-deco .tri-1 {
    top: 18%;
    left: 12%;
    border-width: 0 28px 48px 28px;
    border-color: transparent transparent rgba(94, 104, 255, 0.18) transparent;
    animation: mapDecoFloat 10s ease-in-out infinite;
}

.map-deco .tri-2 {
    bottom: 22%;
    right: 14%;
    border-width: 42px 24px 0 24px;
    border-color: rgba(123, 92, 255, 0.16) transparent transparent transparent;
    animation: mapDecoFloat 10s ease-in-out infinite reverse;
}

@keyframes mapDecoFloat {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.12;
    }

    50% {
        transform: translateY(-6px);
        opacity: 0.2;
    }
}

.global .kicker {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.global .kicker-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -6px auto 18px;
    max-width: 280px;
}

.global .kicker-line::before,
.global .kicker-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(94, 104, 255, 0.35),
        transparent
    );
}

.global .kicker-line span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5e68ff;
    box-shadow: 0 0 0 4px rgba(94, 104, 255, 0.14);
    animation: kickerPulse 3s ease-in-out infinite;
}

@keyframes kickerPulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(94, 104, 255, 0.12);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(94, 104, 255, 0.2);
    }
}

.global h2 {
    font-size: clamp(24px, 3.1vw, 36px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--heading);
}

.global h2 em {
    font-style: normal;
    background: linear-gradient(90deg, #5e68ff 0%, #9b8cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.global .lead {
    margin: 14px auto 0;
    color: var(--text);
    font-size: 14px;
    max-width: 440px;
}

.presence-hubs {
    display: none;
}

.global .wrap .map-fluid {
    max-width: 100%;
}

.map-stage {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    background: linear-gradient(165deg, #f8f9ff 0%, #eceeff 45%, #f4f5ff 100%);
    border-radius: 18px;
    border: 1px solid rgba(94, 104, 255, 0.14);
    box-shadow:
        0 20px 50px rgba(94, 104, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.map-stage::before {
    content: "";
    position: absolute;
    inset: 6% 2% 10%;
    background:
        radial-gradient(
            ellipse 70% 55% at 50% 58%,
            rgba(94, 104, 255, 0.05),
            transparent 70%
        ),
        linear-gradient(90deg, rgba(94, 104, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(94, 104, 255, 0.025) 1px, transparent 1px);
    background-size:
        auto,
        42px 42px,
        42px 42px;
    mask-image: radial-gradient(
        ellipse 85% 72% at 50% 55%,
        #000 15%,
        transparent 78%
    );
    pointer-events: none;
    z-index: 0;
}

.map-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-tilt {
    position: relative;
    width: 100%;
    height: 100%;
}

#globalMapSvg {
    width: 100%;
    height: 100%;
    overflow: visible;
    shape-rendering: geometricPrecision;
    display: block;
}

#globalMapSvg .hub-ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: hubRipple 5s ease-out infinite;
}

#globalMapSvg .hub-ripple.r2 {
    animation-delay: 1.25s;
}

#globalMapSvg .hub-ripple.r3 {
    animation-delay: 2.5s;
}

#globalMapSvg .map-link {
    animation: mapLinkFlow 8s linear infinite;
    opacity: 0.62;
}

@keyframes mapLinkFlow {
    to {
        stroke-dashoffset: -24;
    }
}

#globalMapSvg .marker-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 104, 255, 0.16);
    border-radius: 14px;
    padding: 12px 20px 11px;
    box-shadow:
        0 10px 24px rgba(94, 104, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-align: center;
    white-space: nowrap;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

#globalMapSvg .marker-card strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #3b3e9a;
    line-height: 1.2;
}

#globalMapSvg .marker-card span {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 500;
    color: #6b7394;
    line-height: 1.3;
}

@keyframes hubRipple {
    0% {
        transform: scale(0.5);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #globalMapSvg .hub-ripple,
    #globalMapSvg .map-link {
        animation: none;
    }
}

/* ---------- Contact ---------- */
.contact {
    padding: 72px 0 80px;
    background: linear-gradient(
        244deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(94, 104, 255, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.contact .wrap {
    position: relative;
    z-index: 1;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
    background: transparent;
    padding: 12px 0;
    border-radius: 0;
}

.contact-card h2 {
    color: #fff;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.contact-card .intro {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    max-width: 360px;
    line-height: 1.7;
}

.offices {
    margin-top: 38px;
    display: grid;
    gap: 28px;
}

.office {
    display: flex;
    gap: 18px;
    align-items: center;
    color: #fff;
}

.office-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 6px 16px rgba(40, 35, 110, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #2e3192;
}

.office-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.office-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: none;
}

.office small {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2e3192;
    margin-bottom: 6px;
}

.office p {
    font-size: 14px;
    line-height: 1.65;
    color: #fff;
    font-weight: 500;
}

.office a {
    color: inherit;
    text-decoration: none;
}

.office a:hover {
    text-decoration: underline;
}

.contact-form {
    background: linear-gradient(
        170deg,
        rgba(206, 183, 255, 0.5) 0%,
        rgba(206, 183, 255, 0.4) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 34px 32px 30px;
    box-shadow: 0 24px 50px rgba(45, 36, 110, 0.18);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 247, 255, 0.92);
    padding: 15px 22px;
    font-size: 13px;
    color: var(--heading);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(70, 60, 130, 0.06);
}

.contact-form textarea {
    border-radius: 22px;
    min-height: 128px;
    resize: vertical;
    padding-top: 16px;
}

.contact-form .form-status {
    margin: 0;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.contact-form .form-status.is-ok {
    background: rgba(255, 255, 255, 0.9);
    color: #1b2a6b;
}

.contact-form .form-status.is-bad {
    background: #ffe8e8;
    color: #9b1c1c;
}

.contact-form .g-recaptcha {
    transform-origin: left top;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a7adc4;
}

.contact-form .btn {
    justify-self: center;
    margin-top: 8px;
    min-width: 220px;
    height: 48px;
    padding: 0 40px;
    border-radius: 999px;
    border: 1px solid rgba(30, 20, 90, 0.45);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    background: radial-gradient(
        120% 140% at 50% 35%,
        #7a6dff 0%,
        #5a4fd6 42%,
        #3f2fb0 100%
    );
    box-shadow:
        0 8px 18px rgba(45, 35, 120, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 4px rgba(25, 15, 80, 0.28);
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        0 12px 24px rgba(45, 35, 120, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -2px 4px rgba(25, 15, 80, 0.28);
}

/* ---------- Footer ---------- */
footer {
    background: #fff;
    padding: 64px 0 0;
    border-top: 3px solid #5e68ff;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 40px;
}

.foot-brand .logo-img {
    height: 58px;
}

.foot-brand p {
    margin-top: 18px;
    font-size: 12.5px;
    color: #4a5168;
    max-width: 300px;
    line-height: 1.75;
}

.foot-brand .copy {
    margin-top: 14px;
    font-size: 11.5px;
    color: #8a91a8;
}

footer h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    color: #1b2a6b;
}

footer ul {
    list-style: none;
    display: grid;
    gap: 11px;
}

footer li a {
    font-size: 13px;
    color: #3d4458;
}

footer li a:hover {
    color: var(--blue);
}

.legal {
    border-top: 1px solid #e6e9f2;
    padding: 18px 0 26px;
    display: flex;
    gap: 28px;
    font-size: 12px;
    color: #9aa1b5;
}

.legal a:hover {
    color: var(--heading);
}

footer .iop-social {
    margin-top: 2px;
}

.legal .iop-social {
    margin-left: auto;
}

@media (max-width: 980px) {
    .menu {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 92px 20px 28px;
        box-sizing: border-box;
    }

    .hero-orbs {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 22px;
        margin: 0 0 22px;
        pointer-events: none;
    }

    .orb {
        position: relative;
        top: auto;
        left: auto;
        width: 54px;
        height: 54px;
        margin: 0;
        flex: 0 0 auto;
    }

    .orb.spark,
    .orb.cloud,
    .orb.tune {
        top: auto;
        left: auto;
    }

    .orb.spark {
        order: 1;
    }

    .orb.cloud {
        order: 2;
    }

    .orb.tune {
        order: 3;
    }

    .orb svg {
        width: 22px;
        height: 22px;
    }

    .wrap {
        width: min(1200px, calc(100% - 32px));
    }

    .nav {
        height: 72px;
    }

    .logo-img {
        height: 48px;
    }

    header .logo::before {
        width: 150px;
        height: 200px;
    }

    .hero-bg {
        inset: 0;
        top: 0;
        left: 50%;
        width: 220%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: center top;
        transform: translateX(-50%);
    }

    .hero-copy {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 24rem;
        margin-top: 0;
        padding: 0;
        align-self: center;
    }

    .hero h1 {
        font-size: clamp(26px, 7.4vw, 34px);
        line-height: 1.2;
        letter-spacing: -0.035em;
    }

    .hero h1 .hero-kicker {
        white-space: nowrap;
    }

    .hero h1 span {
        display: block;
    }

    .hero p {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.5;
        max-width: 32ch;
    }

    .hero .ctas {
        margin-top: 22px;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

    .hero .btn {
        width: auto;
        min-width: 200px;
        max-width: 230px;
        height: 44px;
        padding: 0 24px;
        white-space: nowrap;
        font-size: 13px;
    }

    .btn-fill,
    .btn-ghost {
        font-size: 12px;
    }

    section {
        padding: 52px 0;
    }

    h2.sec {
        font-size: 16px;
        margin-bottom: 16px;
    }

    h2.sec.is-visible {
        padding-left: 12px;
    }

    h2.sec.is-visible::before {
        height: 18px;
        width: 2px;
    }

    h2.sec.is-visible::after {
        width: 44px;
        height: 2px;
        margin-top: 7px;
        margin-left: 12px;
    }

    .practices,
    .newsroom,
    .awards {
        padding: 32px 0 28px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .practice {
        min-height: 0;
        aspect-ratio: auto;
        padding: 14px 12px 12px;
        border-radius: 14px;
    }

    .practice-art {
        opacity: 0.22;
        right: -18px;
        width: 52%;
        object-position: right bottom;
    }

    .practice-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .practice-icon svg {
        width: 18px;
        height: 18px;
    }

    .practice h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .practice p {
        font-size: 11.5px;
        line-height: 1.4;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .practice .link {
        font-size: 12px;
        padding-top: 8px;
    }

    .story {
        flex: 0 0 min(62vw, 210px);
        width: min(62vw, 210px);
    }

    .thumb {
        height: 120px;
        padding: 0;
    }

    .story-body {
        padding: 10px 10px 12px;
    }

    .story h3 {
        font-size: 11.5px;
    }

    .story p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .award {
        min-height: 148px;
        padding: 14px 10px 12px;
    }

    .award-logo {
        min-height: 72px;
        margin-bottom: 10px;
    }

    .award img {
        max-height: 72px;
    }

    .award span {
        font-size: 11px;
    }

    .award-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .global {
        padding: 40px 0 36px;
    }

    .global .kicker {
        font-size: 10px;
        letter-spacing: 0.22em;
        margin-bottom: 8px;
    }

    .global .kicker-line {
        margin-bottom: 14px;
        max-width: 160px;
    }

    .global h2 {
        font-size: 22px;
        line-height: 1.28;
        padding: 0;
    }

    .global .lead {
        font-size: 13px;
        max-width: 34ch;
        margin-top: 8px;
        line-height: 1.5;
    }

    .map-fluid {
        max-width: 100%;
        margin-top: 22px;
    }

    .map-stage {
        aspect-ratio: 4 / 3;
        min-height: 320px;
        max-height: none;
        height: auto;
    }

    .map-viewport,
    .map-tilt {
        overflow: visible;
    }

    #globalMapSvg {
        transform: scale(1.48);
        transform-origin: 50% 46%;
    }

    .contact-card h2 {
        font-size: 24px;
    }

    .contact-card .intro,
    .office p {
        font-size: 13px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .rail-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "rail rail"
            "prev next";
        column-gap: 16px;
        row-gap: 14px;
        justify-items: center;
        overflow: hidden;
        padding: 0 6px 4px;
        width: 100%;
        min-width: 0;
    }

    .rail {
        grid-area: rail;
        justify-self: start;
        width: max-content;
        max-width: none;
        gap: 12px;
        padding: 4px 0;
        touch-action: none;
        cursor: grab;
    }

    .rail img {
        -webkit-user-drag: none;
        user-select: none;
        pointer-events: none;
    }

    .rail-scroll-btn {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .rail-scroll-btn:hover {
        transform: scale(1.06);
    }

    .rail-scroll-btn.rail-scroll-prev {
        grid-area: prev;
        justify-self: end;
        left: auto;
    }

    .rail-scroll-btn.rail-scroll-next {
        grid-area: next;
        justify-self: start;
        right: auto;
    }

    .award-board .award:nth-child(6),
    .award-board .award:nth-child(7),
    .award-board .award:nth-child(8) {
        grid-column: auto;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 0;
    }

    .contact {
        padding: 56px 0 64px;
    }

    .contact-form {
        padding: 26px 20px 24px;
    }

    .contact-form .btn {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: clamp(26px, 7.6vw, 32px);
    }

    .hero p {
        font-size: 15px;
        max-width: 32ch;
    }

    .hero-copy {
        max-width: 22.5rem;
        padding: 0;
        margin-top: 0;
    }

    .hero-orbs {
        gap: 20px;
        margin-bottom: 20px;
    }

    .orb {
        width: 52px;
        height: 52px;
        margin: 0;
    }

    .orb svg {
        width: 21px;
        height: 21px;
    }

    .orb.spark,
    .orb.tune {
        left: auto;
    }

    .hero .ctas {
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .hero .btn {
        min-width: 200px;
        height: 44px;
    }

    .hero-corner {
        width: min(38vw, 160px);
        opacity: 0.9;
    }

    h2.sec {
        font-size: 15px;
    }

    .global h2 {
        font-size: 21px;
    }

    .map-stage {
        aspect-ratio: 1 / 1;
        min-height: 340px;
    }

    #globalMapSvg {
        transform: scale(1.62);
        transform-origin: 50% 44%;
    }

    .contact-card h2 {
        font-size: 20px;
    }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    isolation: isolate;
    mix-blend-mode: normal;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(94, 104, 255, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #3b3e9a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 28px rgba(94, 104, 255, 0.22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 12px, 0) scale(0.92);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.scroll-top:hover,
.scroll-top:focus-visible {
    background: #fff;
    color: #5e68ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 14px 32px rgba(94, 104, 255, 0.3);
    outline: none;
}

.scroll-top:hover svg,
.scroll-top:focus-visible svg {
    transform: translateY(-2px);
}

.scroll-top svg {
    transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top,
    .scroll-top svg {
        transition: none;
    }
}
