/* =========================================================
   ASMI GADGIL & COMPANY
   Premium corporate / company secretary website

   Same brand, same content. This pass adds:
   - mobile-first layout fixes + 44px touch targets
   - one consistent motion system (transform/opacity only)
   - hover effects only on devices that can hover
   - full prefers-reduced-motion support
========================================================= */

/* =========================================================
   ROOT
========================================================= */

:root {
    --navy: #01214A;
    --navy-dark: #00172F;
    --navy-soft: #0A315E;

    --gold: #B8964E;
    --gold-light: #D4B873;
    --gold-pale: #E8D9B5;

    --ivory: #F7F7F9;
    --white: #FFFFFF;

    --text: #18283A;
    --muted: #687384;

    --border: rgba(1, 33, 74, 0.12);

    --shadow: 0 20px 60px rgba(1, 33, 74, .10);
    --shadow-heavy: 0 30px 80px rgba(1, 33, 74, .18);

    --radius: 18px;

    /* motion */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    /* layout */
    --nav-h: 82px;
    --gutter: max(5vw, 16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 10px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--ivory);
    color: var(--text);
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    touch-action: manipulation;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

.container {
    width: min(1180px, calc(100% - 2 * var(--gutter)));
    margin: auto;
}

/* Dim backdrop behind the open mobile menu */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 23, 47, .45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 247, 249, .92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition:
        transform .5s var(--ease-out),
        box-shadow .3s ease,
        border-color .3s ease;
}

.navbar.scrolled {
    border-color: var(--border);
    box-shadow: 0 8px 30px rgba(1, 33, 74, .06);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* scroll progress line */

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    pointer-events: none;
}

.nav-container {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
}

.logo-mark {
    flex: none;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 2px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    position: relative;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: ringIn 1.4s .2s var(--ease-out) backwards;
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.logo strong {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    letter-spacing: .5px;
}

.logo small {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 1.8px;
    color: var(--muted);
}

/* NAV LINKS (desktop) */

nav {
    display: flex;
    gap: 32px;
}

nav a {
    position: relative;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    transition: color .25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease-out);
}

nav a.is-active {
    color: var(--gold);
}

nav a.is-active::after {
    transform: scaleX(1);
}

nav .nav-cta {
    display: none;
}

/* NAV BUTTON */

.nav-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
    font-size: 12px;
    font-weight: 600;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s var(--ease-out),
        translate .3s var(--ease-out);
}

/* MENU TOGGLE (hamburger -> X) */

.menu-toggle {
    display: none;
    position: relative;
    flex: none;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--navy);
    cursor: pointer;
    overflow: hidden;
}

.menu-toggle .bar {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        top .45s var(--ease-out),
        transform .45s var(--ease-out),
        opacity .25s ease;
}

.menu-toggle .bar:nth-child(1) { top: 17px; }
.menu-toggle .bar:nth-child(2) { top: 23px; width: 15px; }
.menu-toggle .bar:nth-child(3) { top: 29px; }

.menu-toggle.is-open .bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle.is-open .bar:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-toggle.is-open .bar:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* =========================================================
   BUTTONS (shared behaviour)
========================================================= */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s var(--ease-out),
        translate .3s var(--ease-out);
}

.btn > span {
    display: inline-block;
    transition: transform .35s var(--ease-out);
}

.btn-primary {
    background: var(--navy);
    color: white;
    font-weight: 600;
    box-shadow: 0 12px 25px rgba(1, 33, 74, .16);
}

.btn-secondary {
    color: var(--navy);
    border-color: rgba(1, 33, 74, .25);
    background: rgba(255, 255, 255, .5);
    font-weight: 500;
}

/* periodic shine on the main call-to-actions */

.btn-primary::before,
.nav-button::before,
.contact-whatsapp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 38%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-130%) skewX(-20deg);
    animation: shine 6.5s 3s ease-in-out infinite;
    pointer-events: none;
}

/* tap ripple (created by script.js) */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    transform: scale(0);
    animation: ripple .7s ease-out forwards;
    pointer-events: none;
}

.btn-secondary .ripple,
.menu-toggle .ripple,
.back-top .ripple,
.map-card a .ripple {
    background: rgba(1, 33, 74, .14);
}

/* touch feedback: works on every device */

.btn:active,
.nav-button:active,
.contact-whatsapp-btn:active,
.map-card a:active {
    transform: scale(.96);
}

/* hover: only where a real pointer exists (no "stuck" hover on phones) */

@media (hover: hover) and (pointer: fine) {

    nav a:hover {
        color: var(--gold);
    }

    nav a:hover::after {
        transform: scaleX(1);
    }

    .nav-button:hover {
        background: transparent;
        color: var(--navy);
        border-color: var(--gold);
        transform: translateY(-2px);
    }

    .btn-primary:hover {
        background: var(--gold);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(184, 150, 78, .25);
    }

    .btn-secondary:hover {
        border-color: var(--gold);
        color: var(--gold);
        transform: translateY(-3px);
    }

    .btn:hover > span {
        transform: translate(3px, -3px);
    }

    .nav-button:active,
    .btn:active {
        transform: scale(.97);
    }
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: calc(var(--nav-h) + 18px);
    padding-bottom: 40px;
    background:
        radial-gradient(circle at 90% 20%, rgba(184, 150, 78, .10), transparent 30%),
        var(--ivory);
}

/* Decorative navy corner */

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 240px;
    background: var(--navy);
    clip-path: ellipse(75% 65% at 0% 0%);
    animation: cornerIn 1.2s var(--ease-out) backwards;
}

/* Gold curve */

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 260px;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    transform: translate(-90px, -100px) rotate(-18deg);
    pointer-events: none;
    animation: curveIn 1.6s .15s var(--ease-out) backwards;
}

/* subtle grid */

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--navy) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .035;
    -webkit-mask-image: linear-gradient(to right, transparent, black, transparent);
    mask-image: linear-gradient(to right, transparent, black, transparent);
}

/* HERO CONTENT */

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 30px;
    min-width: 0;
}

.eyebrow,
.section-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.eyebrow {
    display: block;
    animation: fadeUp .9s .1s var(--ease-out) backwards;
}

.hero h1 {
    max-width: 700px;
    margin: 20px 0;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    text-wrap: balance;
}

.hero h1 > span:not(.w) {
    color: var(--gold);
}

/* word-by-word entrance (words are wrapped by script.js) */

.hero h1 .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 .04em .22em;
    margin: 0 -.04em -.22em;
}

.hero h1 .wi {
    display: inline-block;
    transform: translate3d(0, 135%, 0) rotate(7deg);
    transform-origin: 0 100%;
    animation: wordUp 1.05s var(--ease-out) forwards;
    animation-delay: calc(.25s + var(--i, 0) * .08s);
}

.hero-content > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 16px;
    animation: fadeUp .9s .8s var(--ease-out) backwards;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.hero-buttons .btn:nth-child(1) { animation: popIn .8s 1s var(--ease-spring) backwards; }
.hero-buttons .btn:nth-child(2) { animation: popIn .8s 1.12s var(--ease-spring) backwards; }

/* TRUST (empty in the markup right now: only shows if filled in later) */

.hero-trust {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-trust:not(:has(strong)) {
    display: none;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
}

.hero-trust span {
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   HERO 3D EMBLEM
========================================================= */

.hero-visual {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1200px;
    min-width: 0;
}

/* Orbiting rings, each with a small travelling dot */

.hero-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(184, 150, 78, .35);
    box-shadow: inset 0 0 0 15px rgba(184, 150, 78, .025);
    background: radial-gradient(circle at 50% 5px, var(--gold) 0 3.5px, transparent 4.5px);
    transform: rotateX(65deg) rotateZ(-15deg);
    animation: ringSpin 22s linear infinite;
    will-change: transform;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(1, 33, 74, .14);
    background: radial-gradient(circle at 50% 5px, var(--navy) 0 3px, transparent 4px);
    transform: rotateY(65deg);
    animation: ringSpin2 30s linear infinite;
    will-change: transform;
}

/* Soft drifting orbs (new: the markup already had these elements) */

.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.orb-one {
    width: 220px;
    height: 220px;
    top: 2%;
    right: 4%;
    background: radial-gradient(circle at 35% 30%, rgba(212, 184, 115, .55), rgba(184, 150, 78, .12) 55%, transparent 70%);
    animation: orbDrift 9s ease-in-out infinite;
}

.orb-two {
    width: 170px;
    height: 170px;
    bottom: 4%;
    left: 0;
    background: radial-gradient(circle at 40% 35%, rgba(10, 49, 94, .32), rgba(1, 33, 74, .08) 55%, transparent 70%);
    animation: orbDrift 12s -5s ease-in-out infinite reverse;
}

/* Cards */

.floating-card {
    position: absolute;
    background: linear-gradient(145deg, #ffffff, #f1f3f6);
    border: 1px solid rgba(1, 33, 74, .12);
    box-shadow:
        0 35px 80px rgba(1, 33, 74, .17),
        inset 0 1px rgba(255, 255, 255, .9);
    border-radius: 22px;
}

/* CS CARD: tilt is driven by --rx / --ry (pointer) and sits on top of a resting pose */

.card-main {
    --rx: 0deg;
    --ry: 0deg;
    width: 330px;
    min-height: 410px;
    padding: 30px;
    transform:
        rotateY(calc(-12deg + var(--ry)))
        rotateX(calc(7deg + var(--rx)))
        rotateZ(2deg);
    transition: transform .55s var(--ease-out);
    animation:
        cardIntro 1.2s .3s var(--ease-spring) backwards,
        cardBob 7s 1.6s ease-in-out infinite;
}

/* glossy highlight that follows the pointer */

.card-main::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 55%);
    opacity: var(--gloss, 0);
    transition: opacity .4s ease;
    pointer-events: none;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-top > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    position: relative;
}

.card-top > span::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: ringIn 1.4s .9s var(--ease-out) backwards;
}

.card-top div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.card-top small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.card-top strong {
    color: var(--navy);
    letter-spacing: 1px;
}

.card-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 32px 0;
    transform-origin: center;
    animation: lineGrow 1.1s 1s var(--ease-out) backwards;
}

.card-main p {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    line-height: 1.6;
}

.card-footer {
    position: absolute;
    bottom: 24px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

/* SMALL FLOATING CARD */

.card-small {
    right: 0;
    bottom: 70px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation:
        smallIn .9s 1.15s var(--ease-spring) backwards,
        floating 4s 2.1s ease-in-out infinite;
}

.card-small strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

.card-small small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.check {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(184, 150, 78, .13);
    color: var(--gold);
}

.check::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: ping 3s 2.4s ease-out infinite;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 120px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 60px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin-top: 16px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 1.1rem + 4vw, 3.6rem);
    line-height: 1.1;
    text-wrap: balance;
}

.section-heading h2 span {
    color: var(--gold);
}

.section-heading p {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-text p {
    color: var(--muted);
}

.large-text {
    color: var(--navy) !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1.55;
    margin-bottom: 25px;
}

.text-link {
    position: relative;
    display: inline-block;
    margin-top: 28px;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
    transition: letter-spacing .35s var(--ease-out), color .25s ease;
}

/* bigger invisible tap area, same visual size */

.text-link::before,
.contact-alternative a::before {
    content: "";
    position: absolute;
    inset: -14px -8px;
}

.text-link:active {
    opacity: .7;
}

.about-features {
    border-top: 1px solid var(--border);
}

.feature {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.feature-number {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    transform-origin: left center;
    transition: transform .4s var(--ease-spring);
}

.feature h3 {
    color: var(--navy);
    margin-bottom: 5px;
    transition: transform .4s var(--ease-out);
}

.feature p {
    color: var(--muted);
    font-size: 16px;
}

/* =========================================================
   SERVICES
========================================================= */

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    --mx: 50%;
    --my: 0%;
    min-height: 310px;
    padding: 32px 32px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(1, 33, 74, .10);
    overflow: hidden;
    transition:
        transform .45s var(--ease-out),
        box-shadow .45s ease,
        border-color .45s ease;
}

/* top accent bar */

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--navy), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}

/* soft gold spotlight that follows the finger / cursor */

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--mx) var(--my), rgba(184, 150, 78, .16), transparent 70%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.service-card:active {
    transform: scale(.985);
    border-color: rgba(184, 150, 78, .4);
}

.service-card:active::before {
    transform: scaleX(1);
}

.service-card:active::after {
    opacity: 1;
}

.service-icon {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.service-icon::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    margin-left: 12px;
    vertical-align: middle;
    background: var(--gold);
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}

.service-card h3 {
    margin-top: 45px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}

.service-card p {
    margin: 13px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.service-card a {
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 calc(100% - 9px);
    transition: background-size .45s var(--ease-out);
}

.service-card a:active {
    background-size: 100% 1px;
}

/* =========================================================
   MARQUEE
========================================================= */

.marquee {
    overflow: hidden;
    background: var(--navy);
    padding: 18px 0;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 30px;
    animation: marquee var(--marquee-dur, 28s) linear infinite;
    will-change: transform;
}

.marquee span {
    color: white;
    font-size: 11px;
    letter-spacing: 3px;
}

.marquee i {
    display: inline-block;
    color: var(--gold);
    font-style: normal;
    animation: spin 7s linear infinite;
}

/* =========================================================
   PROCESS
========================================================= */

.process {
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
}

.process-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 20px;
    padding: 40px 30px;
    border-bottom: 1px solid var(--border);
    transition: background-color .4s ease;
}

.process-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.process-item:active {
    background-color: rgba(184, 150, 78, .07);
}

.process-item > span {
    color: var(--gold);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    display: inline-block;
    transform-origin: left center;
    transition: transform .45s var(--ease-spring), color .3s ease;
}

.process-item h3 {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
}

.process-item p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 7px;
}

/* =========================================================
   STATS
========================================================= */

.stats-section {
    padding: 70px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(212, 184, 115, .2);
    border-radius: 50%;
    top: -300px;
    right: -100px;
    animation: breathe 9s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    position: relative;
}

.stat {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: inline-block;
    color: var(--gold-light);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 48px;
    font-variant-numeric: tabular-nums;
}

.stat strong::after {
    content: "+";
}

.stat:last-child strong::after {
    content: "%";
}

.stat strong.done {
    animation: statPulse .7s var(--ease-spring);
}

.stat span {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding: 100px 0 70px;
    background: var(--ivory);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 70px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-content {
    min-width: 0;
}

.contact-content h2 {
    margin-top: 18px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 1.1rem + 4vw, 3.5rem);
    line-height: 1.08;
    text-wrap: balance;
}

.contact-content h2 span {
    color: var(--gold);
}

.contact-content > p {
    color: var(--muted);
    margin-top: 18px;
    max-width: 500px;
}

.contact-details {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-details a,
.contact-details > div {
    color: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-details > div {
    text-wrap: balance;
}

.contact-details span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 3px;
}

.contact-details a:active {
    opacity: .65;
}

/* FORM (kept for future use) */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.input-group label {
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(1, 33, 74, .14);
    background: #fafbfc;
    color: var(--text);
    padding: 14px;
    font-size: 16px; /* prevents iOS zoom-on-focus */
    outline: none;
    resize: vertical;
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(184, 150, 78, .08);
}

input::placeholder,
textarea::placeholder {
    color: #9aa1aa;
}

.full {
    width: 100%;
}

.form-message {
    color: var(--gold);
    font-size: 13px;
}

/* =====================================================
   CONTACT ACTION CARD
===================================================== */

.contact-action-card {
    padding: 42px;
    position: relative;
    background: linear-gradient(145deg, var(--navy), var(--navy-dark));
    color: white;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(1, 33, 74, .18);
    min-width: 0;
}

.contact-action-card::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(212, 184, 115, .20);
    border-radius: 50%;
    right: -130px;
    top: -130px;
    animation: breathe 9s ease-in-out infinite;
}

.contact-action-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(212, 184, 115, .12);
    border-radius: 50%;
    right: -50px;
    top: -50px;
    animation: breathe 9s -4s ease-in-out infinite reverse;
}

.contact-action-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 25px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.contact-action-icon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    animation: ping 2.8s ease-out infinite;
}

.contact-action-label {
    display: block;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    position: relative;
    z-index: 2;
}

.contact-action-card h3 {
    max-width: 400px;
    margin-top: 15px;
    color: white;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.contact-action-card p {
    max-width: 430px;
    margin-top: 15px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* WhatsApp button */

.contact-whatsapp-btn {
    margin-top: 30px;
    width: 100%;
    min-height: 58px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gold);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
    transition:
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s var(--ease-out),
        translate .35s var(--ease-out);
}

.contact-whatsapp-btn > span:last-child {
    display: inline-block;
    animation: nudge 1.9s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
    .contact-whatsapp-btn:hover {
        background: var(--gold-light);
        border-color: var(--gold-light);
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(184, 150, 78, .25);
    }
}

.contact-alternative {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.contact-alternative span {
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    letter-spacing: 1px;
}

.contact-alternative a {
    position: relative;
    color: white;
    font-size: 13px;
    border-bottom: 1px solid rgba(212, 184, 115, .6);
    padding-bottom: 3px;
    transition: color .25s ease;
}

.contact-alternative a:active {
    color: var(--gold-light);
}

.contact-note {
    display: block;
    margin-top: 28px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    position: relative;
    z-index: 2;
}

/* =========================================================
   MAP
========================================================= */

.map-section {
    padding-bottom: 120px;
    background: var(--ivory);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 28px;
}

.map-header h2 {
    margin-top: 10px;
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 2.75rem);
}

.map-header h2 span {
    color: var(--gold);
}

.map-header p {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
}

.map-wrapper {
    height: 470px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: border-color .3s ease, box-shadow .3s ease;
}

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

/* wipe-open reveal */

.js .reveal.reveal-wipe {
    opacity: 1;
    transform: none;
    clip-path: inset(10% 6% 10% 6% round 24px);
    transition: clip-path 1.2s var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.js .reveal.reveal-wipe.active {
    clip-path: inset(0 0 0 0 round 0);
}

.map-card {
    position: absolute;
    left: 25px;
    bottom: 25px;
    width: 340px;
    max-width: calc(100% - 24px);
    padding: 16px 16px 16px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(1, 33, 74, .12);
    box-shadow: 0 15px 35px rgba(1, 33, 74, .15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.map-pin {
    flex: none;
    display: inline-block;
    color: var(--gold);
    font-size: 24px;
    animation: pinBounce 2.4s ease-in-out infinite;
}

.map-card > div {
    flex: 1;
    min-width: 0;
}

.map-card strong {
    color: var(--navy);
    font-size: 14px;
}

.map-card p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.map-card a {
    position: relative;
    overflow: hidden;
    flex: none;
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(184, 150, 78, .55);
    transition:
        background .3s ease,
        color .3s ease,
        transform .3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .map-card a:hover {
        background: var(--gold);
        color: white;
    }
}

/* Phones: the embedded map must not hijack page scrolling.
   Tap the map once to interact; tap elsewhere to release. */

@media (pointer: coarse) {
    .map-wrapper iframe {
        pointer-events: none;
    }

    .map-wrapper.is-active iframe {
        pointer-events: auto;
    }

    .map-wrapper.is-active {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(184, 150, 78, .22), var(--shadow);
    }
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 75px 0 25px;
    background: var(--navy);
    color: white;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

footer .logo-mark {
    border-color: white;
    color: white;
}

footer .logo-mark::after {
    border-color: var(--gold-light);
}

footer .logo strong {
    color: white;
}

footer .logo small {
    color: rgba(255, 255, 255, .55);
}

.footer-brand p {
    max-width: 300px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    color: white;
    font-size: 12px;
    transition:
        border-color .3s ease,
        color .3s ease,
        transform .3s var(--ease-out);
}

.socials a:active {
    transform: scale(.92);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-column h4 {
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    transition: color .25s ease, transform .35s var(--ease-out);
}

.footer-column a {
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow-wrap: anywhere;
}

.footer-column span {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.footer-column a:active {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.footer-bottom div {
    display: flex;
    gap: 8px;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    transition: color .25s ease;
}

.footer-bottom a:active {
    color: white;
}

@media (hover: hover) and (pointer: fine) {
    .footer-column a:hover {
        color: white;
        transform: translateX(4px);
    }

    .socials a:hover {
        border-color: var(--gold-light);
        color: var(--gold-light);
        transform: translateY(-3px);
    }

    .footer-bottom a:hover {
        color: white;
    }

    .contact-alternative a:hover {
        color: var(--gold-light);
    }
}

/* =========================================================
   BACK TO TOP (with scroll-progress ring)
========================================================= */

.back-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px) scale(.8);
    pointer-events: none;
    z-index: 800;
    box-shadow: 0 10px 25px rgba(1, 33, 74, .16), inset 0 0 0 1px rgba(1, 33, 74, .12);
    transition:
        opacity .35s ease,
        transform .55s var(--ease-spring),
        background .3s ease,
        color .3s ease;
}

@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
    .back-top::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        padding: 2px;
        background: conic-gradient(var(--gold) calc(var(--p, 0) * 1%), transparent 0);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }
}

.back-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-top.show:active {
    transform: scale(.9);
}

@media (hover: hover) and (pointer: fine) {
    .back-top.show:hover {
        background: var(--gold);
        color: white;
        transform: translateY(-3px);
    }
}

/* =========================================================
   SCROLL REVEAL
   (only active when JS is running: no JS = content stays visible)
========================================================= */

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity .9s var(--ease-out),
        transform .9s var(--ease-out);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

.js .reveal.reveal-left  { transform: translate3d(-40px, 0, 0); }
.js .reveal.reveal-right { transform: translate3d(40px, 0, 0); }
.js .reveal.reveal-scale { transform: translate3d(0, 24px, 0) scale(.94); }

.js .reveal.active {
    opacity: 1;
    transform: none;
}

/* little pop for numbers once their block has revealed */

.reveal.active .feature-number,
.reveal.active .process-item > span,
.reveal.active > .service-icon {
    animation: pop .7s .25s var(--ease-spring) backwards;
}

.reveal.active .service-icon::after {
    transform: scaleX(1);
}

/* pause every looping animation that is off-screen (battery + smoothness) */

.is-offscreen,
.is-offscreen *,
.is-offscreen::before,
.is-offscreen::after,
.is-offscreen *::before,
.is-offscreen *::after {
    animation-play-state: paused !important;
}

/* =========================================================
   DESKTOP-ONLY HOVER FLOURISHES
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .logo:hover .logo-mark::after {
        animation: ringIn 1.1s var(--ease-out);
    }

    .text-link:hover {
        letter-spacing: .4px;
    }

    .feature:hover h3 {
        transform: translateX(6px);
    }

    .feature:hover .feature-number {
        transform: scale(1.25);
    }

    .service-card:hover {
        transform: translateY(-8px);
        border-color: rgba(184, 150, 78, .4);
        box-shadow: var(--shadow);
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover::after {
        opacity: 1;
    }

    .service-card:hover .service-icon::after {
        transform: scaleX(1.6);
    }

    .service-card a:hover {
        background-size: 100% 1px;
    }

    .process-item:hover {
        background-color: rgba(184, 150, 78, .05);
    }

    .process-item:hover > span {
        transform: scale(1.18);
        color: var(--navy);
    }

    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
}

@keyframes popIn {
    from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.92); }
}

@keyframes wordUp {
    to { transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes cardIntro {
    from { opacity: 0; scale: .8; rotate: -9deg; translate: 0 46px; }
}

@keyframes cardBob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

@keyframes smallIn {
    from { opacity: 0; translate: 54px 12px; scale: .9; }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes ringSpin {
    from { transform: rotateX(65deg) rotateZ(-15deg); }
    to   { transform: rotateX(65deg) rotateZ(345deg); }
}

@keyframes ringSpin2 {
    from { transform: rotateY(65deg) rotateZ(0deg); }
    to   { transform: rotateY(65deg) rotateZ(-360deg); }
}

@keyframes orbDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(14px, -22px, 0) scale(1.08); }
}

@keyframes cornerIn {
    from { transform: translate(-60px, -60px); }
}

@keyframes curveIn {
    from { opacity: 0; transform: translate(-90px, -100px) rotate(-42deg); }
}

@keyframes ringIn {
    from { opacity: 0; transform: rotate(-220deg) scale(.4); }
}

@keyframes lineGrow {
    from { transform: scaleX(0); }
}

@keyframes shine {
    0%, 58%  { transform: translateX(-130%) skewX(-20deg); }
    100%     { transform: translateX(380%) skewX(-20deg); }
}

@keyframes ripple {
    to { transform: scale(1); opacity: 0; }
}

@keyframes ping {
    0%       { transform: scale(1); opacity: .7; }
    70%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

@keyframes marquee {
    to { transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    45%      { transform: translateY(-6px); }
    60%      { transform: translateY(0); }
}

@keyframes pop {
    from { transform: scale(.4); opacity: 0; }
}

@keyframes statPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.14); text-shadow: 0 0 24px rgba(212, 184, 115, .55); }
    100% { transform: scale(1); }
}

/* =========================================================
   TABLET (<= 1100px)
========================================================= */

@media (max-width: 1100px) {

    .about-grid {
        gap: 60px;
    }

    .hero-container {
        gap: 40px;
    }

    .contact-box {
        gap: 50px;
        padding: 56px;
    }
}

/* =========================================================
   MOBILE NAVIGATION + TABLET LAYOUT (<= 900px)
========================================================= */

@media (max-width: 900px) {

    :root {
        --nav-h: 68px;
    }

    .nav-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* slide-down menu with staggered links */

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 6px var(--gutter) calc(22px + env(safe-area-inset-bottom));
        background: var(--ivory);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 25px 40px rgba(1, 33, 74, .14);
        max-height: calc(100svh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-14px);
        transition:
            opacity .3s ease,
            transform .5s var(--ease-out),
            visibility 0s linear .5s;
    }

    nav.active {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        padding: 0 2px;
        font-size: 17px;
        border-bottom: 1px solid var(--border);
        opacity: 0;
        transform: translateY(14px);
        transition:
            opacity .4s ease,
            transform .55s var(--ease-out),
            color .25s ease;
    }

    nav.active a {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--i, 0) * 55ms + 90ms);
    }

    nav a:nth-child(1) { --i: 0; }
    nav a:nth-child(2) { --i: 1; }
    nav a:nth-child(3) { --i: 2; }
    nav a:nth-child(4) { --i: 3; }
    nav a:nth-child(5) { --i: 4; }
    nav a:nth-child(6) { --i: 5; }

    /* chevron instead of the desktop underline */

    nav a::after,
    nav a:hover::after,
    nav a.is-active::after {
        position: static;
        flex: none;
        width: 8px;
        height: 8px;
        background: none;
        border-top: 1.5px solid var(--gold);
        border-right: 1.5px solid var(--gold);
        transform: rotate(45deg);
        transition: transform .35s var(--ease-out);
    }

    nav a.is-active::after {
        transform: rotate(45deg) translate(3px, -3px);
    }

    nav a:active {
        color: var(--gold);
    }

    /* the desktop "Consultation" button, relocated into the menu by script.js */

    nav a.nav-cta {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        min-height: 54px;
        border: 0;
        background: var(--navy);
        color: white;
        font-size: 15px;
        font-weight: 600;
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    nav a.nav-cta::after {
        display: none;
    }

    nav a.nav-cta::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 38%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
        transform: translateX(-130%) skewX(-20deg);
        animation: shine 5s 1s ease-in-out infinite;
        pointer-events: none;
    }

    nav a.nav-cta:active {
        transform: scale(.97);
        color: white;
    }

    .logo strong {
        font-size: 17px;
    }

    /* layout */

    .hero-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 40px);
    }

    .hero-visual {
        min-height: 430px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 44px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* On narrow layouts, sideways reveals become simple rises */

    .js .reveal.reveal-left,
    .js .reveal.reveal-right {
        transform: translate3d(0, 28px, 0);
    }
}

/* =========================================================
   SMALL MOBILE (<= 600px)
========================================================= */

@media (max-width: 600px) {

    .section {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 34px);
        padding-bottom: 56px;
    }

    .hero::before {
        width: 240px;
        height: 170px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 11vw, 2.9rem);
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        min-height: 54px;
        font-size: 16px;
    }

    .hero-trust {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* emblem sized to the screen (no scale hack, nothing gets clipped) */

    .hero-visual {
        min-height: 410px;
        margin-top: 8px;
    }

    .hero-visual::before {
        width: 340px;
        height: 340px;
    }

    .hero-visual::after {
        width: 280px;
        height: 280px;
    }

    .card-main {
        width: min(290px, 78vw);
        min-height: 360px;
        padding: 26px;
    }

    .card-main p {
        font-size: 23px;
    }

    .card-line {
        margin: 26px 0;
    }

    .card-small {
        right: 0;
        bottom: 26px;
        padding: 14px 16px;
        max-width: calc(100% - 8px);
    }

    .orb-one {
        width: 150px;
        height: 150px;
    }

    .orb-two {
        width: 120px;
        height: 120px;
    }

    .logo {
        gap: 10px;
    }

    .logo-mark {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .logo strong {
        font-size: 15px;
        letter-spacing: .2px;
    }

    .logo small {
        font-size: 9px;
        letter-spacing: 1.2px;
        margin-top: 5px;
    }

    .large-text {
        font-size: 21px;
    }

    .feature {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }

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

    .service-card {
        min-height: 0;
        padding: 28px 24px 14px;
    }

    .service-card h3 {
        margin-top: 32px;
        font-size: 23px;
    }

    .service-card p {
        font-size: 15px;
    }

    .service-card a {
        font-size: 14px;
    }

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

    .process-item {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        padding: 30px 4px;
    }

    .process-item:nth-child(odd) {
        border-right: 0;
    }

    .process-item h3 {
        font-size: 22px;
    }

    .process-item p {
        font-size: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 22px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(n + 3) {
        border-bottom: 0;
    }

    .stat strong {
        font-size: 40px;
    }

    .stat span {
        font-size: 13px;
    }

    /* contact: remove the double padding that squeezed the card */

    .contact {
        padding: 64px 0 48px;
    }

    .map-section {
        padding-bottom: 80px;
    }

    .contact-box {
        padding: 26px 18px;
        gap: 36px;
    }

    .contact-action-card {
        padding: 32px 22px;
    }

    .contact-action-card h3 {
        font-size: 28px;
    }

    .contact-action-card p {
        font-size: 15px;
    }

    .contact-details span {
        font-size: 11px;
    }

    .contact-note {
        font-size: 12px;
    }

    .contact-alternative a {
        font-size: 14px;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .map-wrapper {
        height: 440px;
    }

    .map-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
        padding: 12px 12px 12px 16px;
    }

    .map-card a {
        font-size: 13px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-brand p,
    .footer-column a,
    .footer-column span {
        font-size: 14px;
    }

    .footer-column a,
    .footer-column span {
        min-height: 44px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: 13px;
    }

    .footer-bottom div {
        gap: 0;
        margin-left: -8px;
    }

    .marquee span {
        font-size: 12px;
    }

    .eyebrow,
    .section-label {
        font-size: 11px;
    }
}

/* very narrow phones (<= 360px) */

@media (max-width: 360px) {

    .hero h1 {
        font-size: 2.2rem;
    }

    .logo small {
        display: none;
    }

    .contact-action-card h3 {
        font-size: 25px;
    }
}

/* any touch device (incl. tablets): footer links meet the 44px guideline */

@media (pointer: coarse) {

    .footer-column a,
    .footer-column span {
        min-height: 44px;
    }
}

/* landscape phones: don't force a full-height hero */

@media (max-height: 520px) and (orientation: landscape) {

    .hero {
        min-height: auto;
        padding-bottom: 50px;
    }
}

/* =========================================================
   REDUCED MOTION: everything still works, nothing moves
========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }

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

    .marquee-track {
        animation: none !important;
    }
}

/* =========================================================
   MOTION PACK v2: loader, typing, cursor, popup, music
========================================================= */

/* ---- loader ---- */
.loader{position:fixed;inset:0;z-index:3000;display:grid;place-content:center;justify-items:center;gap:26px;background:var(--navy);transition:transform .9s var(--ease-out);animation:loaderFail 0s 5s forwards}
.loader.hide{transform:translateY(-100%)}
.loader-mark{position:relative;width:92px;height:92px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;font:500 38px "Playfair Display",Georgia,serif;animation:pop .8s var(--ease-spring) backwards}
.loader-mark::after{content:"";position:absolute;inset:7px;border:1px solid transparent;border-top-color:var(--gold-light);border-right-color:var(--gold-light);border-radius:50%;animation:spin 1.1s linear infinite}
.loader-bar{display:block;width:150px;height:2px;background:rgba(255,255,255,.15);position:relative;overflow:hidden}
.loader-bar::after{content:"";position:absolute;inset:0;background:var(--gold);transform-origin:left;animation:lineGrow 1.3s .2s var(--ease-out) backwards}
@keyframes loaderFail{to{visibility:hidden;opacity:0}}
/* hold the page's own intro animations until the loader lifts */
.is-loading *,.is-loading *::before,.is-loading *::after{animation-play-state:paused!important}
.is-loading .loader,.is-loading .loader *,.is-loading .loader *::after{animation-play-state:running!important}

/* ---- typing ---- */
.tw{position:relative;display:block;color:transparent!important}
.section-label.tw{display:inline-block}
.tw-live{position:absolute;left:0;top:0;width:100%;color:var(--gold)}
.tw-live.on::after{content:"";display:inline-block;width:2px;height:1em;margin-left:3px;vertical-align:-.15em;background:var(--gold);animation:blink .8s steps(1) infinite}
.tw-live.end::after{opacity:0;animation:none}
@keyframes blink{50%{opacity:0}}

/* ---- cursor (mouse only), tap burst, magnetic buttons ---- */
.cur-dot,.cur-ring{position:fixed;left:0;top:0;z-index:3500;pointer-events:none;opacity:0;transition:opacity .3s}
.cur-dot{width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--gold)}
.cur-ring{width:38px;height:38px;margin:-19px 0 0 -19px}
.cur-ring i{display:block;width:100%;height:100%;border:1.5px solid var(--gold);border-radius:50%;transition:transform .35s var(--ease-out),background .35s}
.cur-on .cur-dot,.cur-on .cur-ring{opacity:1}
.cur-ring.is-hover i{transform:scale(1.7);background:rgba(184,150,78,.12)}
.cur-ring.is-down i{transform:scale(.7)}
.service-card{cursor:pointer}
.burst{position:fixed;z-index:3600;width:0;height:0;pointer-events:none}
.burst i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--gold-light);animation:burst .65s var(--ease-out) forwards}
@keyframes burst{to{transform:rotate(var(--a)) translateX(38px) scale(0);opacity:0}}
.sheet-cta{position:relative;overflow:hidden}

/* ---- service popup / bottom sheet ---- */
.sheet{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center;visibility:hidden;transition:visibility 0s .5s}
.sheet.open{visibility:visible;transition-delay:0s}
.sheet-bg{position:absolute;inset:0;background:rgba(0,23,47,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .4s ease}
.sheet.open .sheet-bg{opacity:1}
.sheet-panel{position:relative;width:100%;max-width:560px;max-height:88vh;max-height:88svh;overflow:auto;overscroll-behavior:contain;padding:12px 26px calc(30px + env(safe-area-inset-bottom));background:#fff;border-radius:24px 24px 0 0;box-shadow:var(--shadow-heavy);transform:translate3d(0,105%,0);transition:transform .55s var(--ease-out)}
.sheet.open .sheet-panel{transform:none}
.sheet-panel.drag{transition:none}
.sheet-panel::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--navy),var(--gold))}
.sheet-grab{display:block;width:42px;height:4px;margin:6px auto 14px;border-radius:4px;background:rgba(1,33,74,.2)}
.sheet-x{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--navy);font-size:30px;line-height:1;cursor:pointer}
.sheet-num{color:rgba(184,150,78,.2);font:600 88px/1 "Playfair Display",Georgia,serif}
.sheet-panel h3{margin-top:6px;color:var(--navy);font:600 27px/1.25 "Playfair Display",Georgia,serif}
.sheet-panel p{margin:14px 0 26px;color:var(--muted);font-size:16px}
.sheet-cta{display:flex;align-items:center;justify-content:center;min-height:56px;padding:0 20px;background:var(--gold);color:#fff;font-weight:700;font-size:15px;text-align:center;transition:transform .3s var(--ease-out)}
.sheet-cta:active{transform:scale(.97)}
.sheet.open .sheet-num{animation:pop .7s .15s var(--ease-spring) backwards}
.sheet.open h3{animation:fadeUp .6s .2s var(--ease-out) backwards}
.sheet.open p{animation:fadeUp .6s .28s var(--ease-out) backwards}
.sheet.open .sheet-cta{animation:popIn .7s .36s var(--ease-spring) backwards}
body.sheet-open{overflow:hidden}
@media (min-width:700px){
  .sheet{align-items:center}
  .sheet-panel{padding:26px 42px 42px;border-radius:20px;opacity:0;transform:translate3d(0,30px,0) scale(.94);transition:transform .55s var(--ease-spring),opacity .35s ease}
  .sheet.open .sheet-panel{opacity:1;transform:none}
  .sheet-grab{display:none}
}

/* ---- music button ---- */
/* 
.snd{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:800;width:48px;height:48px;display:flex;align-items:center;justify-content:center;gap:3px;border:0;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 10px 25px rgba(1,33,74,.16),inset 0 0 0 1px rgba(1,33,74,.12);transition:box-shadow .3s,transform .3s var(--ease-out);animation:popIn .8s 1.6s var(--ease-spring) backwards}
.snd i{width:3px;height:18px;border-radius:2px;background:var(--navy);opacity:.55;transform:scaleY(.5);transition:transform .3s,opacity .3s}
.snd i:nth-child(2){transform:scaleY(.95)}
.snd i:nth-child(3){transform:scaleY(.65)}
.snd.on{box-shadow:0 10px 25px rgba(1,33,74,.16),inset 0 0 0 2px var(--gold)}
.snd.on i{opacity:1;animation:eq 1s ease-in-out infinite}
.snd.on i:nth-child(2){animation-delay:-.4s}
.snd.on i:nth-child(3){animation-delay:-.75s}
.snd:active{transform:scale(.9)}
@keyframes eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}} */

@media (prefers-reduced-motion:reduce){
  .loader{transition:none}
  .cur-dot,.cur-ring,.burst{display:none}
}
