/* ============ 1. TOKENS ============ */
:root {
    --midnight: #071a33;
    --navy: #174176;
    --ivory: #f7f4ee;
    --stone: #e9e4d9;
    --ink: #16212f;
    --mute: #55627a;
    --line: #d9d3c6;
    --sky: #a9c4e4;
    --serif: 'Gloock', 'Iowan Old Style', Georgia, serif;
    --sans: 'Schibsted Grotesk', system-ui, sans-serif
}

/* ============ 2. PHOTOGRAPHY (Pexels CDN) — replace any URL here to change CSS-background photos. In-page <img> photos are marked with <!-- IMAGE: ... --> comments in the HTML. ============ */
:root {
    --img-hero: url(https://images.pexels.com/photos/5668473/pexels-photo-5668473.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Home hero: gavel and folders in courthouse */
    --img-court: url(https://images.pexels.com/photos/6077447/pexels-photo-6077447.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Practice Areas banner: ceremonial mallet on judge's desk */
    --img-kicc: url(https://images.pexels.com/photos/9833513/pexels-photo-9833513.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* About banner: Nairobi skyline with KICC */
    --img-insights: url(https://images.pexels.com/photos/15496542/pexels-photo-15496542.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Insights banner: Nairobi aerial skyline */
    --img-consult: url(../images/courtroom.jpg);
    /* Contact banner and panel: courtroom interior from the firm profile (no people) */
    --img-city: url(https://images.pexels.com/photos/15496531/pexels-photo-15496531.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Home "why clients choose us" parallax band: Nairobi skyline */
    --img-dusk: url(https://images.pexels.com/photos/29069329/pexels-photo-29069329.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Closing call-to-action and 404: Nairobi at twilight */
    --img-skyline2: url(https://images.pexels.com/photos/36202135/pexels-photo-36202135.jpeg?auto=compress&cs=tinysrgb&w=2000);
    /* Vision panel on About: Nairobi skyline, dramatic sky */
}

/* ============ 3. BASE ============ */
* {
    box-sizing: border-box;
    margin: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    font: 400 1.0625rem/1.72 var(--sans);
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

ul,
ol {
    padding: 0;
    list-style: none
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.012em;
    text-wrap: balance
}

h1 {
    font-size: clamp(2.5rem, 6.8vw, 5.4rem)
}

h2 {
    font-size: clamp(1.9rem, 4.1vw, 3.2rem);
    position: relative;
    padding-top: 1.6rem
}

h3 {
    font-size: 1.45rem;
    line-height: 1.2
}

h2:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--navy) 62%, var(--sky) 62%)
}

.dark h2:before,
.band h2:before,
.panel.v h2:before,
.cdark h2:before {
    background: linear-gradient(90deg, #fff 62%, var(--sky) 62%)
}

.band.b2 h2:before {
    left: 50%;
    transform: translateX(-50%)
}

.foot h2 {
    padding-top: 0
}

.foot h2:before {
    display: none
}

p+p {
    margin-top: 1rem
}

.wrap {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto
}

.sec {
    padding: clamp(4.5rem, 10vw, 8.5rem) 0
}

.ivory {
    background: var(--ivory)
}

.dark {
    background: var(--midnight);
    color: #e6edf7
}

.lead {
    font-size: 1.2rem;
    color: var(--mute);
    max-width: 58ch
}

.dark .lead {
    color: #c4d3e8
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: .6rem 1rem;
    z-index: 99
}

.skip:focus {
    left: 0
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px
}

.ul {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
    transition: background-size .35s
}

.ul:hover,
.ul[aria-current] {
    background-size: 100% 1px
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.9rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--midnight);
    background: linear-gradient(var(--navy), var(--navy)) left/0 100% no-repeat, #fff;
    border: 1px solid #fff;
    transition: background-size .5s cubic-bezier(.2, .7, .2, 1), color .35s, border-color .35s
}

.btn:after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 0 0;
    transition: width .4s cubic-bezier(.2, .7, .2, 1);
    position: relative
}

.btn:before {
    content: "";
    position: absolute;
    right: 1.9rem;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1)
}

.btn:hover {
    background-size: 100% 100%;
    color: #fff;
    border-color: var(--navy)
}

.btn:hover:after {
    width: 34px
}

.btn:hover:before {
    transform: translateX(12px) rotate(45deg)
}

.btn.solid {
    color: #fff;
    background: linear-gradient(var(--midnight), var(--midnight)) left/0 100% no-repeat, var(--navy);
    border-color: var(--navy)
}

.btn.solid:hover {
    border-color: var(--midnight)
}

.btn.ghost {
    color: #fff;
    background: linear-gradient(#fff, #fff) left/0 100% no-repeat, transparent;
    border-color: rgba(255, 255, 255, .6)
}

.btn.ghost:hover {
    color: var(--midnight);
    border-color: #fff
}

.more {
    display: inline-block;
    margin-top: 1.3rem;
    color: var(--navy);
    font-weight: 600
}

.dark .more {
    color: var(--sky)
}

/* ============ 4. HEADER / NAV (behaviour preserved) ============ */
.site-header {
    --p: 0;
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    z-index: 50;
    height: calc(88px - 18px*var(--p));
    color: #fff;
    color: color-mix(in srgb, #fff calc((1 - var(--p))*100%), var(--ink));
    background: rgba(255, 255, 255, var(--p));
    box-shadow: 0 1px 14px rgba(7, 26, 51, calc(.12*var(--p)));
    transition: top .35s ease
}

.site-header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo img {
    height: calc(64px - 12px*var(--p));
    width: auto;
    filter: brightness(var(--p)) invert(calc(1 - var(--p)))
}

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 55;
    height: 40px;
    background: var(--midnight);
    color: #dbe6f4;
    font-size: .84rem;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s
}

.topbar .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.topbar .tl {
    display: flex;
    gap: 1.6rem;
    white-space: nowrap;
    overflow: hidden
}

.topbar a {
    color: #fff;
    text-decoration: none;
    transition: color .25s
}

.topbar a:hover {
    color: var(--sky)
}

.topbar .cta {
    font-weight: 600;
    border-bottom: 1px solid var(--sky);
    white-space: nowrap
}

body.bar-on .topbar {
    transform: none;
    visibility: visible
}

body.bar-on .site-header {
    top: 40px
}

.nav ul {
    display: flex;
    gap: 2.3rem
}

.nav a {
    font-size: .95rem;
    font-weight: 500
}

.nt {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    width: 44px;
    height: 44px;
    cursor: pointer
}

.nt i {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 6px auto;
    transition: transform .3s, opacity .3s
}

.site-header.open {
    background: var(--midnight);
    color: #fff;
    box-shadow: none
}

.open .logo img {
    filter: brightness(0) invert(1)
}

.open .nt i:first-child {
    transform: translateY(8px) rotate(45deg)
}

.open .nt i:nth-child(2) {
    opacity: 0
}

.open .nt i:last-child {
    transform: translateY(-8px) rotate(-45deg)
}

/* ============ 5. HERO + BANNERS ============ */
.bg {
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--midnight)
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    background: var(--midnight);
    padding: 7.5rem 0 6rem
}

.slides {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--midnight)
}

.slide {
    position: absolute;
    inset: -3%;
    background: center/cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.8s ease
}

.slide.on {
    opacity: 1
}

.slide.on,
.slide.out {
    animation: zoom 10s ease-out forwards
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(7, 26, 51, .96) 0%, rgba(7, 26, 51, .72) 48%, rgba(7, 26, 51, .25) 100%), linear-gradient(0deg, rgba(7, 26, 51, .8), transparent 38%)
}

@keyframes zoom {
    from {
        transform: scale(1.08)
    }

    to {
        transform: scale(1)
    }
}

.hero .wrap {
    text-align: center
}

.hero h1 {
    max-width: 16ch;
    margin-inline: auto
}

.hero p.lead {
    color: #d5e1f1;
    margin: 1.6rem auto 2.6rem;
    font-size: 1.25rem
}

.hero .btns {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: center
}

.hero .wrap:before {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: var(--sky);
    margin: 0 auto 2rem
}

.rot {
    display: inline-grid;
    vertical-align: bottom
}

.rot span {
    grid-area: 1/1;
    opacity: 0;
    transform: translateY(.4em);
    transition: opacity .6s, transform .6s;
    font-style: normal;
    color: var(--sky);
    text-decoration: underline;
    text-decoration-thickness: .05em;
    text-underline-offset: .14em;
    text-decoration-color: rgba(169, 196, 228, .45)
}

.rot span.on {
    opacity: 1;
    transform: none
}

.scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    width: 1px;
    height: 48px;
    background: linear-gradient(#fff, transparent);
    animation: sc 2s infinite
}

@keyframes sc {
    0% {
        transform: scaleY(0);
        transform-origin: top
    }

    50% {
        transform: scaleY(1);
        transform-origin: top
    }

    51% {
        transform-origin: bottom
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom
    }
}

.phero {
    background-attachment: fixed;
    min-height: 62svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 10rem 0 4.5rem;
    background-image: linear-gradient(180deg, rgba(7, 26, 51, .82), rgba(7, 26, 51, .55) 50%, rgba(7, 26, 51, .9)), var(--ph)
}

.phero h1 {
    font-size: clamp(2.6rem, 6.4vw, 5rem)
}

.phero p {
    max-width: 54ch;
    margin-top: 1.2rem;
    color: #d5e1f1;
    font-size: 1.15rem
}

/* ============ 6. PHOTO FRAMES + EDITORIAL LAYOUTS ============ */
.frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--midnight))
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.r43 {
    aspect-ratio: 4/3
}

.r45 {
    aspect-ratio: 4/5
}

.r169 {
    aspect-ratio: 16/9
}

.r11 {
    aspect-ratio: 1
}

.split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center
}

.split.flip {
    grid-template-columns: 6fr 5fr
}

.arch {
    --pad: 6.2rem;
    position: relative;
    padding: 18px 0 var(--pad) 18px;
    max-width: 620px;
    margin-inline: auto
}

.arch:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 18px;
    bottom: calc(var(--pad) + 18px);
    border: 1px solid var(--navy);
    border-radius: 128px 128px 0 0
}

.win {
    position: relative;
    z-index: 1;
    aspect-ratio: 1600/1100;
    border-radius: 116px 116px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--midnight))
}

.win img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.orb {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: 0;
    width: 30%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--ivory);
    background: var(--navy);
    box-shadow: 0 14px 30px -12px rgba(7, 26, 51, .5)
}

.orb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.tag {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: calc(var(--pad) - 2.4rem);
    background: var(--midnight);
    color: #fff;
    padding: .9rem 1.2rem;
    font: 400 1.1rem/1.25 var(--serif);
    max-width: 56%
}

.tag span {
    display: block;
    font: 500 .7rem var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sky);
    margin-top: .3rem
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem
}

.facts b {
    display: block;
    font: 400 2rem var(--serif);
    color: var(--navy)
}

.facts span {
    font-size: .9rem;
    color: var(--mute)
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(310px, auto);
    gap: 1rem;
    margin-top: 3rem
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--navy), var(--midnight));
    grid-column: span 4
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .9s
}

.tile:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(7, 26, 51, .94), rgba(7, 26, 51, .1) 72%)
}

.tile:hover img {
    transform: scale(1.06)
}

.tile h3 {
    font-size: 1.7rem
}

.tile span {
    font-size: .95rem;
    color: #d5e1f1;
    max-width: 34ch;
    margin-top: .4rem
}

.tile.big {
    grid-column: span 7;
    grid-row: span 2
}

.tile.big h3 {
    font-size: 2.4rem
}

.tile.mid {
    grid-column: span 5
}

.band {
    position: relative;
    color: #fff;
    isolation: isolate;
    background-image: linear-gradient(90deg, rgba(7, 26, 51, .96) 0%, rgba(7, 26, 51, .78) 52%, rgba(7, 26, 51, .2) 100%), var(--img-city)
}

.band.b2 {
    background-image: linear-gradient(180deg, rgba(7, 26, 51, .9), rgba(23, 65, 118, .55)), var(--img-dusk);
    text-align: center
}

.band.b2 .lead {
    margin-inline: auto;
    color: #d5e1f1
}

.why {
    margin-top: 2.5rem;
    max-width: 640px
}

.why li {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .3);
    padding: 1.1rem 0
}

.why b {
    font: 400 1.35rem var(--serif)
}

.why span {
    color: #d5e1f1;
    font-size: .97rem
}

.team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem
}

.team figure {
    width: min(270px, 74vw);
    aspect-ratio: 1;
    margin: 0 auto 1.6rem;
    padding: 7px;
    border-radius: 50%;
    background: conic-gradient(from var(--a, 200deg), var(--navy), var(--sky), #fff, var(--navy));
    animation: spin 9s linear infinite;
    box-shadow: 0 18px 40px -18px rgba(7, 26, 51, .55);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s
}

.team img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 50%;
    border: 6px solid #fff
}

.team a:hover figure,
.team article:hover figure {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 26px 50px -18px rgba(7, 26, 51, .65)
}

.team h3 {
    margin-bottom: .2rem;
    text-align: center
}

.role {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: .8rem;
    text-align: center
}

.team h4 {
    font-size: .95rem;
    margin: 1.1rem 0 .3rem
}

.team li {
    font-size: .92rem;
    color: var(--mute);
    padding-left: 1rem;
    position: relative
}

.team li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .8em;
    width: .45rem;
    height: 1px;
    background: var(--navy)
}

.steps {
    counter-reset: s
}

.steps li {
    counter-increment: s;
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
    padding: 1.5rem 0
}

.steps li:before {
    content: counter(s);
    font: 400 3rem/1 var(--serif);
    color: var(--sky)
}

.steps b {
    display: block;
    font: 400 1.4rem var(--serif);
    color: #fff
}

.steps span {
    color: #c4d3e8;
    font-size: .97rem
}

.panel {
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background-size: cover;
    background-position: center
}

.panel.v {
    background-image: linear-gradient(rgba(7, 26, 51, .88), rgba(7, 26, 51, .8)), var(--img-skyline2)
}

.panel.m {
    background: var(--stone);
    color: var(--ink)
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem)
}

.grid2.tight {
    gap: 0
}

/* Practice-area rows */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem
}

.chips a {
    padding: .55rem 1rem;
    border: 1px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .25s, color .25s
}

.chips a:hover {
    background: var(--navy);
    color: #fff
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--line)
}

.row:nth-of-type(even) .frame {
    order: 2
}

.row h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    margin-bottom: 1rem
}

.ticks {
    columns: 2;
    column-gap: 2rem;
    margin: 1.2rem 0
}

.ticks li {
    padding-left: 1.2rem;
    position: relative;
    break-inside: avoid;
    margin-bottom: .3rem
}

.ticks li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .8em;
    width: .6rem;
    height: 2px;
    background: var(--navy)
}

/* Insights */
.feature {
    display: grid;
    grid-template-columns: 7fr 5fr;
    background: var(--ivory)
}

.feature .copy2 {
    padding: clamp(2rem, 5vw, 4rem);
    align-self: center
}

.skel {
    height: 10px;
    background: var(--stone);
    margin-top: .7rem
}

.skel:nth-child(2) {
    width: 85%
}

.skel:nth-child(3) {
    width: 60%
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 5fr 7fr
}

.cdark {
    padding: clamp(2rem, 5vw, 4rem);
    color: #e6edf7;
    background-image: linear-gradient(rgba(7, 26, 51, .9), rgba(7, 26, 51, .94)), var(--img-consult);
    background-size: cover;
    background-position: center
}

.cform {
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--ivory)
}

.info dt {
    font-weight: 600;
    margin-top: 1.3rem;
    color: #fff
}

.info dd {
    margin: 0;
    color: #c4d3e8
}

.info a {
    color: var(--sky)
}

form {
    display: grid;
    gap: 1.15rem
}

label {
    font-weight: 600;
    font-size: .92rem;
    display: block;
    margin-bottom: .3rem
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    padding: .85rem .95rem;
    border: 1px solid #a9b4c4;
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    transition: border-color .2s, box-shadow .2s
}

textarea {
    min-height: 150px;
    resize: vertical
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23, 65, 118, .2)
}

input:user-invalid,
textarea:user-invalid {
    border-color: #a3231c
}

.chk {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: .88rem;
    color: var(--mute)
}

.chk input {
    width: auto;
    margin-top: .35rem
}

.hp {
    position: absolute;
    left: -9999px
}

.st {
    min-height: 1.4em;
    font-size: .95rem
}

.st.ok {
    color: #14683a
}

.st.err {
    color: #a3231c
}

.note {
    font-size: .86rem;
    color: var(--mute);
    border-left: 3px solid var(--navy);
    padding: .4rem 0 .4rem .9rem
}

/* Clients marquee + duties */
.clientele {
    background: radial-gradient(900px 380px at 85% 0, rgba(23, 65, 118, .6), transparent), var(--midnight)
}

.clients {
    margin-top: 3rem;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.clients .track+.track {
    margin-top: 1rem
}

.track {
    display: flex;
    width: max-content;
    animation: marq 85s linear infinite
}

.track.rev {
    animation-direction: reverse;
    animation-duration: 100s
}

.clients:hover .track,
.clients:focus-within .track {
    animation-play-state: paused
}

@keyframes marq {
    to {
        transform: translateX(-50%)
    }
}

.grp {
    display: flex;
    gap: 1rem;
    padding-right: 1rem
}

.client {
    flex: none;
    width: 350px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    transition: border-color .3s, background .3s, transform .3s
}

.client:hover {
    border-color: var(--sky);
    background: rgba(255, 255, 255, .1);
    transform: translateY(-3px)
}

.mono {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 400 1.2rem var(--serif);
    letter-spacing: .02em;
    color: var(--midnight);
    background: linear-gradient(135deg, #fff, var(--sky));
    box-shadow: 0 0 0 4px rgba(169, 196, 228, .18)
}

.cinfo {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0
}

.cn {
    font: 600 .85rem/1.3 var(--sans);
    letter-spacing: .07em;
    color: #fff
}

.ct {
    font-size: .82rem;
    color: #9fb6d3
}

.duty {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem 3rem;
    margin-top: 2.5rem
}

.duty li {
    border-top: 2px solid var(--navy);
    padding-top: 1rem
}

.duty b {
    display: block;
    font: 400 1.4rem var(--serif);
    margin-bottom: .4rem
}

.duty span {
    color: var(--mute);
    font-size: .97rem
}

/* Nav CTA, light steps, FAQ, fee table, date chips */
.steps.lt li {
    border-color: var(--line)
}

.steps.lt b {
    color: var(--ink)
}

.steps.lt span {
    color: var(--mute)
}

.steps.lt li:before {
    color: var(--navy)
}

details {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0
}

details:last-of-type {
    border-bottom: 1px solid var(--line)
}

summary {
    cursor: pointer;
    font: 400 1.25rem/1.3 var(--serif);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem
}

summary::-webkit-details-marker {
    display: none
}

summary:after {
    content: "+";
    font: 400 1.6rem var(--sans);
    color: var(--navy);
    transition: transform .3s
}

details[open] summary:after {
    transform: rotate(45deg)
}

details p {
    margin-top: .8rem;
    color: var(--mute);
    max-width: 70ch
}

.fee {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem
}

.fee th {
    text-align: left;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--navy);
    padding: .8rem 1rem .8rem 0;
    border-bottom: 2px solid var(--navy)
}

.fee td {
    padding: 1.1rem 1rem 1.1rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: var(--mute)
}

.fee td:first-child {
    font: 400 1.25rem/1.3 var(--serif);
    color: var(--ink);
    width: 28%
}

.dp {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.dp .chip {
    padding: .55rem .85rem;
    border: 1px solid #a9b4c4;
    background: #fff;
    font: inherit;
    font-size: .86rem;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s
}

.dp .chip:hover,
.dp .chip.on {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}

/* ---- Interactive layer: CTA, progress, spotlight, status ---- */
@property --a {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false
}

@keyframes spin {
    to {
        --a: 360deg
    }
}

.cta3 {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .95rem .8rem .95rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: #fff;
    font: 600 .95rem/1 var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(23, 65, 118, .85);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s
}

.cta3:before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: inherit;
    background: conic-gradient(from var(--a), rgba(169, 196, 228, 0) 0 50%, var(--sky) 72%, #fff 84%, rgba(169, 196, 228, 0) 100%);
    animation: spin 3.2s linear infinite
}

.cta3:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%) 160% 0/260% 100% no-repeat, linear-gradient(135deg, #2766b3, var(--navy) 55%, var(--midnight));
    transition: background-position .8s
}

.cta3:hover {
    box-shadow: 0 18px 38px -10px rgba(23, 65, 118, 1)
}

.cta3:hover:after {
    background-position: -60% 0, 0 0
}

.cta3:active {
    transform: scale(.97)
}

.cta3 .ic {
    width: 1.2em;
    height: 1.2em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>") center/contain no-repeat
}

.cta3 .ar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center
}

.cta3 .ar:after {
    content: "\2192";
    transition: transform .3s
}

.cta3:hover .ar:after {
    transform: translateX(4px)
}

.cta3.sm {
    padding: .7rem 1.15rem .7rem .95rem;
    font-size: .86rem;
    gap: .55rem
}

.cta3.wide {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.3rem
}

.cta3.wide .ar {
    margin-left: auto
}

.sp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 70;
    background: linear-gradient(90deg, var(--navy), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none
}

.hero .wrap {
    position: relative;
    z-index: 1
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 40%), rgba(169, 196, 228, .2), transparent 62%)
}

.tile:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%);
    opacity: 0;
    transition: opacity .35s
}

.tile:hover:before {
    opacity: 1
}

.tile h3:after {
    content: "\2192";
    display: inline-block;
    margin-left: .5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: .35s
}

.tile:hover h3:after {
    opacity: 1;
    transform: none
}

.client {
    position: relative;
    overflow: hidden
}

.client:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(190px circle at var(--mx, -50%) var(--my, -50%), rgba(169, 196, 228, .28), transparent 70%);
    opacity: 0;
    transition: opacity .3s
}

.client:hover:before {
    opacity: 1
}

.status {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.2rem !important;
    font-size: .92rem !important;
    color: #d5e1f1
}

.status .dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8
}

.status .dot.on {
    background: #25d366;
    animation: pulse 2s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .6)
    }

    70%,
    100% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0)
    }
}

.js .sh .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .14em;
    margin-bottom: -.14em
}

.js .sh .w>span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform .9s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--i)*70ms)
}

.js .sh.in .w>span {
    transform: none
}

/* Footer */
.foot {
    background: var(--midnight);
    color: #c4d3e8;
    padding: 5rem 0 2rem;
    font-size: .95rem
}

.foot .wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 3rem
}

.foot h2 {
    font: 600 .95rem var(--sans);
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0
}

.foot img {
    height: 84px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem
}

.foot li {
    margin-bottom: .4rem
}

.foot input {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .4);
    color: #fff
}

.foot .chk,
.foot .note {
    color: #b6c6dc;
    border-color: var(--sky)
}

.foot .st.ok {
    color: #8be0ad
}

.foot .st.err {
    color: #ffb4ae
}

.foot .btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600
}

.credit {
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(#f3d77a, #f3d77a) 0 100%/0 1px no-repeat;
    transition: color .3s, text-shadow .3s, background-size .4s, letter-spacing .4s
}

.credit:hover,
.credit:focus-visible {
    color: #f3d77a;
    text-shadow: 0 0 14px rgba(243, 215, 122, .65);
    background-size: 100% 1px;
    letter-spacing: .04em
}

.copy {
    grid-column: 1/-1;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 1.5rem;
    font-size: .85rem
}

.dark form .chk,
.dark form .note {
    color: #b6c6dc
}

.dark input {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .4);
    color: #fff
}

.dark .btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600
}

.dark .st.ok {
    color: #8be0ad
}

.dark .st.err {
    color: #ffb4ae
}

/* WhatsApp + toast (unchanged behaviour) */
.wa {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(7, 26, 51, .35);
    transition: transform .25s, background .25s
}

.wa:hover {
    transform: scale(1.08);
    background: #1ebe5b
}

.wa svg {
    width: 28px;
    height: 28px
}

.wa .tip {
    position: absolute;
    right: 68px;
    background: #fff;
    color: var(--ink);
    padding: .4rem .8rem;
    font-size: .85rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    padding: .8rem 1.2rem;
    z-index: 70;
    max-width: 90%;
    font-size: .9rem
}

@media(hover:hover) {

    .wa:hover .tip,
    .wa:focus-visible .tip {
        opacity: 1
    }
}

.js .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s, transform .7s
}

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

/* ============ 7. RESPONSIVE ============ */
@media(max-width:1180px) and (min-width:901px) {
    .nav ul {
        gap: 1.4rem
    }

    .nav a {
        font-size: .88rem
    }

    .nav .cta3.sm {
        padding: .65rem 1rem .65rem .85rem;
        font-size: .84rem
    }
}

@media(max-width:900px) {
    .nt {
        display: block
    }

    .nav {
        position: fixed;
        inset: 0;
        background: var(--midnight);
        padding: 6.5rem 1.5rem 2rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .35s, visibility .35s;
        z-index: -1
    }

    .open .nav {
        transform: none;
        visibility: visible
    }

    .nav ul {
        flex-direction: column;
        gap: 1.4rem
    }

    .nav a {
        font: 400 2rem var(--serif)
    }

    .split,
    .split.flip,
    .grid2,
    .row,
    .foot .wrap,
    .team,
    .feature,
    .contact {
        grid-template-columns: 1fr
    }

    .row:nth-of-type(even) .frame {
        order: 0
    }

    .team {
        max-width: 460px
    }

    .ticks {
        columns: 1
    }

    .bento {
        grid-auto-rows: minmax(260px, auto)
    }

    .tile,
    .tile.big,
    .tile.mid {
        grid-column: 1/-1;
        grid-row: auto
    }

    .why li {
        grid-template-columns: 1fr;
        gap: .2rem
    }

    .facts b {
        font-size: 1.5rem
    }

    .facts {
        gap: 1rem
    }

    .bg,
    .phero,
    .band {
        background-attachment: scroll
    }

    .hero {
        padding-top: 7rem
    }

    .logo img {
        height: 54px
    }

    .orb {
        width: 28%
    }

    .win,
    .arch:before {
        border-top-left-radius: 90px;
        border-top-right-radius: 90px
    }
}

@media(max-width:480px) {
    .facts {
        grid-template-columns: 1fr 1fr 1fr
    }

    .facts span {
        font-size: .8rem
    }

    .btn {
        padding: .9rem 1.3rem
    }

    .hero .btns .btn {
        flex: 1;
        text-align: center
    }
}

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

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .js .rv {
        opacity: 1;
        transform: none
    }

    .clients {
        overflow-x: auto;
        -webkit-mask: none;
        mask: none
    }

    .grp[aria-hidden] {
        display: none
    }

    .fee thead {
        display: none
    }

    .fee tr {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--line)
    }

    .fee td {
        display: block;
        border: 0;
        padding: .2rem 0;
        width: auto !important
    }

    .fee td[data-l]:before {
        content: attr(data-l) ": ";
        font-weight: 600;
        color: var(--ink)
    }

    .nav .cta3 {
        font: 600 1rem var(--sans)
    }

    .bg,
    .phero,
    .band {
        background-attachment: scroll
    }

    .client {
        width: 290px
    }

    .mono {
        width: 46px;
        height: 46px;
        font-size: 1rem
    }
}