/* ==========================================================================
   SAARTHI - NAVBAR
   Gold-on-white chrome; service menus carry colour. Spotlight services
   (Meta, LinkedIn, Social) use tones drawn from those platforms.
   ========================================================================== */

:root {
    --brand-gold-pale: #E8D3A0;
    --brand-gold: #C6A45F;
    --brand-gold-deep: #A47B35;
    --brand-ink: #2A2620;
    --brand-ink-deep: #17150F;
    --brand-champagne: #DFC88E;
    --brand-bronze: #8A6A2E;
    --brand-gold-light: #F1DDA8;
    --brand-copper-light: #C9954A;
    --brand-copper: #A8692C;
    --brand-ink-soft: #1F1A17;

    --brand-gradient: linear-gradient(135deg, #B58C45 0%, var(--brand-gold-deep) 45%, #7A5A22 100%);
    --brand-gradient-sheen: linear-gradient(90deg, var(--brand-gold-deep) 0%, var(--brand-gold) 30%, var(--brand-gold-pale) 50%, var(--brand-gold) 70%, var(--brand-gold-deep) 100%);

    --bar-h: 74px;
    --header-h: var(--bar-h);   /* full header height at the top of the page */
    --nav-height: var(--header-h);                     /* kept in sync by JS for anchor offsets */
    --island-x: max(12px, calc((100vw - 1320px) / 2));
    --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-padding-top: calc(var(--nav-height) + 16px); }

/* -------------------------------------------------------
   COLOUR TONES — set --tone / --tone-2 and everything inside follows
------------------------------------------------------- */
.tone-gold     { --tone: #A47B35; --tone-2: #6E5020; }
.tone-meta     { --tone: #0866FF; --tone-2: #7B3FF2; }
.tone-linkedin { --tone: #0A66C2; --tone-2: #0891B2; }
.tone-social   { --tone: #E1306C; --tone-2: #F77737; --tone-3: #833AB4; }
.tone-violet   { --tone: #7C3AED; --tone-2: #A855F7; }
.tone-blue     { --tone: #2563EB; --tone-2: #0EA5E9; }
.tone-rose     { --tone: #E11D48; --tone-2: #F97316; }
.tone-emerald  { --tone: #059669; --tone-2: #10B981; }
.tone-orange   { --tone: #EA580C; --tone-2: #F59E0B; }
.tone-teal     { --tone: #0D9488; --tone-2: #06B6D4; }
[class*="tone-"] {
    --tone-soft: color-mix(in srgb, var(--tone) 9%, #ffffff);
    --tone-line: color-mix(in srgb, var(--tone) 22%, #ffffff);
    --tone-gradient: linear-gradient(135deg, var(--tone) 0%, var(--tone-2) 100%);
}
.tone-social { --tone-gradient: linear-gradient(135deg, #833AB4 0%, #E1306C 55%, #F77737 100%); }

/* -------------------------------------------------------
   HEADER SHELL
------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: transform 0.5s var(--nav-ease);
}
/* Slides away while reading down the page, returns on any scroll up.
   (Only transformed while hidden: a transform would trap the fixed mobile drawer.) */
.site-header.is-tucked { transform: translateY(calc(-100% - 12px)); }
/* Open drawer must sit above the cookie notice (1150) and toasts (1200) */
.site-header:has(.navbar.menu-open) { z-index: 1300; }

/* -------------------------------------------------------
   MAIN BAR — full-width at the top, floats as an island once scrolled
------------------------------------------------------- */
.navbar {
    position: relative;
    padding: 13px 0;
    transition: padding 0.45s var(--nav-ease);
}
/* Glass lives on a pseudo-element: a backdrop-filter on .navbar itself would
   become the containing block for the fixed mobile drawer and trap it. */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(42, 38, 32, 0.07);
    border-radius: 0;
    transition: inset 0.5s var(--nav-ease), border-radius 0.5s var(--nav-ease), box-shadow 0.4s ease, background 0.4s ease;
}
.site-header.scrolled .navbar { padding: 18px 0 8px; }
.site-header.scrolled .navbar::before {
    inset: 10px var(--island-x) 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(42, 38, 32, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -18px rgba(31, 28, 23, 0.28);
}

.navbar .container { position: static; }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 48px;
}
.site-header.scrolled .navbar-inner { padding: 0 1rem; }

/* Brand */
.navbar-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo-img { height: 46px; width: auto; object-fit: contain; transition: height 0.45s var(--nav-ease); }
.site-header.scrolled .brand-logo-img { height: 40px; }

/* -------------------------------------------------------
   DESKTOP LINKS
------------------------------------------------------- */
.navbar-nav-container { display: flex; align-items: center; }
.drawer-body { display: contents; }
.drawer-spotlight { display: none; }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-item { position: static; }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 48px;
    padding: 0 0.95rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A443C;
    white-space: nowrap;
    transition: color 0.25s ease;
}
/* Gold hairline grows from the centre on hover; stays on the current page */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient-sheen);
    transform: scaleX(0);
    transition: transform 0.4s var(--nav-ease);
}
.has-dropdown .nav-link::after { right: 1.85rem; }
.nav-link:hover,
.has-dropdown:hover > .nav-link,
.has-dropdown:focus-within > .nav-link { color: var(--brand-ink-deep); }
.nav-link:hover::after,
.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand-ink-deep); font-weight: 600; }

.dropdown-arrow {
    font-size: 0.58rem;
    opacity: 0.5;
    transition: transform 0.35s var(--nav-ease), opacity 0.2s ease;
}
.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); opacity: 1; color: var(--brand-gold-deep); }

/* -------------------------------------------------------
   MEGA DROPDOWNS (desktop) — anchored to the whole bar, centred
------------------------------------------------------- */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: min(1180px, calc(100vw - 32px));
    transform: translate(-50%, 12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Close delay = hover intent, so diagonal pointer moves don't snap it shut */
    transition: opacity 0.22s ease 0.1s, transform 0.3s var(--nav-ease) 0.1s, visibility 0s linear 0.4s;
    z-index: 2;
}
.mega-about { width: min(980px, calc(100vw - 32px)); }
/* Invisible bridge across the gap between the bar and the panel */
.mega-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }

.has-dropdown:hover > .mega-dropdown,
.has-dropdown:focus-within > .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity 0.3s var(--nav-ease) 0.06s, transform 0.45s var(--nav-ease) 0.06s, visibility 0s;
}

.mega-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(42, 38, 32, 0.08);
    box-shadow: 0 50px 100px -30px rgba(23, 21, 15, 0.38), 0 18px 36px -18px rgba(23, 21, 15, 0.18);
    padding: 1rem;
}

.mp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-gold-deep);
}
.mp-eyebrow-light { color: var(--brand-gold); }


/* ---------- Services ---------- */
/* Same unfold as About; then the aside and columns arrive in sequence */
.has-dropdown:is(:hover, :focus-within) > .mega-services .mega-panel { animation: aboutReveal 0.75s var(--nav-ease) backwards; }
@keyframes svcRise { from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes svcFromLeft { from { opacity: 0; transform: translateX(-18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes svcSlide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes bannerWipe { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }

/* Global `a:hover` turns links gold; text on colour must stay white */
.spot-card:hover, .svc-audit:hover, .spot-tile:hover { color: #ffffff; }
.af-cta:hover { color: var(--brand-ink-deep); }
.svc-col-head:hover { color: inherit; }

/* Two zones side by side keeps the whole menu within one screen */
.services-panel { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.15rem; padding: 1.1rem; }

.svc-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.svc-label-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold-deep); }
.svc-label-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brand-gold); animation: spotPulse 2s var(--nav-ease) infinite; }

/* ---- Aside: spotlight rows ---- */
.svc-aside { display: flex; flex-direction: column; min-width: 0; }
.svc-spotlight { display: flex; flex-direction: column; gap: 0.55rem; }
.spot-card {
    --lift: 0px;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.8rem 0.8rem 0.85rem;
    border-radius: 16px;
    color: #ffffff;
    background: var(--tone-gradient);
    overflow: hidden;
    isolation: isolate;
    transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift));
    box-shadow: 0 12px 26px -18px var(--tone), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transition: transform 0.5s var(--nav-ease), box-shadow 0.5s var(--nav-ease);
}
.has-dropdown:is(:hover, :focus-within) .spot-card { animation: svcFromLeft 0.7s var(--nav-ease) backwards; }
.spot-card:nth-child(1) { animation-delay: 0.12s !important; }
.spot-card:nth-child(2) { animation-delay: 0.19s !important; }
.spot-card:nth-child(3) { animation-delay: 0.26s !important; }
.spot-card:hover { --lift: -3px; box-shadow: 0 20px 34px -18px var(--tone), inset 0 0 0 1px rgba(255, 255, 255, 0.24); }

.spot-card-mesh { position: absolute; inset: 0; z-index: -3; }
.spot-card-mesh i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(24px); }
.spot-card-mesh i:first-child { top: -70%; left: -10%; background: rgba(255, 255, 255, 0.4); opacity: 0.6; animation: meshA 9s ease-in-out infinite alternate; }
.spot-card-mesh i:last-child { bottom: -80%; right: -10%; background: var(--tone-3, var(--tone-2)); opacity: 0.85; animation: meshB 11s ease-in-out infinite alternate; }
@keyframes meshA { to { transform: translate(60%, 30%) scale(1.15); } }
@keyframes meshB { to { transform: translate(-50%, -25%) scale(0.9); } }
.spot-card-light {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(180px circle at var(--mx, 15%) var(--my, 0%), rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0.55;
    transition: opacity 0.4s ease;
}
.spot-card:hover .spot-card-light { opacity: 1; }
.spot-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg);
    transition: left 0.9s var(--nav-ease);
    pointer-events: none;
}
.spot-card:hover::after { left: 130%; }
.spot-card-bg {
    position: absolute;
    right: 34px;
    bottom: -22px;
    z-index: -2;
    font-size: 4.6rem;
    line-height: 1;
    opacity: 0.12;
    transform: rotate(-12deg);
    transition: transform 0.8s var(--nav-ease), opacity 0.4s ease;
}
.spot-card:hover .spot-card-bg { transform: rotate(0deg) scale(1.1); opacity: 0.2; }
.spot-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s var(--nav-ease), background 0.3s ease;
}
.spot-card-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: spotPulse 2.6s var(--nav-ease) infinite;
}
@keyframes spotPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
.spot-card:hover .spot-card-icon { transform: rotate(-8deg) scale(1.06); background: rgba(255, 255, 255, 0.28); }
.spot-card-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.spot-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; min-width: 0; }
.spot-card-title { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.spot-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tone);
    background: #ffffff;
}
.spot-card-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: badgeBlink 1.6s ease-in-out infinite; }
@keyframes badgeBlink { 50% { opacity: 0.25; } }
.spot-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}
.spot-card-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--nav-ease);
}
.spot-card:hover .spot-card-go { color: var(--tone); background: #ffffff; transform: rotate(-45deg); }
.spot-card.is-current { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--tone); }

/* Audit offer: dark card, drifting gold glow, circling gold edge */
.svc-audit {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.7rem;
    padding: 0.8rem 0.8rem 0.8rem 0.85rem;
    border-radius: 16px;
    color: #ffffff;
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, #2A2620, #14120F) padding-box,
        conic-gradient(from var(--cta-angle), #3A3226, var(--brand-gold-pale), #3A3226 35%, var(--brand-gold) 65%, #3A3226) border-box;
    overflow: hidden;
    isolation: isolate;
    animation: ctaSpin 6s linear infinite;
    transition: transform 0.4s var(--nav-ease), box-shadow 0.4s ease;
}
.has-dropdown:is(:hover, :focus-within) .svc-audit { animation: ctaSpin 6s linear infinite, svcFromLeft 0.7s 0.33s var(--nav-ease) backwards; }
.svc-audit:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -18px rgba(23, 21, 15, 0.8); }
.svc-audit-glow {
    position: absolute;
    z-index: -1;
    width: 140px;
    height: 140px;
    right: -40px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 164, 95, 0.4), transparent 65%);
    animation: auditGlow 7s ease-in-out infinite alternate;
}
@keyframes auditGlow { to { transform: translate(-120px, 40px); } }
.svc-audit-spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--brand-ink-deep);
    background: var(--brand-gradient-sheen);
}
.svc-audit-spark i { animation: sparkTwinkle 2.4s ease-in-out infinite; }
@keyframes sparkTwinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-14deg) scale(1.15); } }
.svc-audit-text { display: flex; flex-direction: column; min-width: 0; }
.svc-audit-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-gold); }
.svc-audit-text strong { font-size: 0.92rem; font-weight: 700; color: #ffffff; }
.svc-audit-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--brand-ink-deep);
    background: var(--brand-gradient-sheen);
    background-size: 200% 100%;
    transition: transform 0.45s var(--nav-ease), background-position 0.6s ease;
}
.svc-audit:hover .svc-audit-go { transform: rotate(-45deg); background-position: 100% 0; }

/* ---- Main: category columns ---- */
.svc-main { display: flex; flex-direction: column; min-width: 0; }
.svc-main-head { display: flex; align-items: center; justify-content: space-between; }
.svc-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gray-700);
    background: linear-gradient(var(--brand-gold-deep), var(--brand-gold-deep)) left bottom / 0 1px no-repeat;
    transition: background-size 0.4s var(--nav-ease), color 0.2s ease;
}
.svc-all i { font-size: 0.62rem; transition: transform 0.35s var(--nav-ease); }
.svc-all:hover { color: var(--brand-ink-deep); background-size: 100% 1px; }
.svc-all:hover i { transform: translateX(3px); }

/* Up to 4 areas share one row on laptops; a 5th wraps to a new row */
.svc-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.8rem; }
.svc-col { min-width: 0; --col-delay: 0.28s; }
.svc-col:nth-child(2) { --col-delay: 0.36s; }
.svc-col:nth-child(n+3) { --col-delay: 0.44s; }
.has-dropdown:is(:hover, :focus-within) .svc-col { animation: svcRise 0.7s var(--nav-ease) backwards; animation-delay: calc(var(--col-delay) - 0.1s); }

.svc-col-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: 0.6rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(42, 38, 32, 0.07);
}
.svc-col-media {
    position: relative;
    grid-column: 1 / -1;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    background: var(--tone-gradient);
}
.has-dropdown:is(:hover, :focus-within) .svc-col-media { animation: bannerWipe 0.9s var(--nav-ease) backwards; animation-delay: var(--col-delay); }
.svc-col-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.4s var(--nav-ease);
}
.svc-col-head:hover .svc-col-media img { transform: scale(1.14); }
/* Tint photos with the column colour so mixed images still read as one set */
.svc-col-media.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(15, 12, 8, 0.55) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--tone) 55%, transparent) 0%, transparent 65%);
}
.svc-col-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
    background-size: 12px 12px;
    animation: afDrift 14s linear infinite;
}
.svc-col-pattern i {
    position: absolute;
    right: 12px;
    top: 50%;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) rotate(-10deg);
    transition: transform 0.8s var(--nav-ease), color 0.4s ease;
}
.svc-col-head:hover .svc-col-pattern i { transform: translateY(-50%) rotate(0deg) scale(1.15); color: rgba(255, 255, 255, 0.34); }
.svc-col-media::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50%;
    z-index: 2;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-18deg);
    transition: left 1s var(--nav-ease);
}
.svc-col-head:hover .svc-col-media::before { left: 130%; }
.svc-col-count {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 3;
    padding: 0.14rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(15, 12, 8, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}
.svc-col-icon {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #ffffff;
    background: var(--tone-gradient);
    border: 3px solid #ffffff;
    box-shadow: 0 8px 16px -10px var(--tone);
    transition: transform 0.5s var(--nav-ease);
}
.svc-col-head:hover .svc-col-icon { transform: translateY(-3px) rotate(-6deg); }
.svc-col-text { display: flex; flex-direction: column; min-width: 0; padding-top: 0.35rem; }
.svc-col-text strong { font-size: 0.86rem; font-weight: 700; line-height: 1.25; color: var(--gray-900); letter-spacing: -0.01em; transition: color 0.25s ease; }
.svc-col-sub { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; color: var(--tone); }
.svc-col-sub i { font-size: 0.58rem; transition: transform 0.35s var(--nav-ease); }
.svc-col-head:hover strong { color: var(--tone); }
.svc-col-head:hover .svc-col-sub i { transform: translateX(4px); }

/* Service rows with a highlight that glides to the hovered row */
.svc-list { position: relative; list-style: none; margin: 0; padding: 0; }
.svc-list > li { position: relative; z-index: 1; }
.has-dropdown:is(:hover, :focus-within) .svc-list > li:not(.svc-glide) { animation: svcSlide 0.5s var(--nav-ease) backwards; }
.svc-list > li:nth-child(2) { animation-delay: calc(var(--col-delay) + 0.12s) !important; }
.svc-list > li:nth-child(3) { animation-delay: calc(var(--col-delay) + 0.17s) !important; }
.svc-list > li:nth-child(4) { animation-delay: calc(var(--col-delay) + 0.22s) !important; }
.svc-list > li:nth-child(5) { animation-delay: calc(var(--col-delay) + 0.27s) !important; }
.svc-list > li:nth-child(n+6) { animation-delay: calc(var(--col-delay) + 0.32s) !important; }
.svc-glide {
    position: absolute !important;
    z-index: 0 !important;
    left: 0;
    right: 0;
    top: 0;
    height: var(--gh, 36px);
    border-radius: 10px;
    background: var(--tone-soft);
    box-shadow: inset 0 0 0 1px var(--tone-line);
    transform: translateY(var(--gy, 0px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--nav-ease), height 0.4s var(--nav-ease), opacity 0.25s ease;
}
.svc-list.is-gliding .svc-glide { opacity: 1; }
.svc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 40px;
    padding: 0.3rem 0.45rem 0.3rem 0.36rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--gray-700);
    transition: color 0.2s ease;
}
.svc-list > li + li:not(.svc-glide) { margin-top: 1px; }
.svc-item:hover { color: var(--gray-900); }
.svc-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 0.74rem;
    color: var(--tone);
    background: var(--tone-soft);
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--nav-ease);
}
.svc-item:hover .svc-item-icon { color: #ffffff; background: var(--tone); background-image: var(--tone-gradient); transform: scale(1.06); }
.svc-item-label { flex: 1; min-width: 0; transition: transform 0.35s var(--nav-ease); }

/* Popular / New: a small round icon that opens into a label when the row is hovered */
.svc-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    height: 22px;
    max-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.6rem;
    transition: max-width 0.45s var(--nav-ease), gap 0.45s var(--nav-ease), padding 0.45s var(--nav-ease), box-shadow 0.3s ease;
}
.svc-flag i { width: 10px; text-align: center; }
.svc-flag-text { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s ease; }
.svc-flag-popular { color: #C2410C; background: #FFEDD5; }
.svc-flag-new { color: #047857; background: #D1FAE5; }
.svc-flag-popular i { animation: flagFlicker 2.4s ease-in-out infinite; }
@keyframes flagFlicker { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(0.95); } }
.svc-item:hover .svc-flag, .svc-item:focus-visible .svc-flag { max-width: 92px; gap: 0.3rem; padding: 0 0.5rem; box-shadow: 0 4px 10px -6px currentColor; }
.svc-item:hover .svc-flag-text, .svc-item:focus-visible .svc-flag-text { opacity: 1; }
.svc-flag + .svc-item-go { display: none; }
.svc-item:hover .svc-item-label { transform: translateX(2px); }
.svc-item-go { font-size: 0.64rem; color: var(--tone); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.35s var(--nav-ease); }
.svc-item:hover .svc-item-go { opacity: 1; transform: none; }
.svc-item.is-current { color: var(--tone); font-weight: 600; }
.svc-empty { padding: 0.5rem 0.6rem; font-size: 0.82rem; color: var(--gray-500); }

.ms-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.ms-badge-new { color: #047857; background: #D1FAE5; }
.ms-badge-popular { color: #9A3412; background: #FFEDD5; }

/* Phone-only parts of the Services menu */
.svc-col-count-m, .svc-col-chevron, .svc-explore-m, .svc-mobile-foot { display: none; }

/* Four or more areas: give the columns more room */
.services-panel:has(.svc-col:nth-child(4)) { grid-template-columns: 272px minmax(0, 1fr); }
.services-panel:has(.svc-col:nth-child(4)) .spot-card-desc { -webkit-line-clamp: 1; }

/* Narrower laptops: slimmer aside */
@media (min-width: 1025px) and (max-width: 1279px) {
    .services-panel { grid-template-columns: 280px minmax(0, 1fr); }
    .svc-columns { gap: 0.6rem; }
}

/* ---------- About ---------- */
/* Open state shorthand: .has-dropdown:is(:hover, :focus-within) */
.about-panel { display: grid; grid-template-columns: 300px 1fr; gap: 0.9rem; padding: 0.9rem; }

/* Panel unfolds top-down instead of just fading */
.has-dropdown:is(:hover, :focus-within) > .mega-about .mega-panel { animation: aboutReveal 0.75s var(--nav-ease) backwards; }
@keyframes aboutReveal {
    from { clip-path: inset(0 0 100% 0 round 24px); }
    to   { clip-path: inset(0 0 0 0 round 24px); }
}

/* Feature card: aurora + drifting grid + cursor light + gentle 3D tilt */
.af-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.25rem 1.15rem;
    border-radius: 18px;
    color: #ffffff;
    background: #14120F;
    overflow: hidden;
    isolation: isolate;
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
    transition: transform 0.6s var(--nav-ease), box-shadow 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(232, 211, 160, 0.08);
}
.af-panel:hover { box-shadow: inset 0 0 0 1px rgba(232, 211, 160, 0.2), 0 24px 40px -24px rgba(23, 21, 15, 0.8); }
.af-aurora {
    position: absolute;
    inset: -45%;
    z-index: -3;
    background: conic-gradient(from 0deg at 65% 35%, transparent 0deg, rgba(198, 164, 95, 0.42) 70deg, transparent 140deg, rgba(201, 149, 74, 0.26) 220deg, transparent 300deg);
    filter: blur(34px);
    animation: afSpin 16s linear infinite;
}
@keyframes afSpin { to { transform: rotate(360deg); } }
.af-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(circle at 85% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at 85% 0%, #000 0%, transparent 70%);
    animation: afDrift 18s linear infinite;
}
@keyframes afDrift { to { background-position: 24px 24px, 24px 24px; } }
.af-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(240px circle at var(--mx, 75%) var(--my, 10%), rgba(232, 211, 160, 0.2), transparent 65%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.af-panel:hover .af-spot { opacity: 1; }
.af-sheen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}
.has-dropdown:is(:hover, :focus-within) .af-sheen { animation: afSheen 1.4s 0.35s var(--nav-ease) both; }
@keyframes afSheen { to { left: 140%; } }

.af-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 0.8rem; }
/* Emblem framed by a slowly turning gold ring */
.af-emblem {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    animation: afFloat 4.5s ease-in-out infinite;
}
.af-emblem::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from var(--cta-angle), #6E5020, var(--brand-gold-pale), #6E5020 35%, var(--brand-gold) 65%, #6E5020);
    animation: ctaSpin 4s linear infinite;
}
.af-emblem::after { content: ''; position: absolute; inset: 2px; border-radius: 11px; background: #ffffff; }
.af-emblem img { position: relative; z-index: 1; width: 26px; height: auto; }
@keyframes afFloat { 50% { transform: translateY(-4px); } }

/* Title rises in word by word */
.af-title { margin: 0.45rem 0 0.4rem; font-size: 1.25rem; line-height: 1.22; color: #ffffff; }
.af-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.af-word > * { display: inline-block; }
.has-dropdown:is(:hover, :focus-within) .af-word > * { animation: afWordUp 0.8s var(--nav-ease) both; }
.af-word:nth-child(1) > * { animation-delay: 0.12s !important; }
.af-word:nth-child(2) > * { animation-delay: 0.17s !important; }
.af-word:nth-child(3) > * { animation-delay: 0.22s !important; }
.af-word:nth-child(4) > * { animation-delay: 0.27s !important; }
.af-word:nth-child(5) > * { animation-delay: 0.32s !important; }
@keyframes afWordUp { from { transform: translateY(110%); } to { transform: none; } }
.af-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-gold-pale) 25%, var(--brand-gold) 50%, var(--brand-gold-pale) 75%, var(--brand-gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.has-dropdown:is(:hover, :focus-within) .af-title em { animation: afWordUp 0.8s var(--nav-ease) both, afShine 4s linear 1s infinite; }
@keyframes afShine { to { background-position: -200% 0; } }

.af-desc { font-size: 0.8rem; line-height: 1.55; color: rgba(255, 255, 255, 0.64); }
.has-dropdown:is(:hover, :focus-within) :is(.af-desc, .af-stats, .af-cta, .af-panel .mp-eyebrow) { animation: afFade 0.7s var(--nav-ease) backwards; }
.has-dropdown:is(:hover, :focus-within) .af-panel .mp-eyebrow { animation-delay: 0.05s; }
.has-dropdown:is(:hover, :focus-within) .af-desc { animation-delay: 0.36s; }
.has-dropdown:is(:hover, :focus-within) .af-stats { animation-delay: 0.44s; }
.has-dropdown:is(:hover, :focus-within) .af-cta { animation-delay: 0.52s; }
@keyframes afFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.af-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%; margin-top: 0.85rem; }
.af-stat {
    position: relative;
    padding: 0.55rem 0.7rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.af-stat:hover { border-color: rgba(232, 211, 160, 0.3); background: rgba(255, 255, 255, 0.07); }
.af-stat strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; color: var(--brand-gold-pale); font-variant-numeric: tabular-nums; }
.af-stat span { display: block; margin-top: 0.2rem; font-size: 0.7rem; line-height: 1.35; color: rgba(255, 255, 255, 0.6); }
.af-stat-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand-gradient-sheen);
    transform: scaleX(0);
    transform-origin: left center;
}
.has-dropdown:is(:hover, :focus-within) .af-stat-bar { animation: afBar 1.3s 0.5s var(--nav-ease) both; }
.has-dropdown:is(:hover, :focus-within) .af-stat:nth-child(2) .af-stat-bar { animation-delay: 0.65s; }
@keyframes afBar { to { transform: scaleX(1); } }

.af-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand-ink-deep);
    background: var(--brand-gradient-sheen);
    background-size: 200% 100%;
    transition: background-position 0.6s ease, transform 0.35s var(--nav-ease), box-shadow 0.35s ease;
}
.af-stats + .af-cta, .af-desc + .af-cta { margin-top: 0.95rem; }
.af-cta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.7rem;
    color: #ffffff;
    background: var(--brand-ink-deep);
    transition: transform 0.4s var(--nav-ease);
}
.af-cta:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(198, 164, 95, 0.6); }
.af-cta:hover i { transform: rotate(-45deg); }

/* Links: cursor spotlight in each link's own colour */
.about-main { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.about-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; flex: 1; align-content: space-evenly; }
.mp-link {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid transparent;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.3s ease, box-shadow 0.4s var(--nav-ease), transform 0.4s var(--nav-ease);
}
.mp-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--tone-soft), transparent 75%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mp-link:hover { border-color: var(--tone-line); transform: translateY(-2px); box-shadow: 0 14px 28px -20px var(--tone); }
.mp-link:hover::before { opacity: 1; }
.mp-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 0.9rem;
    color: var(--tone);
    background: var(--tone-soft);
    transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--nav-ease), box-shadow 0.35s ease;
}
.mp-link:hover .mp-link-icon { color: #ffffff; background: var(--tone-gradient); transform: rotate(-8deg) scale(1.06); box-shadow: 0 10px 18px -10px var(--tone); }
.mp-link-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mp-link-body strong { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; transition: color 0.25s ease; }
.mp-link-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.76rem; line-height: 1.4; color: var(--gray-500); }
.mp-link:hover .mp-link-body strong { color: var(--tone); }
.mp-link-go {
    align-self: center;
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--tone);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.4s var(--nav-ease);
}
.mp-link:hover .mp-link-go { opacity: 1; transform: none; }
.mp-link.is-current { background: var(--tone-soft); border-color: var(--tone-line); }

.has-dropdown:is(:hover, :focus-within) .about-links .mp-link { animation: mpIn 0.65s var(--nav-ease) backwards; }
.about-links .mp-link:nth-child(1) { animation-delay: 0.1s !important; }
.about-links .mp-link:nth-child(2) { animation-delay: 0.15s !important; }
.about-links .mp-link:nth-child(3) { animation-delay: 0.2s !important; }
.about-links .mp-link:nth-child(4) { animation-delay: 0.25s !important; }
.about-links .mp-link:nth-child(5) { animation-delay: 0.3s !important; }
.about-links .mp-link:nth-child(6) { animation-delay: 0.35s !important; }
@keyframes mpIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* How we work: a gold line runs through four stages, lighting each one */
.about-flow {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
    padding: 0.7rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(90deg, #FAF6EC 0%, #FDFBF6 100%);
    border: 1px solid rgba(164, 123, 53, 0.14);
}
.has-dropdown:is(:hover, :focus-within) .about-flow { animation: afFade 0.7s 0.3s var(--nav-ease) backwards; }
.af-flow-label {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-gold-deep);
    writing-mode: horizontal-tb;
}
.af-flow {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}
.af-flow::before,
.af-flow::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-radius: 2px;
    background: rgba(42, 38, 32, 0.1);
}
.af-flow::after {
    background: linear-gradient(90deg, var(--brand-gold), #7C3AED, #2563EB, #059669);
    transform: scaleX(0);
    transform-origin: left center;
}
.has-dropdown:is(:hover, :focus-within) .af-flow::after { animation: afBar 1.5s 0.45s cubic-bezier(0.65, 0, 0.35, 1) both; }
.af-flow li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.af-flow-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.66rem;
    color: var(--tone);
    background: #ffffff;
    border: 2px solid var(--tone-line);
}
.has-dropdown:is(:hover, :focus-within) .af-flow-dot { animation: afDot 0.6s var(--nav-ease) both; }
.af-flow li:nth-child(1) .af-flow-dot { animation-delay: 0.45s !important; }
.af-flow li:nth-child(2) .af-flow-dot { animation-delay: 0.85s !important; }
.af-flow li:nth-child(3) .af-flow-dot { animation-delay: 1.25s !important; }
.af-flow li:nth-child(4) .af-flow-dot { animation-delay: 1.65s !important; }
@keyframes afDot {
    0%   { transform: scale(0.85); }
    55%  { transform: scale(1.18); color: #ffffff; background: var(--tone); border-color: var(--tone); box-shadow: 0 0 0 6px var(--tone-soft); }
    100% { transform: scale(1); color: #ffffff; background: var(--tone); border-color: var(--tone); box-shadow: 0 6px 14px -6px var(--tone); }
}
.af-flow strong { font-size: 0.7rem; font-weight: 600; color: var(--gray-700); }

/* ---------- Fit the menus to the screen ---------- */
@media (min-width: 1025px) {
    .mega-panel {
        max-height: calc(100vh - var(--nav-height, 74px) - 20px);
        max-height: calc(100dvh - var(--nav-height, 74px) - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(164, 123, 53, 0.35) transparent;
    }
}
/* Shorter laptop screens (e.g. 13" MacBook with the browser toolbar) */
@media (min-width: 1025px) and (max-height: 780px) {
    .services-panel, .about-panel { padding: 0.8rem; gap: 0.85rem; }
    .spot-card, .svc-audit { padding-top: 0.62rem; padding-bottom: 0.62rem; }
    .spot-card-desc { -webkit-line-clamp: 1; }
    .svc-col-media { height: 46px; }
    .svc-col-pattern i { font-size: 1.9rem; }
    .svc-item { padding-top: 0.28rem; padding-bottom: 0.28rem; }
    .af-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .mp-link { padding-top: 0.55rem; padding-bottom: 0.55rem; }
}
/* Very short windows: drop decoration, keep every link */
@media (min-width: 1025px) and (max-height: 660px) {
    .svc-col-media, .spot-card-desc, .svc-audit-eyebrow, .af-desc, .about-flow { display: none; }
    .svc-col-icon { margin: 0; }
    .svc-col-text { padding-top: 0; align-self: center; }
    .af-head { margin-bottom: 0.5rem; }
}

/* Page dims behind an open mega menu */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(23, 21, 15, 0.32);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease 0.1s, visibility 0s linear 0.45s;
}
@media (min-width: 1025px) {
    body:has(.has-dropdown:hover) .nav-scrim,
    body:has(.has-dropdown:focus-within) .nav-scrim {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s ease 0.06s, visibility 0s;
    }
}

/* -------------------------------------------------------
   RIGHT SIDE: search + CTA
------------------------------------------------------- */
.navbar-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 44px;
    padding: 0 0.45rem 0 0.95rem;
    border-radius: var(--radius-full);
    color: var(--brand-ink);
    background: rgba(42, 38, 32, 0.035);
    border: 1px solid rgba(42, 38, 32, 0.08);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-search-btn i { font-size: 0.88rem; }
.nav-search-btn:hover { background: #ffffff; border-color: rgba(164, 123, 53, 0.4); box-shadow: 0 6px 16px -10px rgba(31, 28, 23, 0.45); }
.nav-search-kbd {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--gray-500);
    background: #ffffff;
    border: 1px solid rgba(42, 38, 32, 0.1);
}

/* Animated gold edge on the CTA (falls back to a static gold border) */
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-navbar-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    height: 46px;
    padding: 0 0.3rem 0 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff !important;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    background:
        linear-gradient(var(--brand-ink-deep), var(--brand-ink-deep)) padding-box,
        conic-gradient(from var(--cta-angle), #6E5020, var(--brand-gold-pale), #6E5020 35%, var(--brand-gold) 65%, #6E5020) border-box;
    box-shadow: 0 10px 24px -12px rgba(23, 21, 15, 0.7);
    animation: ctaSpin 5s linear infinite;
    transition: transform 0.35s var(--nav-ease), box-shadow 0.35s ease;
}
@keyframes ctaSpin { to { --cta-angle: 360deg; } }
.btn-navbar-cta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--brand-ink-deep);
    background: var(--brand-gradient-sheen);
    background-size: 200% 100%;
    transition: transform 0.4s var(--nav-ease), background-position 0.6s ease;
}
.btn-navbar-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(23, 21, 15, 0.75); }
.btn-navbar-cta:hover i { transform: rotate(-45deg); background-position: 100% 0; }

/* -------------------------------------------------------
   SCROLL PROGRESS — glowing gold line along the bar's bottom edge,
   a light sweeping through it and a bright circle leading the way
------------------------------------------------------- */
.nav-progress {
    --progress: 0;
    --pg-hi: #FFC94D;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    border-radius: 4px;
    background: rgba(198, 164, 95, 0.16);   /* faint track: shows how much is left */
    pointer-events: none;
    transition: left 0.5s var(--nav-ease), right 0.5s var(--nav-ease), bottom 0.5s var(--nav-ease), transform 0.5s var(--nav-ease);
}
.site-header.scrolled .nav-progress { left: calc(var(--island-x) + 22px); right: calc(var(--island-x) + 22px); bottom: -1px; }
/* While the header is tucked away, the line stays pinned along the top of the screen */
.site-header.is-tucked .nav-progress { left: 0; right: 0; bottom: 0; border-radius: 0 4px 4px 0; transform: translateY(22px); }

.nav-progress-bar {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #C98A12 0%, #FFC94D 25%, #FFF0B3 50%, #FFC94D 75%, #C98A12 100%);
    background-size: 200% 100%;
    /* Revealed from the left (keeps the gradient from stretching like a scaleX would) */
    clip-path: inset(-12px calc((1 - var(--progress)) * 100%) -12px 0);
    filter: drop-shadow(0 0 4px rgba(255, 201, 77, 0.95)) drop-shadow(0 0 10px rgba(242, 166, 30, 0.6));
    animation: progressFlow 2.6s linear infinite;
    will-change: clip-path;
}
@keyframes progressFlow { to { background-position: -200% 0; } }
/* Bright streak travelling along the filled part */
.nav-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -25%;
    width: 25%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: progressStreak 2s var(--nav-ease) infinite;
}
@keyframes progressStreak { to { left: 105%; } }

/* The circle at the leading point */
.nav-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(var(--progress) * 100%);
    z-index: 2;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #FFF0B3 30%, #FFC94D 65%, #E09A16 100%);
    box-shadow:
        0 0 0 3px rgba(255, 201, 77, 0.35),
        0 0 12px 4px rgba(255, 201, 77, 0.95),
        0 0 30px 10px rgba(242, 166, 30, 0.45);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-progress.has-head::after { transform: translate(-50%, -50%) scale(1); }
/* Pulsing ring around the circle */
.nav-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(var(--progress) * 100%);
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 201, 77, 0.9);
    box-shadow: 0 0 10px rgba(255, 201, 77, 0.7);
    display: none;
    animation: progressRing 1.6s var(--nav-ease) infinite;
}
.nav-progress.has-head::before { display: block; }
@keyframes progressRing { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) scale(2.8); opacity: 0; } }

/* -------------------------------------------------------
   MOBILE TOGGLE (two bars → X)
------------------------------------------------------- */
.mobile-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-ink-deep);
    cursor: pointer;
}
.mobile-toggle .bar {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.4s var(--nav-ease), width 0.4s var(--nav-ease), top 0.4s var(--nav-ease);
}
.mobile-toggle .bar:nth-child(1) { top: 17px; }
.mobile-toggle .bar:nth-child(2) { top: 25px; width: 12px; background: var(--brand-gold); }
.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) { top: 21px; width: 18px; transform: rotate(-45deg); }

.drawer-header,
.drawer-footer { display: none; }

/* -------------------------------------------------------
   LAPTOP (1025px – 1279px)
------------------------------------------------------- */
@media (max-width: 1279px) {
    .nav-link { padding: 0 0.7rem; font-size: 0.86rem; }
    .nav-link::after { left: 0.7rem; right: 0.7rem; }
    .has-dropdown .nav-link::after { right: 1.55rem; }
    .nav-search-btn { width: 44px; padding: 0; justify-content: center; }
    .nav-search-kbd { display: none; }
    .btn-navbar-cta { padding-left: 1.1rem; }
    .brand-logo-img { height: 42px; }
}

/* -------------------------------------------------------
   TABLET & MOBILE (≤1024px): off-canvas drawer
------------------------------------------------------- */
@media (max-width: 1024px) {
    :root { --bar-h: 64px; --island-x: 10px; }

    .navbar { padding: 8px 0; }
    .site-header.scrolled .navbar { padding: 12px 0 4px; }
    .site-header.scrolled .navbar::before { inset: 8px var(--island-x) 0; border-radius: 18px; background: rgba(255, 255, 255, 0.97); }
    .site-header.scrolled .navbar-inner { padding: 0 0.6rem; }
    .brand-logo-img,
    .site-header.scrolled .brand-logo-img { height: 36px; }

    .mobile-toggle { display: block; }
    .navbar-right { gap: 0.5rem; }
    .navbar-right > .btn-navbar-cta { height: 44px; padding-left: 1rem; font-size: 0.86rem; }
    .navbar-right > .btn-navbar-cta i { width: 32px; height: 32px; }
    .nav-search-btn { border-radius: 14px; }
    /* Scroll progress on phones and tablets: slimmer line, smaller leading circle */
    .nav-progress { height: 3px; }
    .site-header.scrolled .nav-progress { left: calc(var(--island-x) + 16px); right: calc(var(--island-x) + 16px); bottom: -1px; }
    .nav-progress::after, .nav-progress::before { width: 12px; height: 12px; }
    .nav-progress::after { border-width: 1.5px; box-shadow: 0 0 0 2px rgba(255, 201, 77, 0.35), 0 0 10px 3px rgba(255, 201, 77, 0.9), 0 0 22px 6px rgba(242, 166, 30, 0.4); }

    .navbar-nav-container {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(440px, 100%);
        z-index: 1060;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        box-shadow: -30px 0 60px -20px rgba(23, 21, 15, 0.35);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.55s var(--nav-ease), visibility 0s linear 0.55s;
        overscroll-behavior: contain;
    }
    .navbar-nav-container.mobile-open {
        transform: none;
        visibility: visible;
        transition: transform 0.55s var(--nav-ease), visibility 0s;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        height: 72px;
        padding: 0 1.25rem;
        border-bottom: 1px solid rgba(42, 38, 32, 0.07);
    }
    .drawer-brand img { height: 36px; width: auto; }
    .drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.1rem;
        color: var(--brand-ink-deep);
        background: rgba(42, 38, 32, 0.05);
        transition: background 0.2s ease, transform 0.4s var(--nav-ease);
    }
    .drawer-close:hover { background: rgba(42, 38, 32, 0.1); transform: rotate(90deg); }

    .drawer-body {
        display: block;
        flex: 1;
        overflow-y: auto;
        padding: 1.1rem 1.25rem 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .drawer-spotlight { display: block; margin-bottom: 1.1rem; }
    .drawer-eyebrow {
        display: block;
        margin-bottom: 0.6rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gray-500);
    }
    .drawer-spotlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .spot-tile {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.9rem;
        min-height: 96px;
        padding: 0.8rem;
        border-radius: 16px;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.3;
        color: #ffffff;
        background: var(--tone-gradient);
        box-shadow: 0 12px 22px -16px var(--tone);
        overflow: hidden;
    }
    .spot-tile i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.2);
    }
    .spot-tile:active { transform: scale(0.97); }

    .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { border-bottom: 1px solid rgba(42, 38, 32, 0.07); }
    .nav-link {
        justify-content: space-between;
        height: 58px;
        padding: 0 0.15rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--gray-900);
    }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--brand-gold-deep); }
    .dropdown-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 0.65rem;
        opacity: 1;
        background: rgba(42, 38, 32, 0.05);
    }
    .has-dropdown:hover .dropdown-arrow,
    .has-dropdown:focus-within .dropdown-arrow { transform: none; color: inherit; }
    .has-dropdown.dropdown-open .dropdown-arrow { transform: rotate(180deg); color: #ffffff; background: var(--brand-ink-deep); }

    /* Dropdowns become accordions; grid-rows animates to the content's real height */
    .mega-dropdown,
    .has-dropdown:hover > .mega-dropdown,
    .has-dropdown:focus-within > .mega-dropdown {
        position: static;
        display: grid;
        grid-template-rows: 0fr;
        width: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: grid-template-rows 0.45s var(--nav-ease);
    }
    .has-dropdown.dropdown-open > .mega-dropdown { grid-template-rows: 1fr; }
    .mega-dropdown::before { display: none; }
    .mega-dropdown-inner { min-height: 0; overflow: hidden; }
    .mega-panel { padding: 0 0 0.9rem; border: none; border-radius: 0; box-shadow: none; background: transparent; }
    .spot-card, .svc-col, .mp-link, .mega-panel, .svc-list > li, .svc-col-media { animation: none !important; }
    .about-flow, .mp-link-go { display: none; }
    .mp-link:hover { transform: none; box-shadow: none; }
    .about-main { gap: 0; }

    .svc-aside, .svc-main-head, .af-panel { display: none; }
    .services-panel { display: block; padding: 0; }
    /* Phones: each service area is its own collapsible section */
    .svc-columns { grid-template-columns: 1fr; gap: 0.5rem; margin: 0; }
    .svc-col {
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid rgba(42, 38, 32, 0.08);
        overflow: hidden;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }
    .svc-col.is-open { border-color: var(--tone-line); background: color-mix(in srgb, var(--tone) 3%, #ffffff); box-shadow: 0 14px 28px -22px var(--tone); }
    .svc-col-media, .svc-col-sub { display: none; }
    .svc-col-head {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0.7rem 0.75rem;
        border: none;
        -webkit-tap-highlight-color: transparent;
    }
    .svc-col-icon { width: 40px; height: 40px; margin: 0; border: none; border-radius: 12px; font-size: 0.95rem; flex-shrink: 0; }
    .svc-col-text { flex: 1; padding: 0; }
    .svc-col-text strong { font-size: 0.95rem; }
    .svc-col-count-m { display: block; font-size: 0.72rem; font-weight: 500; color: var(--gray-500); }
    .svc-col-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 50%;
        font-size: 0.65rem;
        color: var(--tone);
        background: var(--tone-soft);
        transition: transform 0.4s var(--nav-ease), background 0.3s ease, color 0.3s ease;
    }
    .svc-col.is-open .svc-col-chevron { transform: rotate(180deg); color: #ffffff; background: var(--tone); }
    /* Touch screens keep :hover after a tap, so only the open section is coloured */
    .svc-col-head:hover .svc-col-icon { transform: none; }
    .svc-col-head:hover strong { color: var(--gray-900); }
    .svc-col.is-open .svc-col-head strong { color: var(--tone); }
    .svc-list {
        max-height: 0;
        overflow: hidden;
        padding: 0 0.6rem;
        transition: max-height 0.45s var(--nav-ease), padding 0.45s var(--nav-ease);
    }
    .svc-col.is-open .svc-list { max-height: 640px; padding: 0 0.6rem 0.65rem; }
    .svc-glide, .svc-item-go { display: none; }
    .svc-item { padding: 0.6rem 0.4rem; border-radius: 10px; font-size: 0.9rem; }
    .svc-item:active { background: var(--tone-soft); }
    .svc-item:hover .svc-item-icon { color: var(--tone); background: var(--tone-soft); transform: none; }
    .svc-flag, .svc-item:hover .svc-flag { max-width: none; gap: 0.3rem; padding: 0 0.5rem; box-shadow: none; }
    .svc-flag-text { opacity: 1; }
    .svc-item:hover .svc-item-label { transform: none; }
    .svc-item-icon { width: 32px; height: 32px; font-size: 0.82rem; }
    .svc-explore-m { display: block; padding-top: 0.35rem; margin-top: 0.25rem; border-top: 1px solid rgba(42, 38, 32, 0.06); }
    .svc-explore-m a { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.4rem; font-size: 0.84rem; font-weight: 700; color: var(--tone); }
    .svc-explore-m i { font-size: 0.7rem; }

    .svc-mobile-foot { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
    .svc-mobile-all {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 0.95rem;
        border-radius: 14px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--gray-900);
        background: #F7F4EC;
    }
    .svc-mobile-all span i { margin-right: 0.45rem; color: var(--brand-gold-deep); }
    .svc-mobile-all > i { font-size: 0.75rem; color: var(--brand-gold-deep); }
    .svc-audit-m { margin-top: 0; animation: ctaSpin 6s linear infinite !important; }

    .about-panel { grid-template-columns: 1fr; }
    .about-links { grid-template-columns: 1fr; gap: 0.1rem; }
    .mp-link { align-items: center; padding: 0.6rem 0.5rem; }
    .mp-link-icon { width: 36px; height: 36px; border-radius: 10px; }
    .mp-link-body span { display: none; }

    .drawer-footer {
        display: block;
        flex-shrink: 0;
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(42, 38, 32, 0.07);
        background: #FDFBF7;
    }
    .drawer-cta { display: flex; width: 100%; height: 54px; justify-content: space-between; padding: 0 0.35rem 0 1.4rem; font-size: 0.95rem; }
    .drawer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.85rem; }
    .drawer-contact a { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--gray-600); }
    .drawer-contact i { font-size: 0.75rem; color: var(--brand-gold-deep); }

    /* Drawer content glides in after the panel */
    .navbar-nav-container.mobile-open .drawer-spotlight,
    .navbar-nav-container.mobile-open .nav-item { animation: drawerIn 0.6s var(--nav-ease) both; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(1) { animation-delay: 0.08s; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(2) { animation-delay: 0.12s; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(3) { animation-delay: 0.16s; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(5) { animation-delay: 0.24s; }
    .navbar-nav-container.mobile-open .nav-item:nth-child(6) { animation-delay: 0.28s; }
    @keyframes drawerIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
}

/* Phones: the drawer has its own consultation button */
@media (max-width: 640px) {
    .navbar-right > .btn-navbar-cta { display: none; }
}

@media (max-width: 480px) {
    .navbar .container { padding-left: 1rem; padding-right: 1rem; }
    .brand-logo-img,
    .site-header.scrolled .brand-logo-img { height: 32px; }
    .drawer-spotlight-row { gap: 0.4rem; }
    .spot-tile { padding: 0.7rem; font-size: 0.74rem; }
}

/* Page scroll lock while the drawer is open */
html.nav-locked,
html.nav-locked body { overflow: hidden; }
html.nav-locked .cookie-notice,
html.nav-locked .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }

/* -------------------------------------------------------
   ACCESSIBILITY
------------------------------------------------------- */
.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid var(--brand-gold-deep);
    outline-offset: 2px;
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .site-header *,
    .site-header *::before,
    .site-header *::after,
    .nav-scrim {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   SITE SEARCH (command-palette overlay)
   ========================================================================== */
.site-search {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: min(12vh, 110px) 1rem 1rem;
}
.site-search[hidden] { display: none; }
.ss-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 17, 14, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ss-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(640px, calc(100vh - 2rem));
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 50px 100px -30px rgba(18, 17, 14, 0.65), 0 0 0 1px rgba(42, 38, 32, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-premium);
}
.ss-panel::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--brand-gradient-sheen);
    z-index: 2;
}
.site-search.is-open .ss-backdrop { opacity: 1; }
.site-search.is-open .ss-panel { opacity: 1; transform: none; }

.ss-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.1rem 1rem 1.35rem;
    border-bottom: 1px solid rgba(42, 38, 32, 0.08);
}
.ss-icon { font-size: 1.1rem; color: var(--brand-ink); }
.ss-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    -webkit-appearance: none;
    appearance: none;
}
.ss-input::placeholder { color: var(--gray-400); font-weight: 500; }
/* The panel itself is the focus context; the global focus ring would clash here */
.ss-input:focus,
.ss-input:focus-visible,
.sp-form input:focus,
.sp-form input:focus-visible { outline: none; box-shadow: none; }
.sp-form:focus-within { border-color: rgba(198, 164, 95, 0.55); box-shadow: 0 0 0 4px rgba(198, 164, 95, 0.12), 0 18px 40px -26px rgba(31, 28, 23, 0.45); }
.ss-input::-webkit-search-cancel-button { display: none; }
.ss-spinner {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(198, 164, 95, 0.2);
    border-top-color: var(--brand-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.site-search.is-loading .ss-spinner { opacity: 1; animation: ssSpin 0.7s linear infinite; }
@keyframes ssSpin { to { transform: rotate(360deg); } }
.ss-clear,
.ss-esc {
    display: none;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}
.ss-clear { width: 30px; }
.site-search.has-query .ss-clear { display: inline-flex; }
.ss-esc { display: inline-flex; padding: 0 0.6rem; }
.ss-esc-icon { display: none; }
.ss-clear:hover, .ss-esc:hover { color: var(--brand-ink); background: #ffffff; }

.ss-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.75rem 0.9rem; }
.site-search.has-query .ss-default { display: none; }

.ss-section + .ss-section { margin-top: 1rem; }
.ss-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.6rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.ss-link-btn { font-size: 0.72rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-gold-deep); background: none; border: none; cursor: pointer; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 0.5rem; }
.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ss-chip i { color: var(--brand-gold-deep); font-size: 0.75rem; }
.ss-chip:hover { color: var(--brand-ink); background: #ffffff; border-color: rgba(42, 38, 32, 0.25); }
.ss-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0 0.5rem; }
.ss-quick-item {
    --q-color: var(--brand-gold-deep);
    --q-tint: rgba(164, 123, 53, 0.1);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 14px;
    color: inherit;
    border: 1px solid rgba(42, 38, 32, 0.08);
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease, border-color 0.25s ease;
}
.ss-quick-item.accent-green  { --q-color: var(--brand-bronze); --q-tint: rgba(223, 200, 142, 0.16); }
.ss-quick-item.accent-orange { --q-color: var(--brand-copper); --q-tint: rgba(201, 149, 74, 0.15); }
.ss-quick-item:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 12px 24px -16px rgba(31, 28, 23, 0.45); }
.ss-quick-icon {
    flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--q-color); background: var(--q-tint);
}
.ss-quick-text { display: flex; flex-direction: column; min-width: 0; }
.ss-quick-text strong { font-size: 0.82rem; line-height: 1.3; color: var(--gray-900); }
.ss-quick-text span { font-size: 0.7rem; color: var(--gray-500); }

/* Results */
.ss-group + .ss-group { margin-top: 0.6rem; }
.ss-group-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.ss-group-head i { color: var(--brand-gold); }
.ss-group-count { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ss-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.7rem;
    border-radius: 13px;
    color: inherit;
    scroll-margin: 0.5rem;
    transition: background 0.15s ease;
    animation: ssItemIn 0.3s var(--ease-premium) backwards;
}
.ss-item-icon {
    flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: var(--brand-gold-deep);
    background: rgba(164, 123, 53, 0.09);
    transition: background 0.2s ease, color 0.2s ease;
}
.ss-group[data-key="insights"] .ss-item-icon,
.ss-group[data-key="industries"] .ss-item-icon { color: var(--brand-bronze); background: rgba(223, 200, 142, 0.15); }
.ss-group[data-key="faqs"] .ss-item-icon,
.ss-group[data-key="pages"] .ss-item-icon { color: var(--brand-copper); background: rgba(201, 149, 74, 0.14); }
.ss-item-body { flex: 1; min-width: 0; }
.ss-item-title { display: block; font-weight: 700; font-size: 0.9rem; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item-title .ms-badge { margin-left: 0.35rem; vertical-align: 1px; }
.ss-item-sub { display: block; font-size: 0.76rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item mark { background: linear-gradient(transparent 55%, rgba(241, 221, 168, 0.55) 55%); color: inherit; padding: 0; border-radius: 2px; }
.ss-item-meta { flex-shrink: 0; font-size: 0.68rem; font-weight: 600; color: var(--gray-500); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); background: var(--gray-50); border: 1px solid var(--gray-100); }
.ss-item-go { flex-shrink: 0; font-size: 0.75rem; color: var(--brand-ink); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s ease, transform 0.2s ease; }
.ss-item:hover,
.ss-item.is-active { background: #F6F2EA; }
.ss-item.is-active { box-shadow: inset 3px 0 0 var(--brand-gold); }
.ss-item.is-active .ss-item-icon { color: #ffffff; background: var(--brand-gradient); }
.ss-item.is-active .ss-item-go,
.ss-item:hover .ss-item-go { opacity: 1; transform: none; }
@keyframes ssItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ss-empty { padding: 2.25rem 1rem 2rem; text-align: center; }
.ss-empty-icon {
    width: 56px; height: 56px; margin: 0 auto 0.85rem; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    color: var(--brand-ink); background: rgba(42, 38, 32, 0.06);
}
.ss-empty h6 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--gray-900); }
.ss-empty p { margin: 0 auto 1rem; max-width: 380px; font-size: 0.85rem; color: var(--gray-500); }

.ss-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    border-top: 1px solid rgba(42, 38, 32, 0.08);
    background: #FAF7F0;
}
.ss-hints { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--gray-500); }
.ss-hints kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 0.3rem; margin-right: 0.2rem;
    border-radius: 5px; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700;
    color: var(--gray-600); background: #ffffff; border: 1px solid var(--gray-200); box-shadow: 0 1px 0 var(--gray-200);
}
.ss-see-all { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.ss-see-all[hidden] { display: none; }
.ss-see-all i { font-size: 0.7rem; transition: transform 0.2s ease; }
.ss-see-all:hover i { transform: translateX(3px); }

html.search-locked,
html.search-locked body { overflow: hidden; }

/* Phones: full-screen sheet */
@media (max-width: 640px) {
    .site-search { padding: 0; }
    .ss-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; transform: translateY(16px); }
    .ss-form { padding: calc(0.85rem + env(safe-area-inset-top)) 0.85rem 0.85rem 1.1rem; }
    .ss-input { font-size: 1.05rem; }
    .ss-esc { width: 38px; height: 38px; padding: 0; border-radius: 11px; }
    .ss-esc-text { display: none; }
    .ss-esc-icon { display: inline; font-size: 1rem; }
    .ss-quick { grid-template-columns: 1fr; }
    .ss-hints { display: none; }
    .ss-footer { justify-content: center; padding-bottom: calc(0.7rem + env(safe-area-inset-bottom)); }
    .ss-item-meta { display: none; }
}
@media (max-width: 1024px) {
    .navbar-right { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ss-backdrop, .ss-panel, .ss-item { transition: none !important; animation: none !important; }
}

/* Search results page */
.sp-section { padding-top: 3rem; }
.sp-form {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.45rem 0.45rem 0.45rem 1.25rem; margin-bottom: 1.5rem;
    border-radius: var(--radius-full); background: #ffffff;
    border: 1px solid rgba(42, 38, 32, 0.12);
    box-shadow: 0 18px 40px -26px rgba(31, 28, 23, 0.45);
}
.sp-form > i { color: var(--brand-ink); }
.sp-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 1.02rem; font-weight: 600; color: var(--gray-900); }
.sp-form button {
    display: inline-flex; align-items: center; gap: 0.5rem; height: 46px; padding: 0 1.3rem; border: none; border-radius: var(--radius-full);
    font-weight: 700; color: #ffffff; background: var(--brand-gradient); cursor: pointer;
}
.sp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.sp-filter {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600; color: var(--gray-700); background: var(--gray-50); border: 1px solid var(--gray-200);
}
.sp-filter i { color: var(--brand-gold-deep); }
.sp-filter span { font-size: 0.72rem; padding: 0 0.4rem; border-radius: 10px; color: var(--brand-ink); background: rgba(42, 38, 32, 0.08); }
.sp-filter:hover { color: var(--brand-ink); border-color: rgba(42, 38, 32, 0.25); background: #ffffff; }
.sp-group { scroll-margin-top: calc(var(--nav-height) + 20px); }
.sp-group + .sp-group { margin-top: 2rem; }
.sp-group-title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--gray-900); }
.sp-group-title i { color: var(--brand-gold); }
.sp-group-title span { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); }
.sp-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sp-item {
    display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border-radius: 16px; color: inherit;
    background: #ffffff; border: 1px solid rgba(42, 38, 32, 0.08);
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease, border-color 0.25s ease;
}
.sp-item:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 16px 32px -20px rgba(31, 28, 23, 0.45); }
.sp-item-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand-gold-deep); background: rgba(164, 123, 53, 0.09); }
.sp-insights .sp-item-icon, .sp-industries .sp-item-icon { color: var(--brand-bronze); background: rgba(223, 200, 142, 0.15); }
.sp-faqs .sp-item-icon, .sp-pages .sp-item-icon { color: var(--brand-copper); background: rgba(201, 149, 74, 0.14); }
.sp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-item-title { font-weight: 700; color: var(--gray-900); }
.sp-item-sub { font-size: 0.84rem; color: var(--gray-500); }
.sp-item-meta { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: var(--gray-500); padding: 0.2rem 0.55rem; border-radius: var(--radius-full); background: var(--gray-50); border: 1px solid var(--gray-100); }
.sp-item-go { color: var(--brand-ink); font-size: 0.8rem; opacity: 0.4; transition: opacity 0.2s ease, transform 0.2s ease; }
.sp-item:hover .sp-item-go { opacity: 1; transform: translateX(3px); }
.sp-empty { text-align: center; padding: 2.5rem 1rem; }
.sp-empty h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.sp-empty p { color: var(--gray-500); max-width: 460px; margin: 0 auto 1.25rem; }
.sp-empty kbd { padding: 0.1rem 0.4rem; border-radius: 5px; border: 1px solid var(--gray-200); background: var(--gray-50); font-size: 0.8rem; }
.sp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (max-width: 575px) {
    .sp-form button { width: 46px; padding: 0; justify-content: center; font-size: 0; }
    .sp-form button i { font-size: 0.9rem; }
    .sp-item-meta { display: none; }
}
.sp-form .sp-spinner { flex-shrink: 0; }
.sp-form.is-loading .sp-spinner { opacity: 1; animation: ssSpin 0.7s linear infinite; }
.sp-item { animation: ssItemIn 0.35s var(--ease-premium) backwards; }
.sp-item mark { background: linear-gradient(transparent 55%, rgba(241, 221, 168, 0.55) 55%); color: inherit; padding: 0; }
