/* =====================================================================
   LEAD ACCESS - VISUAL REFRESH & MOTION LAYER
   Loaded after index.css. Everything here is additive / overriding so
   the original stylesheet stays intact and easy to diff.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
    --brand: #cb9155;
    --brand-light: #ebb479;
    --brand-dark: #a17546;
    --brand-deep: #855727;
    --brand-tint: #fbf4ec;

    --ink: #171310;
    --ink-soft: #4a423b;
    --ink-muted: #7b7169;
    --line: rgba(23, 19, 16, 0.10);

    --surface: #ffffff;
    --surface-alt: #f7f3ee;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(23, 19, 16, 0.06);
    --shadow-sm: 0 4px 14px -6px rgba(23, 19, 16, 0.22);
    --shadow-md: 0 14px 34px -14px rgba(23, 19, 16, 0.30);
    --shadow-lg: 0 28px 60px -22px rgba(23, 19, 16, 0.42);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 420ms;

    --shell: 1240px;
}

/* ---------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--brand);
    color: #fff;
}

img {
    max-width: 100%;
}

/* Custom scrollbar (progressive enhancement) */
* {
    scrollbar-color: var(--brand) rgba(0, 0, 0, 0.06);
    scrollbar-width: thin;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand), var(--brand-deep));
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--brand-deep);
    background-clip: padding-box;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------- */
.main-heading-db {
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.sub-heading-wb,
.sub-heading-db {
    font-size: clamp(1.65rem, 3.6vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 800;
}

.sub-heading-wb span,
.sub-heading-db span {
    display: block;
    max-width: 62ch;
    margin: 14px auto 0;
    font-size: clamp(0.95rem, 1.6vw, 1.075rem);
    line-height: 1.65;
    font-weight: 400;
}

.sub-heading-db span {
    color: rgba(255, 255, 255, 0.78);
}

.sub-heading-wb span {
    color: var(--ink-soft);
}

/* Accent rule beneath centred section headings */
.sub-heading-wb::after,
.sub-heading-db::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 22px auto 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--brand-light), var(--brand-deep));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 700ms var(--ease) 120ms;
}

.is-visible.sub-heading-wb::after,
.is-visible.sub-heading-db::after,
html:not(.motion-ready) .sub-heading-wb::after,
html:not(.motion-ready) .sub-heading-db::after {
    transform: scaleX(1);
}

/* Headings used inline (cards, side columns) keep no rule */
.service .sub-heading-wb::after,
.story-desc .sub-heading-wb::after,
.cc .sub-heading-wb::after,
.cc .sub-heading-db::after,
.cc-container .sub-heading-wb::after,
.cc-container .sub-heading-db::after,
.recommendations-area .sub-heading-wb::after,
#contact .sub-heading-wb::after,
#get-started h2::after,
.wils-section h2::after,
#learn-more h2::after,
#training .sub-heading-db::after {
    display: none;
}

/* Left-aligned headings: the sub-line must not stay optically centred. */
.service .sub-heading-wb span,
.story-desc .sub-heading-wb span,
.cc .sub-heading-wb span,
.cc .sub-heading-db span,
.cc-container .sub-heading-wb span,
.cc-container .sub-heading-db span,
.recommendations-area .sub-heading-wb span,
#contact .sub-heading-wb span,
#training .sub-heading-db span {
    margin-left: 0;
    margin-right: 0;
}

.page-head-desc {
    max-width: 68ch;
    margin: 0 auto;
    line-height: 1.75;
}

/* ---------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------- */
.button,
.button-wb {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color 300ms var(--ease-soft),
                color 300ms var(--ease-soft),
                border-color 300ms var(--ease-soft);
}

.button-wb {
    background-color: var(--brand);
    box-shadow: var(--shadow-sm);
    border: none;
}

.button {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.button:hover,
.button-wb:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.button:hover {
    background-color: var(--brand);
    border-color: var(--brand);
}

.button-wb:hover {
    background-color: var(--ink);
}

.button:active,
.button-wb:active {
    transform: translateY(-1px);
}

/* Light sweep on hover */
.button::after,
.button-wb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 850ms var(--ease);
    pointer-events: none;
}

.button:hover::after,
.button-wb:hover::after {
    transform: translateX(120%);
}

/* ---------------------------------------------------------------
   5. HEADER & NAVIGATION
   --------------------------------------------------------------- */
header {
    padding: 14px 0;
    transition: background-color var(--dur) var(--ease-soft),
                box-shadow var(--dur) var(--ease-soft),
                padding var(--dur) var(--ease-soft);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
    opacity: 1;
    transition: opacity var(--dur) var(--ease-soft);
    pointer-events: none;
}

header > * {
    position: relative;
    z-index: 1;
}

header.scrolled {
    padding: 6px 0;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 10px 30px -18px rgba(23, 19, 16, 0.6);
}

header.scrolled::before {
    opacity: 0;
}

.logo img {
    transition: width var(--dur) var(--ease);
}

header.scrolled .logo img {
    width: 170px;
}

.navlink > a {
    position: relative;
    display: inline-block;
    padding: 10px 2px;
    font-weight: 600;
}

/* Animated underline */
.navlink > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 340ms var(--ease);
}

.navlink:hover > a::after,
.navlink > a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navlink i {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 300ms var(--ease);
}

.navlink:hover i {
    transform: rotate(180deg);
}

/* Dropdowns fade + slide instead of snapping */
.header-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    margin-top: 6px;
    padding: 12px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    transition: opacity 260ms var(--ease-soft),
                transform 300ms var(--ease),
                visibility 0s linear 300ms;
}

#individuals-link:hover #individuals-dd,
#organizations-link:hover #organizations-dd,
#individuals-link:focus-within #individuals-dd,
#organizations-link:focus-within #organizations-dd {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.header-dropdown a {
    position: relative;
    padding: 10px 0 10px 16px;
    font-weight: 500;
    transition: color 220ms var(--ease-soft), padding-left 260ms var(--ease);
}

.header-dropdown a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    transform: translateY(-50%) scale(0);
    transition: transform 260ms var(--ease);
}

.header-dropdown a:hover {
    padding-left: 22px;
}

.header-dropdown a:hover::before {
    transform: translateY(-50%) scale(1);
}

/* Mobile drawer */
.nav-button {
    border-radius: var(--radius);
    transition: transform 240ms var(--ease), opacity 240ms var(--ease-soft);
}

.nav-button:hover {
    transform: scale(1.08);
}

.nav-button:active {
    transform: scale(0.94);
}

.mob-nav {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mob-nav-area {
    box-shadow: var(--shadow-lg);
    transition: transform 380ms var(--ease);
    overflow-y: auto;
}

.mn-link {
    border-left: 3px solid transparent;
    transition: background-color 220ms var(--ease-soft),
                border-color 220ms var(--ease-soft),
                padding-left 240ms var(--ease);
}

/* WILS is a partner brand with its own colour. */
.wils-link {
    color: rgb(168, 0, 168);
    font-weight: 700;
}

.wils-link:hover {
    color: rgb(112, 0, 112);
}

.mn-link:hover {
    background-color: var(--brand-tint);
    border-left-color: var(--brand);
    padding-left: 26px;
}

/* ---------------------------------------------------------------
   6. HERO
   --------------------------------------------------------------- */
.welcome-screen {
    position: relative;
    overflow: hidden;
    background-position: center;
}

/* Slow Ken Burns drift on the hero image */
.welcome-screen::before {
    content: "";
    position: absolute;
    inset: -4%;
    background: inherit;
    background-size: cover;
    background-position: center;
    animation: kenburns 22s var(--ease-soft) infinite alternate;
    pointer-events: none;
}

@keyframes kenburns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.09) translate3d(0, -1.5%, 0); }
}

/* The scrim keeps the headline readable while letting the photograph
   through on the right. scripts/index.js toggles .dimmed between slides. */
.welcome-cover {
    z-index: 1;
    background-color: transparent;
    background-image: linear-gradient(105deg,
        rgba(10, 7, 5, 0.80) 0%,
        rgba(10, 7, 5, 0.42) 48%,
        rgba(58, 38, 20, 0.52) 100%);
}

.welcome-cover.dimmed {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Slides are removed from flow when hidden - this keeps invisible
   links out of the tab order and lets the entrance animation replay. */
.welcome-content {
    display: none;
    max-width: 760px;
    z-index: 2;
}

.welcome-text {
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.welcome-text br {
    display: none;
}

.welcome-text span {
    display: block;
    margin: 20px 0 30px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 52ch;
}

/* Staggered entrance, replayed each time a slide is shown */
.welcome-content .welcome-text {
    animation: heroRise 900ms var(--ease) both;
}

.welcome-content .welcome-text span {
    animation: heroRise 900ms var(--ease) 120ms both;
}

.welcome-content .welcome-text .button {
    animation: heroRise 900ms var(--ease) 240ms both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Slide indicators become pills */
.content-switch {
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.content-switch i {
    width: 10px;
    height: 10px;
    margin: 0;
    font-size: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.4);
    transition: width 420ms var(--ease), background-color 300ms var(--ease-soft);
}

.content-switch i::before {
    content: none;
}

.content-switch i:hover {
    background: rgba(255, 255, 255, 0.75);
}

.content-switch i.selected {
    width: 34px;
    background: var(--brand);
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 76px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 260ms var(--ease-soft), opacity 300ms var(--ease-soft);
}

.scroll-cue:hover {
    color: #fff;
}

.scroll-cue-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), transparent);
    animation: cueDrop 2.2s var(--ease-soft) infinite;
    transform-origin: top;
}

@keyframes cueDrop {
    0%   { transform: scaleY(0); opacity: 0; }
    35%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------------------------------------------------------------
   7. PARTNERS - SLIDING MARQUEE
   --------------------------------------------------------------- */
#partners {
    padding-bottom: 60px;
    background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%);
    overflow: hidden;
}

.partner-marquee {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 10px;
    /* Fade the logos out at both edges of the strip */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.partner-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.partner-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 18px;
    padding-right: 18px;
    min-width: 100%;
    will-change: transform;
    animation: marquee var(--marquee-duration, 90s) linear infinite;
}

.partner-row-reverse .partner-track {
    animation-direction: reverse;
}

@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-100%, 0, 0); }
}

/* Pause when a visitor wants to read a logo */
.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track {
    animation-play-state: paused;
}

.partner-logo-png {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 104px;
    margin: 0;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 380ms var(--ease), box-shadow 380ms var(--ease), border-color 380ms var(--ease);
}

.partner-logo-png:hover {
    transform: translateY(-6px);
    border-color: rgba(203, 145, 85, 0.5);
    box-shadow: var(--shadow-md);
}

/* Normalises a logo set with very mixed colour and quality */
.partner-logo-png img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.62;
    transition: filter 420ms var(--ease-soft), opacity 420ms var(--ease-soft), transform 420ms var(--ease);
}

.partner-logo-png:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* ---------------------------------------------------------------
   8. SERVICES
   --------------------------------------------------------------- */
#services {
    background: linear-gradient(160deg, rgba(10, 7, 5, 0.92), rgba(41, 27, 15, 0.88));
}

.services-container {
    left: auto;
    transform: none;
    margin: 0 auto;
    max-width: var(--shell);
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    justify-items: stretch;
}

.service {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    overflow: hidden;
}

.service-image img {
    border-radius: 0;
    display: block;
    transition: transform 900ms var(--ease);
}

.service:hover .service-image img {
    transform: scale(1.07);
}

.service-desc {
    height: auto;
    flex: 1;
    gap: 18px;
    padding: 32px;
}

.service .sub-heading-wb {
    font-size: 1.3rem;
    padding: 0;
}

.service-desc-p {
    color: var(--ink-soft);
    line-height: 1.75;
}

.service .button-wb {
    align-self: flex-start;
    padding: 12px 26px;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   9. STATS
   --------------------------------------------------------------- */
#stats {
    position: relative;
    background-attachment: fixed;
}

#stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.82), rgba(10, 7, 5, 0.66));
}

#stats > * {
    position: relative;
    z-index: 1;
}

.stats-bar {
    left: auto;
    transform: none;
    margin: 0 auto;
    max-width: var(--shell);
    gap: 20px;
    align-items: stretch;
}

.stat {
    padding: 34px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--dur) var(--ease),
                background-color var(--dur) var(--ease-soft),
                border-color var(--dur) var(--ease-soft);
}

.stat:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(235, 180, 121, 0.55);
}

.stat-spec {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.stat-number {
    font-size: clamp(3.2rem, 7vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 20%, var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat span {
    position: static;
    margin: 0;
    top: auto;
    transform: none;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--brand-light);
}

.stat-desc {
    margin-top: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
}

.stat-separator {
    display: none;
}

/* ---------------------------------------------------------------
   10. REVIEWS
   --------------------------------------------------------------- */
#reviews {
    background: linear-gradient(140deg, rgba(10, 7, 5, 0.92), rgba(64, 44, 25, 0.86));
}

.reviews-area {
    max-width: var(--shell);
    margin: 0 auto 60px;
}

.review {
    position: relative;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--dur) var(--ease);
}

.review:hover {
    transform: translateY(-6px);
}

/* Right-aligned testimonial: margin instead of a layout transform. */
.review-right {
    left: auto;
    transform: none;
    margin-left: auto;
}

.review-desc {
    position: relative;
    padding-top: 40px;
}

.review-text {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--ink-soft);
}

.review-text span {
    position: absolute;
    top: -14px;
    left: 0;
    font-size: 72px;
    line-height: 1;
    color: var(--brand);
    opacity: 0.28;
}

.reviewer {
    font-size: 1.05rem;
}

.reviewer span {
    font-weight: 500;
    font-size: 0.9rem;
}

.reviewer-pic img {
    border: 3px solid var(--brand-tint);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    transition: transform var(--dur) var(--ease);
}

.review:hover .reviewer-pic img {
    transform: scale(1.05);
}

/* ---------------------------------------------------------------
   11. TEAM
   --------------------------------------------------------------- */
#team {
    background-image: linear-gradient(140deg, rgba(10, 7, 5, 0.93), rgba(48, 32, 18, 0.9)),
                      url('../images/backgrounds/footer.jpg');
    background-size: cover;
    background-position: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: stretch;
    max-width: var(--shell);
    margin: 0 auto;
    gap: 24px;
}

.team-card {
    width: auto;
    min-width: 0;
    overflow: hidden;
    min-height: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    display: block;
    transition: transform 900ms var(--ease);
}

.team-card:hover .team-image {
    transform: scale(1.06);
}

.team-info {
    position: relative;
    padding: 24px 22px 28px;
}

.team-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    width: 34px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--brand-light), var(--brand-deep));
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 420ms var(--ease);
}

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

.team-member-name {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.team-member-position {
    font-size: 0.86rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------
   12. FAQs
   --------------------------------------------------------------- */
#faqs {
    background: linear-gradient(180deg, var(--surface-alt), #ebe6df);
}

#faqs .sub-heading-wb {
    color: var(--brand-dark);
}

.faq-list {
    left: auto;
    transform: none;
    margin: 0 auto;
    max-width: 920px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq {
    padding: 4px 8px;
    border-bottom: 1px solid var(--line);
    transition: background-color 260ms var(--ease-soft);
}

.faq:last-child {
    border-bottom: none;
}

.faq:hover {
    background-color: var(--brand-tint) !important;
}

.faq-qn {
    align-items: center;
    gap: 16px;
    padding: 24px 22px;
    text-align: left;
    font-size: 1.02rem;
    line-height: 1.5;
    transition: color 240ms var(--ease-soft);
}

.faq:hover .faq-qn {
    color: var(--brand-deep);
}

.faq-qn i {
    justify-self: end;
    width: 30px;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-tint);
    transition: transform 320ms var(--ease), background-color 260ms var(--ease-soft), color 260ms var(--ease-soft);
}

.faq:hover .faq-qn i {
    background: var(--brand);
    color: #fff;
}

.faq-an {
    padding: 0 22px;
    overflow: hidden;
    text-align: left;
    line-height: 1.8;
    color: var(--ink-soft);
    transition: height 280ms var(--ease), opacity 260ms var(--ease-soft), margin-top 280ms var(--ease);
}

/* Height is set inline by scripts/index.js from the answer's real
   content height, so long answers are never clipped. */
.faq-an-open {
    padding-bottom: 24px;
}

/* ---------------------------------------------------------------
   13. NEWSLETTER
   --------------------------------------------------------------- */
#newsletter {
    background: linear-gradient(140deg, rgba(10, 7, 5, 0.9), rgba(70, 48, 27, 0.86));
}

.newsletter-area {
    left: auto;
    transform: none;
    margin: 0 auto;
    max-width: 820px;
}

.newsletter-form {
    left: auto;
    transform: none;
    margin: 0 auto;
}

.newsletter-form form {
    display: flex;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}

.newsletter-form form:focus-within {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(203, 145, 85, 0.22);
}

.newsletter-form input[type='email'] {
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 22px;
}

.newsletter-form button[type="submit"] {
    transform: none;
    margin-left: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    background-color: var(--brand);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms var(--ease-soft);
}

.newsletter-form button[type="submit"]:hover {
    transform: translateY(-2px);
    background-color: var(--ink);
    box-shadow: var(--shadow-md);
}

.latest-newsletter {
    gap: 2px;
}

.latest-newsletter-link {
    padding: 18px 26px;
    transition: transform 300ms var(--ease), background-color 300ms var(--ease-soft),
                color 300ms var(--ease-soft), box-shadow 300ms var(--ease);
}

.latest-newsletter-link:hover {
    transform: translateY(-3px);
    background-color: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.lnl-right:hover {
    background-color: var(--brand-tint);
    color: var(--brand-deep);
}

/* ---------------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------------- */
#footer {
    background-size: cover;
    background-position: center;
}

.footer-cover {
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.footer-left .logo img {
    width: 210px;
}

.contact-list-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 14px 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.contact-list-item > i:first-child {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    line-height: 30px;
    text-align: center;
    font-size: 13px;
    border-radius: 50%;
    color: var(--brand-deep);
    background: var(--brand-tint);
}

#footer .socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

#footer .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 17px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface-alt);
    transition: transform 320ms var(--ease), background-color 260ms var(--ease-soft), color 260ms var(--ease-soft);
}

#footer .socials a:hover {
    transform: translateY(-4px);
    color: #fff;
    background-color: var(--brand);
}

/* Blog post share row: labelled buttons in each network's own colour. */
.blog-container .socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.blog-container .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1 1 140px;
    min-width: 0;
    margin: 0;
    padding: 13px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
    transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), filter 260ms var(--ease-soft);
}

.blog-container .socials a i {
    font-size: 1.05rem;
}

.blog-container .socials a:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.blog-container .socials .li:hover { background-color: #005f92; }
.blog-container .socials .x:hover  { background-color: #2f2f2f; }
.blog-container .socials .fb:hover { background-color: #0d5fc9; }

.quick-links h2 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.quick-links a {
    padding: 4px 0;
    transition: transform 260ms var(--ease), color 220ms var(--ease-soft);
}

.quick-links a:hover {
    transform: translateX(5px);
}

.copyright-info {
    padding-top: 22px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* ---------------------------------------------------------------
   15. INNER PAGES
   --------------------------------------------------------------- */
#page-head {
    position: relative;
    padding: 190px 20px 110px;
    background: linear-gradient(150deg, rgba(10, 7, 5, 0.9), rgba(60, 40, 22, 0.82));
}

#page-head .main-heading-db {
    padding: 0 0 18px;
}

.story {
    max-width: var(--shell);
    margin: 0 auto;
    gap: 30px;
}

.story-pic img,
.story-pic iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.story-pic img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.story-desc {
    text-align: left;
    line-height: 1.85;
    color: var(--ink-soft);
}

.cc-item-title,
.cc-fw-head,
.cc-fw-title {
    text-align: left;
}

.heading-phrase {
    max-width: 78ch;
    margin: 0 auto;
    line-height: 1.7;
}

.cc-item {
    padding: 16px;
    border-radius: var(--radius);
    transition: background-color 300ms var(--ease-soft), transform 300ms var(--ease);
}

.cc-item:hover {
    transform: translateX(4px);
    background-color: rgba(203, 145, 85, 0.08);
}

.cc-container-left .cc-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transition: transform 320ms var(--ease);
}

.cc-item:hover .number-container {
    transform: scale(1.12) rotate(-6deg);
}

.number-container span {
    top: auto;
    left: auto;
    transform: none;
    font-size: 15px;
}

.cc-graphic img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Events / blog cards */
.event,
.event-see-more {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.event {
    left: auto;
    transform: none;
    margin: 0 auto 25px;
}

.event:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-link {
    overflow: hidden;
    border-radius: var(--radius);
}

.blog-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    transition: transform 800ms var(--ease);
}

.blog-link:hover .blog-image img {
    transform: scale(1.06);
}

.blog-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.category,
.category-selected {
    border-radius: var(--radius-pill);
    transition: transform 260ms var(--ease), background-color 240ms var(--ease-soft), color 240ms var(--ease-soft);
}

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

/* Newsletter covers arrive at mixed aspect ratios; crop them to a
   common shape so the grid reads as one set. */
.newsletter-item {
    width: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.newsletter-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.newsletter-image {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top;
    transition: transform 800ms var(--ease);
}

.newsletter-item:hover .newsletter-image {
    transform: scale(1.04);
}

.newsletter-name {
    padding: 20px 22px;
    font-size: 1.05rem;
    color: var(--brand-deep);
}

/* Forms */
.contact-form input,
.contact-form textarea,
.contact-form select,
.event-form input {
    margin-left: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft), transform 240ms var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.event-form input:focus {
    border-left-color: var(--brand-deep);
    box-shadow: 0 0 0 4px rgba(203, 145, 85, 0.16);
}

.contact-form button[type="submit"],
.event-form button[type="submit"] {
    margin-left: 0;
    border-radius: var(--radius-pill);
    background-color: var(--brand);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 260ms var(--ease-soft);
}

.contact-form button[type="submit"]:hover,
.event-form button[type="submit"]:hover {
    transform: translateY(-3px);
    background-color: var(--ink);
    box-shadow: var(--shadow-md);
}

#get-started,
#learn-more {
    background: linear-gradient(120deg, #fff, var(--surface-alt));
}

#get-started h2,
#learn-more h2 {
    max-width: 62ch;
}

#get-started h2 span,
#learn-more h2 span,
.wils-section h2 span {
    margin-left: 0;
}

.wils-section h2 span {
    color: #fff;
}

/* ---------------------------------------------------------------
   16. SPLASH
   --------------------------------------------------------------- */
#splash {
    background: linear-gradient(140deg, rgba(10, 7, 5, 0.86), rgba(60, 40, 22, 0.8));
}

.splash-desc {
    animation: fade-in 900ms 2.2s forwards;
    letter-spacing: 0.01em;
    line-height: 1.7;
}

/* ---------------------------------------------------------------
   17. SCROLL-REVEAL SYSTEM
   The hidden starting state applies only once JS has flagged the
   document, so content is never lost if scripting is unavailable.
   --------------------------------------------------------------- */
html.motion-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 760ms var(--ease-soft), transform 760ms var(--ease);
    will-change: opacity, transform;
}

html.motion-ready [data-reveal="left"]  { transform: translate3d(-34px, 0, 0); }
html.motion-ready [data-reveal="right"] { transform: translate3d(34px, 0, 0); }
html.motion-ready [data-reveal="zoom"]  { transform: scale(0.94); }

html.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------
   18. BACK TO TOP
   --------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    background-color: var(--brand);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: opacity 320ms var(--ease-soft), transform 420ms var(--ease), visibility 0s linear 420ms;
}

.to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.to-top:hover {
    transform: translateY(-4px) scale(1.06);
    background-color: var(--brand-deep);
    box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------
   19. RESPONSIVE ADJUSTMENTS
   --------------------------------------------------------------- */
@media screen and (max-width: 1020px) {
    html {
        scroll-padding-top: 90px;
    }

    header::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    }

    #page-head {
        padding: 150px 18px 80px;
    }

    .partner-logo-png {
        display: flex;
        width: 150px;
        height: 88px;
        margin: 0;
        padding: 12px 16px;
    }

    .partner-logo-png img {
        position: static;
        width: 100%;
        height: 100%;
        left: auto;
        transform: none;
    }

    .partner-track {
        gap: 12px;
        padding-right: 12px;
    }

    /* Keep the solution cards off the edges of the screen. */
    .services-container {
        padding: 20px 18px;
        gap: 24px;
    }

    .service-desc {
        padding: 28px;
    }

    .review {
        padding: 34px 20px;
        border-radius: 0;
    }

    .review-right:hover,
    .review:hover {
        transform: none;
    }

    .review-text span {
        display: none;
    }

    .stats-bar {
        gap: 16px;
        padding: 0 16px;
    }

    .stat {
        width: 100%;
        padding: 26px 16px;
    }

    .stat-spec span {
        position: static;
        display: inline-block;
        transform: none;
    }

    .faq-qn {
        display: flex;
        justify-content: space-between;
        padding: 20px 16px;
    }

    .faq-qn div {
        width: auto;
        flex: 1;
    }

    .faq-qn i {
        width: 28px;
        min-width: 28px;
        height: 28px;
        line-height: 28px;
    }

    .newsletter-form form {
        flex-direction: column;
        gap: 8px;
        border-radius: var(--radius-lg);
    }

    .newsletter-form input[type='email'] {
        border-radius: var(--radius-pill);
    }

    .newsletter-form button[type="submit"] {
        margin-left: 0;
        border-radius: var(--radius-pill);
    }

    .latest-newsletter {
        gap: 8px;
    }

    .latest-newsletter-link,
    .lnl-right {
        border-radius: var(--radius-pill);
    }

    .to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .scroll-cue {
        display: none;
    }

    #stats {
        background-attachment: scroll;
    }

    #team {
        padding: 50px 16px;
    }

    .footer-cover {
        gap: 0;
    }
}

@media screen and (max-width: 700px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
        gap: 16px;
    }

    .team-image {
        height: 220px;
    }

    .team-info {
        padding: 18px 14px 22px;
    }

    .team-info::before {
        left: 14px;
    }

    .team-card {
        width: auto;
        max-width: none;
    }
}

/* ---------------------------------------------------------------
   20. REDUCED MOTION
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

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

    .partner-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .partner-row {
        overflow-x: auto;
    }

    html.motion-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
