
:root {
    --text-primary: #111111;
    --text-secondary: #3d3d3d;
    --border-color: #d8d8d8;
    --header-bg: #ffffff;
    --accent-color: #047dac;
    --accent-color-dark: #03698f;
    --page-bg: #f0fcff;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: auto;
    scrollbar-width: none;
    overscroll-behavior-y: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    padding-top: var(--fixed-header-offset, 0px);
    min-width: 0;
    overflow-x: hidden;
}

html.is-smooth-scrolling,
html.is-smooth-scrolling body {
    scroll-behavior: auto !important;
}

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 4px;
    height: 100%;
    overflow: hidden;
    box-shadow: -2px 0 10px rgba(4, 125, 172, 0.28);
    transform: scaleY(var(--scroll-progress, 0));
    transform-origin: center top;
    will-change: transform;
    pointer-events: none;
}

/* The colour cycle moves a taller gradient layer with transform, so it never repaints. */
.scroll-progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        180deg,
        #4e82e8 0%,
        #36a352 12.5%,
        #f6bd16 25%,
        #e1473b 37.5%,
        #4e82e8 50%,
        #36a352 62.5%,
        #f6bd16 75%,
        #e1473b 87.5%,
        #4e82e8 100%
    );
    will-change: transform;
    animation: scroll-progress-colors 3.5s linear infinite;
}

@keyframes scroll-progress-colors {
    to {
        transform: translateY(-50%);
    }
}

img,
svg {
    max-width: 100%;
}

/*
 * Arrow icons: Google Material Symbols (Apache License 2.0), embedded as CSS masks so no icon
 * font or third-party file is loaded. They take the text colour and nudge on hover.
 */
.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    background-color: currentColor;
    vertical-align: -0.18em;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-outward {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m256-240-56-56 384-384H240v-80h480v480h-80v-344L256-240Z'/%3E%3C/svg%3E");
}

.icon-forward {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z'/%3E%3C/svg%3E");
}

.icon-back {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z'/%3E%3C/svg%3E");
}

.icon-chevron {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z'/%3E%3C/svg%3E");
}

a:hover .icon-outward,
a:focus-visible .icon-outward {
    transform: translate(2px, -2px);
}

a:hover .icon-forward,
a:focus-visible .icon-forward {
    transform: translateX(3px);
}

a:hover .icon-back,
a:focus-visible .icon-back {
    transform: translateX(-3px);
}

/* The blog "Know more" chevron was sized for a text glyph */
.blog-learn-more b.icon {
    font-size: 1.15rem;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .icon {
        transition: none;
    }
}

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

button {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition:
        padding 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.4s ease,
        border-color 0.4s ease;
}

.projects-page,
.project-detail-page {
    padding-top: 0;
}

.projects-page .site-header,
.project-detail-page .site-header {
    position: relative;
    inset: auto;
}

.header-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid transparent;
    border-radius: 0;
    transition:
        width 0.55s cubic-bezier(0.25, 1, 0.5, 1),
        max-width 0.55s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        gap 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease,
        border-radius 0.55s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.4s ease,
        box-shadow 0.45s ease;
}

.brand {
    position: relative;
    display: inline-flex;
    width: 146px;
    height: 50px;
    align-items: center;
    flex-shrink: 0;
    transition:
        width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-logo {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    transition:
        opacity 0.32s ease,
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-logo-full {
    top: 50%;
    transform: translateY(-50%);
}

.brand-logo-compact {
    top: 50%;
    left: 50%;
    width: 118px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(-8deg);
}

.site-header.is-scrolled {
    padding-top: 12px;
    background: transparent;
    border-color: transparent;
}

.site-header.is-scrolled .header-shell {
    width: calc(100% - 32px);
    max-width: 1240px;
    padding: 8px 12px;
    gap: 22px;
    border-color: rgba(4, 125, 172, 0.14);
    border-radius: 999px;
    /* No backdrop-filter: on a fixed header it re-blurs the page on every scroll frame. */
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 48px rgba(7, 16, 21, 0.14);
    animation: header-compact-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header.is-scrolled .brand {
    width: 118px;
    height: 50px;
}

.site-header.is-scrolled .brand-logo-full {
    opacity: 0;
    transform: translateY(-50%) scale(0.72);
}

.site-header.is-scrolled .brand-logo-compact {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    animation: compact-logo-in 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header.is-returning .header-shell {
    animation: header-expand-back 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header.is-returning .brand-logo-full {
    animation: full-logo-back 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes header-compact-in {
    0% {
        opacity: 0.82;
        transform: translateY(-10px) scale(0.97);
    }

    68% {
        opacity: 1;
        transform: translateY(1px) scale(1.008);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes header-expand-back {
    0% {
        transform: translateY(0) scale(0.985);
    }

    58% {
        transform: translateY(-2px) scale(1.004);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes compact-logo-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72) translateX(-12px);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04) translateX(1px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateX(0);
    }
}

@keyframes full-logo-back {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8) translateX(-10px);
    }

    68% {
        opacity: 1;
        transform: translateY(-50%) scale(1.03) translateX(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1) translateX(0);
    }
}

.site-header.is-scrolled .main-nav {
    gap: 26px;
}

.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .nav-button {
    font-size: 1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex: 1;
    min-width: 0;
}

.nav-link,
.nav-button {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 999px;
    transition: color 0.2s ease;
}

.nav-item {
    position: relative;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 0 4px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-label {
    position: relative;
    display: inline-block;
}

.nav-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4e82e8 0 25%, #36a352 25% 50%, #f6bd16 50% 75%, #e1473b 75% 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-button:hover,
.nav-link:focus-visible,
.nav-button:focus-visible {
    color: var(--accent-color);
    outline: none;
}

.nav-link:hover .nav-label::after,
.nav-button:hover .nav-label::after,
.nav-link:focus-visible .nav-label::after,
.nav-button:focus-visible .nav-label::after,
.nav-link-active .nav-label::after,
.dropdown-open .nav-button .nav-label::after {
    transform: scaleX(1);
}

.nav-link-active {
    color: var(--accent-color);
}

.chevron {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid #777;
    border-bottom: 1.6px solid #777;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.dropdown-open .chevron {
    transform: rotate(-135deg) translateY(2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0 round 18px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.3s ease,
        clip-path 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.25s ease;
}

.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    clip-path: inset(0 0 0 0 round 18px);
    pointer-events: auto;
}

@media (min-width: 1121px) {
    .has-dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        clip-path: inset(0 0 0 0 round 18px);
        pointer-events: auto;
    }

    .has-dropdown:hover .chevron,
    .has-dropdown:focus-within .chevron {
        transform: rotate(-135deg) translateY(2px);
    }

    .has-dropdown:hover .nav-label::after,
    .has-dropdown:focus-within .nav-label::after {
        transform: scaleX(1);
    }

    .has-dropdown:hover .nav-button,
    .has-dropdown:focus-within .nav-button {
        color: var(--accent-color);
    }
}

/* ---------- Services mega menu ---------- */

.mega-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

/* Links fade up one after another once the menu opens */
.has-mega.dropdown-open .mega-link {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.4s ease calc(var(--i, 0) * 28ms + 90ms),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 28ms + 90ms),
        background-color 0.22s ease,
        color 0.22s ease;
}

.mega-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: rgba(4, 125, 172, 0.08);
    color: var(--accent-color);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mega-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mega-link:hover .mega-icon,
.mega-link:focus-visible .mega-icon,
.mega-link[aria-current="page"] .mega-icon {
    background: var(--accent-color);
    color: #ffffff;
    transform: rotate(-6deg) scale(1.05);
}

.mega-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.3;
}

.mega-text small {
    display: block;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

.mega-feature {
    display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 20px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(79, 194, 248, 0.45), transparent 60%),
        linear-gradient(150deg, #062c3d 0%, #047dac 100%);
    color: #ffffff;
}

.mega-feature-primary {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    background: #ffffff;
    color: #062c3d;
    font-size: 0.9rem;
    font-weight: 650;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mega-feature-primary:hover,
.mega-feature-primary:focus-visible {
    outline: none;
    transform: translateX(3px);
}

.mega-feature-secondary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
    font-weight: 600;
}

.mega-feature-secondary:hover,
.mega-feature-secondary:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

/* Alignment: the plain .dropdown-link rules (display: block, sideways hover slide, rainbow
   outline) are declared later, so the mega links override them with higher specificity. */
.dropdown-menu .mega-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text-primary);
}

.dropdown-menu .mega-link::after {
    display: none;
}

.dropdown-menu .mega-link:hover,
.dropdown-menu .mega-link:focus-visible {
    background: rgba(4, 125, 172, 0.08);
    color: var(--text-primary);
    outline: none;
    transform: none;
}

.dropdown-menu .mega-link:hover strong,
.dropdown-menu .mega-link:focus-visible strong,
.dropdown-menu .mega-link[aria-current="page"] strong {
    color: var(--accent-color);
}

/* Minimal list: small icon + one-line label; the description only lives in the HTML for context */
.dropdown-menu .mega-link {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    padding: 8px 10px;
}

.mega-link .mega-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.mega-link .mega-icon svg {
    width: 17px;
    height: 17px;
}

.mega-text strong {
    font-size: 0.94rem;
    font-weight: 600;
    white-space: nowrap;
}

.mega-text small {
    display: none;
}

.mega-groups {
    align-content: start;
}

/* ---- Smooth hover switching ---- */
.mega-groups {
    position: relative;
}

/* One highlight that glides between links (positioned by initializeMegaMenuPreview) */
.mega-hover-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 14px;
    background: rgba(4, 125, 172, 0.08);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.mega-hover-pill.is-visible {
    opacity: 1;
}

.mega-hover-pill.no-transition {
    transition: opacity 0.3s ease;
}

.dropdown-menu .mega-link {
    position: relative;
    z-index: 1;
}

/* The pill provides the hover background, so links stay transparent */
.dropdown-menu .mega-link:hover,
.dropdown-menu .mega-link:focus-visible {
    background: transparent;
}

.dropdown-menu .mega-link:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(4, 125, 172, 0.45);
}

.mega-text strong {
    transition: color 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-menu .mega-link:hover strong,
.dropdown-menu .mega-link:focus-visible strong {
    transform: translateX(2px);
}

.mega-link .mega-icon {
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Preview: slower cross-fade with a soft blur-to-sharp and gentle zoom */
.mega-preview-slide {
    filter: blur(6px);
    transition:
        opacity 0.65s ease,
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.65s ease;
}

.mega-preview-slide.is-active {
    filter: blur(0);
}

:root[data-theme="dark"] .mega-hover-pill {
    background: rgba(79, 194, 248, 0.1);
}

:root[data-theme="dark"] .dropdown-menu .mega-link:hover,
:root[data-theme="dark"] .dropdown-menu .mega-link:focus-visible {
    background: transparent;
}

@media (max-width: 1120px) {
    .mega-hover-pill {
        display: none;
    }

    .dropdown-menu .mega-link:hover {
        background: rgba(4, 125, 172, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-hover-pill,
    .mega-text strong,
    .mega-link .mega-icon {
        transition: opacity 0.2s ease;
    }

    .mega-preview-slide {
        filter: none;
        transition: opacity 0.2s ease;
    }

    .dropdown-menu .mega-link:hover strong,
    .dropdown-menu .mega-link:focus-visible strong {
        transform: none;
    }
}

/* ---- Restructured minimal mega menu: flat two-column list, light type ---- */
.mega-text strong {
    font-weight: 400;
    letter-spacing: -0.005em;
}

.mega-link .mega-icon {
    border: 1px solid rgba(4, 125, 172, 0.18);
    background: transparent;
}

.mega-link .mega-icon svg {
    stroke-width: 1.5;
}

.dropdown-menu .mega-link:hover strong,
.dropdown-menu .mega-link:focus-visible strong,
.dropdown-menu .mega-link[aria-current="page"] strong {
    font-weight: 400;
}

.mega-feature {
    padding: 0;
    gap: 10px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    border-radius: 0;
    background: none;
    color: var(--text-primary);
}

.mega-feature .mega-preview {
    margin-bottom: 4px;
    box-shadow: none;
}

.mega-feature-primary {
    justify-content: space-between;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(4, 125, 172, 0.28);
    background: transparent;
    color: var(--text-primary);
    font-weight: 400;
}

.mega-feature-primary:hover,
.mega-feature-primary:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.mega-feature-secondary {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 400;
}

.mega-feature-secondary:hover,
.mega-feature-secondary:focus-visible {
    color: var(--accent-color);
}

:root[data-theme="dark"] .mega-link .mega-icon {
    border-color: rgba(119, 215, 255, 0.2);
    background: transparent;
}

:root[data-theme="dark"] .mega-feature-primary {
    border-color: rgba(119, 215, 255, 0.28);
}

/* Square preview of the hovered service's work */
.mega-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.mega-preview-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.08);
    transition:
        opacity 0.5s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.mega-preview-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.mega-preview-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CRM has no photo: a tiny pipeline board instead */
.mega-preview-crm {
    display: grid;
    height: 100%;
    padding: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    background: linear-gradient(160deg, #eaf7fd, #ffffff);
}

.mega-preview-crm i {
    display: block;
    height: 46%;
    border-top: 4px solid #4fc2f8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(7, 16, 21, 0.1);
}

.mega-preview-crm i:nth-child(2) {
    height: 34%;
}

.mega-preview-crm i.is-hot {
    height: 26%;
    border-top-color: #f6bd16;
}

.mega-preview-crm i.is-won {
    height: 18%;
    border-top-color: #36a352;
}

.mega-preview-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5, 15, 20, 0.66);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 650;
}

.mega-preview-label.is-changing {
    animation: mega-label-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mega-label-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

:root[data-theme="dark"] .dropdown-menu .mega-link:hover,
:root[data-theme="dark"] .dropdown-menu .mega-link:focus-visible {
    background: rgba(79, 194, 248, 0.1);
}

:root[data-theme="dark"] .dropdown-menu .mega-link:hover strong,
:root[data-theme="dark"] .dropdown-menu .mega-link:focus-visible strong,
:root[data-theme="dark"] .dropdown-menu .mega-link[aria-current="page"] strong {
    color: #77d7ff;
}

:root[data-theme="dark"] .mega-preview-crm {
    background: linear-gradient(160deg, #13212a, #0d181e);
}

:root[data-theme="dark"] .mega-preview-crm i {
    background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .mega-preview-slide {
        transform: none;
        transition: opacity 0.2s ease;
    }

    .mega-preview-label.is-changing {
        animation: none;
    }
}

@media (min-width: 1121px) {
    /* Position the panel against the full-width header, centred on the page */
    .nav-item.has-mega {
        position: static;
    }

    .mega-menu {
        top: calc(100% - 4px);
        left: 50%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 22px;
        width: min(780px, calc(100vw - 48px));
        padding: 20px;
        border-radius: 26px;
        transform: translate(-50%, 14px) scale(0.985);
        clip-path: inset(0 0 100% 0 round 26px);
        box-shadow: 0 30px 70px rgba(7, 16, 21, 0.14);
    }

    .has-mega.dropdown-open .mega-menu,
    .has-dropdown.has-mega:hover .mega-menu,
    .has-dropdown.has-mega:focus-within .mega-menu {
        transform: translate(-50%, 0) scale(1);
        clip-path: inset(0 0 0 0 round 26px);
    }

    .has-dropdown.has-mega:hover .mega-link,
    .has-dropdown.has-mega:focus-within .mega-link {
        opacity: 1;
        transform: none;
        transition:
            opacity 0.4s ease calc(var(--i, 0) * 28ms + 90ms),
            transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 28ms + 90ms),
            background-color 0.22s ease,
            color 0.22s ease;
    }

    .mega-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-template-rows: repeat(5, auto);
        gap: 2px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-link,
    .has-mega .mega-link {
        opacity: 1;
        transform: none;
        transition: background-color 0.22s ease, color 0.22s ease;
    }
}

:root[data-theme="dark"] .mega-icon {
    background: rgba(79, 194, 248, 0.12);
    color: #77d7ff;
}

:root[data-theme="dark"] .mega-link:hover .mega-icon,
:root[data-theme="dark"] .mega-link:focus-visible .mega-icon,
:root[data-theme="dark"] .mega-link[aria-current="page"] .mega-icon {
    background: #047dac;
    color: #ffffff;
}

:root[data-theme="dark"] .mega-menu {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.dropdown-link {
    position: relative;
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #222;
    font-size: 0.98rem;
    line-height: 1.4;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.dropdown-link::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: 12px;
    background: conic-gradient(from 180deg, #4e82e8, #36a352, #f6bd16, #e1473b, #4e82e8);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown-link:hover {
    background: #e7f3ff;
    color: #0b4ea2;
    transform: translateX(4px);
}

.dropdown-link:hover::after,
.dropdown-link:focus-visible::after {
    opacity: 1;
    transform: scale(1);
    animation: dropdownStrokeSpin 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes dropdownStrokeSpin {
    0% {
        clip-path: inset(0 100% 100% 0 round 12px);
    }

    35% {
        clip-path: inset(0 0 100% 0 round 12px);
    }

    65% {
        clip-path: inset(0 0 0 0 round 12px);
    }

    100% {
        clip-path: inset(0 0 0 0 round 12px);
        transform: scale(1);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.icon-button,
.menu-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.icon-button svg {
    width: 22px;
    height: 22px;
    stroke: #111;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.contact-now-button:hover {
    background: var(--accent-color-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.site-header.menu-open .menu-toggle {
    background: rgba(4, 125, 172, 0.08);
    outline: none;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: #111111;
    transition: transform 0.22s ease, fill 0.22s ease;
}

.menu-toggle:hover svg,
.menu-toggle:focus-visible svg,
.site-header.menu-open .menu-toggle svg {
    fill: var(--accent-color);
}

.site-header.menu-open .menu-toggle svg {
    transform: rotate(90deg);
}

.page-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 56px 28px 72px;
}

.home-about {
    margin-top: 28px;
    padding: clamp(72px, 9vw, 140px) 28px;
    background: transparent;
}

.home-about-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-about-eyebrow {
    margin: 0 0 24px;
    color: var(--accent-color);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-about-title {
    max-width: 920px;
    margin: 0 auto clamp(34px, 4vw, 56px);
    font-size: clamp(2rem, 4.1vw, 4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.home-about-copy {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.75;
}

.home-about-copy p {
    margin: 0;
}

.home-about-copy p + p {
    margin-top: 20px;
}

.home-about-copy strong {
    color: var(--text-primary);
    font-weight: 700;
}

.home-about-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.home-about-readmore,
.home-about-contact {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-about-readmore {
    background: transparent;
    color: var(--accent-color);
}

.home-about-contact {
    background: var(--accent-color);
    color: #fff;
}

.home-about-readmore:hover,
.home-about-readmore:focus-visible {
    background: var(--accent-color);
    color: #fff;
}

.home-about-contact:hover,
.home-about-contact:focus-visible {
    background: transparent;
    color: var(--accent-color);
}

.clients-carousel-section {
    position: relative;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(54px, 7vw, 92px) 0;
    overflow: hidden;
    border-top: 1px solid rgba(4, 125, 172, 0.09);
    border-bottom: 1px solid rgba(4, 125, 172, 0.09);
    background:
        linear-gradient(90deg, rgba(78, 130, 232, 0.04), rgba(54, 163, 82, 0.035), rgba(79, 194, 248, 0.05));
}

.clients-carousel-heading {
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto 34px;
}

.clients-carousel-heading p {
    margin: 0 0 5px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.clients-carousel-viewport {
    display: grid;
    gap: 22px;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.clients-carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.clients-carousel-track:first-child {
    animation: clients-logo-marquee-left 64s linear infinite;
}

.clients-carousel-track:last-child {
    animation: clients-logo-marquee-right 60s linear infinite;
}

.clients-carousel-viewport:hover .clients-carousel-track {
    animation-play-state: paused;
}

.client-logo-group {
    display: flex;
    flex: 0 0 auto;
    gap: 18px;
    padding-right: 18px;
}

.client-carousel-logo {
    display: grid;
    flex: 0 0 auto;
    width: 180px;
    height: 82px;
    padding: 8px 15px;
    place-items: center;
}

.client-carousel-logo img {
    display: block;
    width: 150px;
    height: 62px;
    object-fit: contain;
    filter: grayscale(0) saturate(1);
    transition:
        filter 0.45s ease,
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.client-carousel-logo:hover img {
    filter: grayscale(1) saturate(0) contrast(1.08);
    opacity: 0.82;
    transform: translateY(-4px) scale(1.045);
}

a.client-carousel-logo {
    cursor: pointer;
}

a.client-carousel-logo:focus-visible {
    border-radius: 10px;
    outline: 2px solid var(--accent-color);
    outline-offset: 5px;
}

a.client-carousel-logo:focus-visible img {
    filter: grayscale(1) saturate(0) contrast(1.08);
    transform: translateY(-4px) scale(1.045);
}

@keyframes clients-logo-marquee-left {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes clients-logo-marquee-right {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .clients-carousel-section {
        padding: 48px 0;
    }

    .clients-carousel-heading {
        width: calc(100% - 32px);
    }

    .client-logo-group {
        gap: 12px;
        padding-right: 12px;
    }

    .clients-carousel-viewport {
        gap: 14px;
    }

    .client-carousel-logo {
        width: 148px;
        height: 74px;
        padding: 7px 12px;
    }

    .client-carousel-logo img {
        width: 124px;
        height: 58px;
    }
}

.home-services {
    position: relative;
    margin-top: 28px;
    padding: clamp(68px, 8vw, 118px) clamp(20px, 4vw, 58px);
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.home-services::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(4, 125, 172, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 125, 172, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.home-services-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
    gap: 40px;
    width: min(1240px, 100%);
    margin: 0 auto clamp(42px, 5vw, 68px);
    align-items: end;
}

.home-services-eyebrow {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-services-heading h2 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.3rem, 4.7vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

.home-services-summary {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
    gap: 20px;
}

.home-services-summary > p {
    max-width: 42ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
}

.client-logo-chain {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding-left: 2px;
}

.client-logo-round {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #101a32;
    box-shadow: 0 9px 24px rgba(7, 16, 21, 0.18);
    transition:
        border-color 0.3s ease,
        transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.client-logo-round + .client-logo-round {
    margin-left: -16px;
}

.client-logo-round:nth-child(1) {
    z-index: 3;
}

.client-logo-round:nth-child(2) {
    z-index: 2;
}

.client-logo-round:nth-child(3) {
    z-index: 1;
}

/* Each circle shows a whole client logo, centred on white */
.client-logo-round {
    background: #ffffff;
}

.client-logo-round img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.35);
}

.client-logo-chain:hover .client-logo-round {
    border-color: #d6f4ff;
}

.client-logo-chain:hover .client-logo-round:nth-child(1) {
    transform: translateX(-5px) rotate(-4deg);
}

.client-logo-chain:hover .client-logo-round:nth-child(3) {
    transform: translateX(5px) rotate(4deg);
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 30px);
    width: min(1240px, 100%);
    margin: 0 auto;
    perspective: 1200px;
}

.service-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(240, 251, 255, 0.5));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(4, 125, 172, 0.08),
        0 20px 50px rgba(7, 16, 21, 0.1);
    scroll-margin-top: 120px;
    transform-origin: center bottom;
    will-change: transform, opacity;
    transition:
        opacity 0.8s ease,
        filter 0.9s ease,
        border-color 0.35s ease,
        box-shadow 0.45s ease,
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
    content: "";
    position: absolute;
    top: -35%;
    left: -75%;
    z-index: 4;
    width: 42%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
    opacity: 0;
    transform: rotate(18deg);
    pointer-events: none;
    transition:
        left 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 30px 70px rgba(7, 16, 21, 0.16),
        0 0 0 1px rgba(79, 194, 248, 0.16);
    transform: translateY(-9px);
}

.service-card:hover::before {
    left: 135%;
    opacity: 1;
}

.service-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 17px;
    background: #ddecf1;
}

.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 12, 17, 0.24), transparent 42%, rgba(2, 12, 17, 0.08));
    pointer-events: none;
}

.service-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-media img {
    transform: scale(1.055);
}

.home-services.services-reveal-ready .home-services-heading > div,
.home-services.services-reveal-ready .home-services-summary {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(34px);
    transition:
        opacity 0.8s ease,
        filter 0.9s ease,
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-services.services-reveal-ready .home-services-summary {
    transition-delay: 0.12s;
}

.home-services.services-reveal-ready .service-card {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(72px) scale(0.92) rotateX(9deg);
}

.home-services.services-reveal-ready .service-card:nth-child(1) {
    transition-delay: 0.12s;
}

.home-services.services-reveal-ready .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.home-services.services-reveal-ready .service-card:nth-child(3) {
    transition-delay: 0.28s;
}

.home-services.services-reveal-ready .service-card:nth-child(4) {
    transition-delay: 0.36s;
}

.home-services.services-reveal-ready .service-card:nth-child(5) {
    transition-delay: 0.44s;
}

.home-services.services-reveal-ready .service-card:nth-child(6) {
    transition-delay: 0.52s;
}

.home-services.services-reveal-ready.is-visible .home-services-heading > div,
.home-services.services-reveal-ready.is-visible .home-services-summary,
.home-services.services-reveal-ready.is-visible .service-card {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotateX(0deg);
}

.home-services.services-reveal-ready.is-visible .client-logo-round {
    animation: client-logo-arrive 0.72s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.home-services.services-reveal-ready.is-visible .client-logo-round:nth-child(1) {
    animation-delay: 0.25s;
}

.home-services.services-reveal-ready.is-visible .client-logo-round:nth-child(2) {
    animation-delay: 0.34s;
}

.home-services.services-reveal-ready.is-visible .client-logo-round:nth-child(3) {
    animation-delay: 0.43s;
}

.home-services.services-reveal-ready.is-visible .service-card:hover {
    transform: translateY(-9px) scale(1) rotateX(0deg);
    transition-delay: 0s;
}

@keyframes client-logo-arrive {
    from {
        opacity: 0;
        transform: translateX(-18px) scale(0.55) rotate(-12deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

.testimonials-area {
    position: relative;
    width: 100vw;
    margin-top: 28px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: clip;
    background:
        radial-gradient(circle at 18% 15%, rgba(78, 130, 232, 0.16), transparent 28%),
        radial-gradient(circle at 82% 80%, rgba(54, 163, 82, 0.12), transparent 26%),
        linear-gradient(145deg, #071b24 0%, #041116 58%, #071920 100%);
    color: #ffffff;
    isolation: isolate;
}

.testimonials-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(79, 194, 248, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 194, 248, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 82%);
    pointer-events: none;
}

.testimonials-sticky-stage {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(66px, 8vw, 112px) 28px;
}

.testimonials-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
    gap: 42px;
    width: min(1180px, 100%);
    margin: 0 auto 50px;
    align-items: end;
}

.testimonials-eyebrow {
    margin: 0 0 14px;
    color: #4fc2f8;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.testimonials-heading h2 {
    margin: 0;
    font-size: clamp(2.8rem, 5.7vw, 5.8rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.testimonials-heading h2 span {
    display: block;
    white-space: nowrap;
}

.testimonials-heading-copy > p {
    max-width: 43ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.google-rating-link {
    display: inline-flex;
    min-height: 48px;
    margin-top: 22px;
    padding: 7px 15px 7px 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    backdrop-filter: blur(14px);
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.google-rating-link:hover,
.google-rating-link:focus-visible {
    border-color: rgba(79, 194, 248, 0.7);
    background: rgba(255, 255, 255, 0.13);
    outline: none;
    transform: translateY(-3px);
}

.google-rating-link strong {
    color: #ffffff;
}

.google-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #4285f4;
    font-size: 1.05rem;
    font-weight: 800;
}

.testimonial-card-deck {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    display: flex;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 24px 60px rgba(0, 0, 0, 0.28);
}

.testimonial-card::after {
    content: "“";
    position: absolute;
    top: -22px;
    right: 17px;
    color: rgba(79, 194, 248, 0.09);
    font-family: Georgia, serif;
    font-size: 9rem;
    line-height: 1;
    pointer-events: none;
}

.testimonial-stars {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    color: #f6bd16;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-shadow: 0 0 18px rgba(246, 189, 22, 0.22);
}

.testimonial-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.92rem, 1.15vw, 1.03rem);
    line-height: 1.55;
}

.testimonial-card footer {
    position: relative;
    z-index: 1;
    display: flex;
    margin-top: auto;
    padding-top: 24px;
    align-items: center;
    gap: 12px;
}

.testimonial-card footer > span:last-child {
    display: grid;
    gap: 4px;
}

.testimonial-card footer strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.testimonial-card footer small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
}

.testimonial-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar--blue {
    background: linear-gradient(135deg, #4e82e8, #155db7);
}

.testimonial-avatar--green {
    background: linear-gradient(135deg, #5fbe70, #168149);
}

.testimonial-avatar--yellow {
    background: linear-gradient(135deg, #f6bd16, #e57818);
}

.testimonial-avatar--red {
    background: linear-gradient(135deg, #ed6b60, #b83342);
}

.testimonial-avatar--violet {
    background: linear-gradient(135deg, #946deb, #5532a8);
}

.testimonial-avatar--cyan {
    background: linear-gradient(135deg, #4fc2f8, #087aa8);
}

.testimonials-area.testimonials-motion-ready {
    height: 330vh;
    min-height: 2100px;
}

.testimonials-motion-ready .testimonials-sticky-stage {
    position: sticky;
    top: 0;
    display: flex;
    height: 100svh;
    min-height: 650px;
    padding-top: clamp(28px, 5vh, 58px);
    padding-bottom: clamp(24px, 4vh, 48px);
    flex-direction: column;
    overflow: hidden;
}

.testimonials-motion-ready .testimonials-heading {
    flex: 0 0 auto;
    margin-bottom: clamp(22px, 3vh, 38px);
}

.testimonials-motion-ready .testimonial-card-deck {
    position: relative;
    display: block;
    height: clamp(420px, 57vh, 610px);
    flex: 1 1 auto;
}

.testimonials-motion-ready .testimonial-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 27vw, 360px);
    min-height: clamp(220px, 27vh, 270px);
    will-change: transform, opacity;
}

@media (max-height: 760px) and (min-width: 761px) {
    .testimonials-motion-ready .testimonials-sticky-stage {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .testimonials-motion-ready .testimonials-heading {
        margin-bottom: 14px;
    }

    .testimonials-motion-ready .testimonials-heading h2 {
        font-size: clamp(2.8rem, 4.3vw, 4rem);
    }

    .testimonials-motion-ready .testimonials-heading-copy > p {
        display: none;
    }

    .testimonials-motion-ready .google-rating-link {
        margin-top: 0;
    }

    .testimonials-motion-ready .testimonial-card-deck {
        height: clamp(430px, 66vh, 510px);
    }

    .testimonials-motion-ready .testimonial-card {
        min-height: 0;
        padding: 20px;
    }

    .testimonials-motion-ready .testimonial-stars {
        margin-bottom: 12px;
        font-size: 0.8rem;
    }

    .testimonials-motion-ready .testimonial-copy {
        font-size: 0.86rem;
        line-height: 1.42;
    }

    .testimonials-motion-ready .testimonial-card footer {
        padding-top: 14px;
    }

    .testimonials-motion-ready .testimonial-avatar {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 760px) {
    .testimonials-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-heading h2 {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .testimonials-heading-copy > p {
        display: none;
    }

    .google-rating-link {
        margin-top: 0;
    }

    .testimonial-card-deck {
        grid-template-columns: 1fr;
    }

    .testimonials-motion-ready .testimonials-sticky-stage {
        min-height: 680px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .testimonials-motion-ready .testimonials-heading {
        margin-bottom: 14px;
    }

    .testimonials-motion-ready .testimonial-card-deck {
        height: clamp(400px, 58vh, 520px);
    }

    .testimonials-motion-ready .testimonial-card {
        width: min(43vw, 210px);
        min-height: 190px;
        padding: 16px;
        border-radius: 17px;
    }

    .testimonials-motion-ready .testimonial-stars {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }

    .testimonials-motion-ready .testimonial-copy {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(0.68rem, 2.7vw, 0.82rem);
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }

    .testimonials-motion-ready .testimonial-card footer {
        padding-top: 12px;
        gap: 8px;
    }

    .testimonials-motion-ready .testimonial-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.56rem;
    }

    .testimonials-motion-ready .testimonial-card footer strong {
        font-size: 0.68rem;
    }

    .testimonials-motion-ready .testimonial-card footer small {
        font-size: 0.58rem;
    }
}

.contact-banner {
    position: relative;
    display: grid;
    width: 100vw;
    min-height: clamp(650px, 82vh, 900px);
    margin-top: 28px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(34px, 6vw, 84px) 24px;
    overflow: hidden;
    place-items: center;
    scroll-margin-top: 100px;
    isolation: isolate;
}

.testimonials-area + .contact-banner {
    margin-top: 0;
}

.contact-banner-image,
.contact-banner-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-banner-image {
    z-index: -2;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.035);
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-banner-shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 21, 18, 0.06), rgba(4, 18, 16, 0.25)),
        radial-gradient(circle at center, transparent 20%, rgba(3, 18, 20, 0.22) 100%);
    pointer-events: none;
}

.contact-banner-panel {
    width: min(620px, 100%);
    padding: clamp(38px, 6vw, 68px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(8, 28, 28, 0.34), rgba(5, 18, 23, 0.54));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 35px 90px rgba(3, 16, 13, 0.34);
    text-align: center;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.contact-banner-eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-banner-panel h2 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.contact-banner-copy {
    max-width: 47ch;
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.65;
}

.contact-banner-button {
    display: flex;
    width: min(360px, 100%);
    min-height: 60px;
    margin: 32px auto 0;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background: linear-gradient(100deg, #6ebc1c, #09a963 54%, #047dac);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 750;
    box-shadow: 0 16px 38px rgba(2, 31, 21, 0.28);
    transition:
        box-shadow 0.35s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-banner-button span:last-child {
    font-size: 1.2rem;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-banner-button:hover,
.contact-banner-button:focus-visible {
    box-shadow: 0 22px 46px rgba(2, 31, 21, 0.38);
    outline: none;
    transform: translateY(-4px);
}

.contact-banner-button:hover span:last-child,
.contact-banner-button:focus-visible span:last-child {
    transform: translate(3px, -3px);
}

.contact-banner-services {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-banner-services span {
    margin: 0 8px;
    color: #b8e96b;
}

.contact-banner.contact-banner-ready .contact-banner-panel {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(56px) scale(0.94);
    transition:
        opacity 0.8s ease,
        filter 1s ease,
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-banner.contact-banner-ready.is-visible .contact-banner-panel {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.contact-banner.contact-banner-ready.is-visible .contact-banner-image {
    transform: scale(1);
}

.home-blog-area {
    position: relative;
    width: 100vw;
    margin-top: 28px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(64px, 7vw, 104px) 28px;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.home-blog-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(4, 125, 172, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 125, 172, 0.065) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    pointer-events: none;
}

.home-blog-heading {
    display: flex;
    margin-bottom: clamp(34px, 4vw, 52px);
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    width: min(1320px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.home-blog-heading p {
    margin: 0 0 13px;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-blog-heading h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.home-blog-heading > a {
    display: inline-flex;
    min-height: 46px;
    padding: 0 17px;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(7, 25, 32, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
    font-weight: 650;
    transition:
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-blog-heading > a:hover,
.home-blog-heading > a:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    outline: none;
    transform: translateY(-3px);
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1320px, 100%);
    margin: 0 auto;
}

.home-blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(235, 249, 253, 0.38));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(4, 125, 172, 0.06),
        0 18px 42px rgba(7, 16, 21, 0.1);
    transition:
        border-color 0.3s ease,
        box-shadow 0.4s ease,
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-blog-card:hover,
.home-blog-card:focus-visible {
    border-color: rgba(4, 125, 172, 0.28);
    box-shadow: 0 24px 52px rgba(7, 16, 21, 0.13);
    outline: none;
    transform: translateY(-7px);
}

.home-blog-card--featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 400px;
}

.home-blog-media {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    background: #dce5e8;
}

.home-blog-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 66%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(246, 252, 253, 0.12) 18%,
        rgba(246, 252, 253, 0.44) 48%,
        rgba(246, 252, 253, 0.8) 76%,
        rgba(246, 252, 253, 0.98) 100%
    );
    pointer-events: none;
}

.home-blog-card--featured .home-blog-media::after {
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(244, 251, 252, 0.12) 18%,
        rgba(244, 251, 252, 0.42) 48%,
        rgba(244, 251, 252, 0.8) 76%,
        rgba(244, 251, 252, 0.98) 100%
    );
}

.home-blog-card--featured .home-blog-media {
    min-height: 400px;
}

.home-blog-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-blog-card:hover .home-blog-media img,
.home-blog-card:focus-visible .home-blog-media img {
    transform: scale(1.045);
}

.home-blog-content {
    display: flex;
    min-width: 0;
    padding: 24px;
    flex: 1;
    flex-direction: column;
}

.home-blog-card--featured .home-blog-content {
    position: relative;
    z-index: 2;
    margin-left: -90px;
    padding: clamp(34px, 5vw, 68px);
    padding-left: calc(clamp(34px, 5vw, 68px) + 90px);
}

.home-blog-content h3 {
    margin: 18px 0 13px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.home-blog-card--featured .home-blog-content h3 {
    max-width: 18ch;
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.04;
}

.home-blog-content > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-blog-card--featured .home-blog-content > p {
    max-width: 55ch;
    font-size: 1rem;
}

.home-blog-content footer {
    display: flex;
    margin-top: auto;
    padding-top: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(17, 17, 17, 0.56);
    font-size: 0.7rem;
}

.home-blog-content footer span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    vertical-align: 1px;
}

.home-blog-content footer strong {
    color: var(--text-primary);
    font-weight: 650;
}

@media (max-width: 900px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-blog-card--featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .home-blog-area {
        margin-top: 18px;
        padding: 52px 14px;
    }

    .home-blog-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-blog-heading h2 {
        font-size: clamp(2.5rem, 13vw, 3.8rem);
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .home-blog-card--featured {
        display: flex;
        min-height: 0;
    }

    .home-blog-card--featured .home-blog-media {
        min-height: 240px;
    }

    .home-blog-card--featured .home-blog-content {
        margin-left: 0;
        padding: 26px 22px;
    }

    .home-blog-card--featured .home-blog-media::after {
        inset: auto 0 0;
        width: 100%;
        height: 66%;
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(246, 252, 253, 0.12) 18%,
            rgba(246, 252, 253, 0.44) 48%,
            rgba(246, 252, 253, 0.8) 76%,
            rgba(246, 252, 253, 0.98) 100%
        );
    }

    .home-blog-card--featured .home-blog-content h3 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }
}

.site-footer {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #f1f3f3;
}

.footer-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(24px, 3vw, 44px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 8% 18%, rgba(78, 130, 232, 0.2), transparent 32%),
        radial-gradient(circle at 92% 76%, rgba(79, 194, 248, 0.25), transparent 34%),
        linear-gradient(135deg, #f4f7ff 0%, #edfaff 52%, #e6fbff 100%);
    box-shadow: inset 0 1px 0 #ffffff;
}

.footer-cta {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(58px, 8vw, 108px) 20px clamp(64px, 8vw, 104px);
    text-align: center;
}

.footer-cta > p {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-cta h2 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.footer-cta > span {
    display: block;
    max-width: 55ch;
    margin: 26px auto 0;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.25vw, 1.1rem);
    line-height: 1.6;
}

.footer-cta-actions {
    display: flex;
    margin-top: 30px;
    justify-content: center;
    gap: 12px;
}

.footer-cta-primary,
.footer-cta-secondary {
    display: inline-flex;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.35s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-cta-primary {
    gap: 16px;
    background: #071920;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(7, 25, 32, 0.2);
}

.footer-cta-secondary {
    border: 1px solid rgba(7, 25, 32, 0.16);
    background: rgba(255, 255, 255, 0.74);
}

.footer-cta-primary:hover,
.footer-cta-primary:focus-visible,
.footer-cta-secondary:hover,
.footer-cta-secondary:focus-visible {
    outline: none;
    transform: translateY(-4px);
}

.footer-cta-primary:hover,
.footer-cta-primary:focus-visible {
    background: var(--accent-color);
    box-shadow: 0 18px 34px rgba(4, 125, 172, 0.26);
}

.footer-cta-secondary:hover,
.footer-cta-secondary:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) minmax(260px, 1.05fr);
    gap: clamp(34px, 5vw, 76px);
    padding: clamp(34px, 5vw, 68px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 18px 48px rgba(7, 16, 21, 0.07);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.footer-brand {
    display: inline-block;
}

.footer-brand img {
    display: block;
    width: 150px;
    height: auto;
}

.footer-brand-column p {
    max-width: 38ch;
    margin: 26px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-link-column,
.footer-contact-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    font-style: normal;
}

.footer-link-column h3,
.footer-contact-column h3 {
    margin: 3px 0 22px;
    color: rgba(17, 17, 17, 0.52);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-link-column a {
    position: relative;
    margin: 0 0 13px;
    font-size: 0.88rem;
    font-weight: 520;
    transition: color 0.25s ease, transform 0.3s ease;
}

.footer-link-column a:hover,
.footer-link-column a:focus-visible {
    color: var(--accent-color);
    outline: none;
    transform: translateX(4px);
}

.footer-contact-column a {
    display: flex;
    margin-bottom: 17px;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
    transition: color 0.25s ease;
}

.footer-contact-column a:hover,
.footer-contact-column a:focus-visible {
    color: var(--accent-color);
    outline: none;
}

.footer-contact-column svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-bottom {
    display: flex;
    padding: 24px 10px 2px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(17, 17, 17, 0.5);
    font-size: 0.74rem;
}

.footer-bottom p {
    margin: 0;
}

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

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: var(--accent-color);
    outline: none;
}

@media (max-width: 980px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 0;
    }

    .footer-shell {
        padding: 10px;
        border-radius: 0;
    }

    .footer-cta {
        padding: 58px 14px 64px;
    }

    .footer-cta h2 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .footer-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 34px 24px;
        border-radius: 21px;
    }

    .footer-brand-column p {
        margin-top: 20px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px 10px 6px;
    }
}

.service-card-body {
    position: relative;
    display: flex;
    min-height: 230px;
    padding: 26px;
    flex: 1;
    flex-direction: column;
}

.service-card-body h3 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 2vw, 1.78rem);
    font-weight: 550;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.service-card-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.62;
}

.service-card-learn-more {
    position: relative;
    display: inline-flex;
    width: max-content;
    margin-top: auto;
    padding: 24px 22px 5px 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
}

.service-card-learn-more::before {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 7px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card-learn-more::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 0;
    width: calc(100% - 22px);
    height: 2px;
    background: linear-gradient(90deg, #4e82e8, #36a352, #f6bd16, #e1473b);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card-learn-more:hover,
.service-card-learn-more:focus-visible {
    color: var(--accent-color);
    outline: none;
}

.service-card-learn-more:hover::before,
.service-card-learn-more:focus-visible::before {
    transform: translateX(4px) rotate(45deg);
}

.service-card-learn-more:hover::after,
.service-card-learn-more:focus-visible::after {
    transform: scaleX(0.62);
}

@media (max-width: 980px) {
    .services-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-services {
        margin-top: 18px;
        padding: 56px 14px;
    }

    .home-services-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-services-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .home-services-heading h2 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

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

    .service-card {
        border-radius: 20px;
    }

    .service-card-body {
        min-height: 210px;
        padding: 24px 22px 25px;
    }

    .contact-banner {
        min-height: 720px;
        margin-top: 18px;
        padding: 24px 14px;
    }

    .contact-banner-image {
        object-position: 52% center;
    }

    .contact-banner-panel {
        padding: 42px 24px;
        border-radius: 26px;
    }

    .contact-banner-panel h2 {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .contact-banner-button {
        min-height: 56px;
    }
}

.project-showcase-area {
    position: relative;
    min-height: clamp(700px, 88vh, 920px);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(120, 205, 242, 0.16);
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 50%, rgba(4, 125, 172, 0.2), transparent 29%),
        radial-gradient(circle at 12% 15%, rgba(78, 130, 232, 0.12), transparent 28%),
        linear-gradient(145deg, #071920 0%, #041116 55%, #061b25 100%);
    box-shadow: 0 34px 80px rgba(7, 16, 21, 0.2);
    isolation: isolate;
}

.brand-kit-scene {
    position: relative;
    width: min(1320px, 100%);
    margin: clamp(28px, 4vw, 56px) auto 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(7, 16, 21, 0.16);
    isolation: isolate;
}

.brand-kit-scene::before {
    content: "";
    position: absolute;
    top: 19.7%;
    left: 14.5%;
    z-index: 1;
    width: 22%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
    transform: translate(-50%, -50%) scale(1);
    animation: brand-kit-scene-sun-pulse 5s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
}

.brand-kit-scene::after {
    content: "";
    position: absolute;
    inset: -20% -40%;
    z-index: 2;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
    transform: translateX(-60%);
    opacity: 0;
    animation: brand-kit-scene-sweep 9s ease-in-out infinite;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.brand-kit-scene-stage {
    position: relative;
    transform: scale(1);
    transform-origin: 50% 62%;
    animation: brand-kit-scene-kenburns 24s ease-in-out infinite alternate;
    will-change: transform;
}

.brand-kit-scene-base {
    display: block;
    width: 100%;
    height: auto;
}

.brand-kit-scene-cloud {
    position: absolute;
    top: 12%;
    z-index: 1;
    width: 11%;
    aspect-ratio: 2.6 / 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    filter: blur(6px);
    opacity: 0.8;
    pointer-events: none;
    animation: brand-kit-scene-drift linear infinite;
}

.brand-kit-scene-cloud--one {
    top: 10%;
    width: 13%;
    animation-duration: 34s;
    animation-delay: -6s;
}

.brand-kit-scene-cloud--two {
    top: 20%;
    width: 8%;
    opacity: 0.6;
    animation-duration: 46s;
    animation-delay: -18s;
}

.brand-kit-scene-cloud--three {
    top: 30%;
    width: 9%;
    opacity: 0.5;
    animation-duration: 55s;
    animation-delay: -32s;
}

.brand-kit-scene-fan-mount {
    position: absolute;
    top: 45%;
    left: 69.4%;
    z-index: 1;
    width: 14%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.brand-kit-scene-fan {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    animation: brand-kit-scene-fan-spin 9s linear infinite;
}

.brand-kit-scene-title {
    position: absolute;
    top: clamp(24px, 8%, 72px);
    left: clamp(20px, 6%, 64px);
    z-index: 3;
    max-width: 46%;
    margin: 0;
    color: #111111;
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

@keyframes brand-kit-scene-kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.035);
    }
}

@keyframes brand-kit-scene-sun-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12);
    }
}

@keyframes brand-kit-scene-sweep {
    0% {
        opacity: 0;
        transform: translateX(-60%);
    }

    6% {
        opacity: 0.6;
    }

    20% {
        opacity: 0;
        transform: translateX(140%);
    }

    100% {
        opacity: 0;
        transform: translateX(140%);
    }
}

@keyframes brand-kit-scene-drift {
    from {
        left: -16%;
    }

    to {
        left: 116%;
    }
}

@keyframes brand-kit-scene-fan-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .brand-kit-scene {
        margin-top: 18px;
        border-radius: 20px;
    }

    .brand-kit-scene-fan-mount {
        width: 18%;
    }

    .brand-kit-scene-title {
        max-width: 66%;
        font-size: clamp(1.3rem, 7vw, 1.9rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-kit-scene::before,
    .brand-kit-scene::after,
    .brand-kit-scene-stage,
    .brand-kit-scene-cloud,
    .brand-kit-scene-fan {
        animation: none;
    }
}

.icon-button.theme-toggle {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 50%;
    color: var(--text-primary);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--accent-color);
    background: rgba(4, 125, 172, 0.1);
    color: var(--accent-color);
    outline: none;
    transform: rotate(-8deg) scale(1.05);
}

.theme-toggle .theme-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-icon--sun {
    opacity: 0;
    transform: rotate(-80deg) scale(0.55);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --text-primary: #f2f7f9;
    --text-secondary: #aebdc3;
    --border-color: #263a43;
    --header-bg: #0b1115;
    --page-bg: #0b151a;
}

:root[data-theme="dark"] body {
    background: var(--page-bg);
    color: var(--text-primary);
}

:root[data-theme="dark"] .theme-icon--moon {
    opacity: 0;
    transform: rotate(80deg) scale(0.55);
}

:root[data-theme="dark"] .theme-icon--sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .site-header {
    border-top-color: #263a43;
}

:root[data-theme="dark"] .site-header.is-scrolled .header-shell {
    border-color: rgba(79, 194, 248, 0.2);
    background: rgba(11, 17, 21, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .nav-button,
:root[data-theme="dark"] .icon-button svg {
    color: var(--text-primary);
    stroke: currentColor;
}

:root[data-theme="dark"] .dropdown-menu {
    border-color: #2a3b43;
    background: #111c21;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .dropdown-link {
    color: #e7f0f3;
}

:root[data-theme="dark"] .dropdown-link:hover {
    background: rgba(4, 125, 172, 0.2);
    color: #77d7ff;
}

:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .home-blog-card {
    border-color: rgba(119, 215, 255, 0.16);
    background: linear-gradient(145deg, rgba(25, 42, 50, 0.92), rgba(13, 27, 33, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .clients-carousel-section {
    border-color: rgba(79, 194, 248, 0.12);
    background: linear-gradient(90deg, rgba(4, 125, 172, 0.07), rgba(54, 163, 82, 0.04), rgba(79, 194, 248, 0.08));
}

/* Dark mode swaps in the white-mode logo files (assets/img/clients/dark, built by `npm run logos`). */
.client-carousel-logo img.client-logo-dark,
:root[data-theme="dark"] .client-carousel-logo img.client-logo-light {
    display: none;
}

:root[data-theme="dark"] .client-carousel-logo img.client-logo-dark {
    display: block;
}

:root[data-theme="dark"] .home-blog-media {
    background: #13242c;
}

:root[data-theme="dark"] .home-blog-content footer {
    color: rgba(255, 255, 255, 0.58);
}

:root[data-theme="dark"] .home-blog-card:hover,
:root[data-theme="dark"] .home-blog-card:focus-visible {
    border-color: rgba(119, 215, 255, 0.36);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .home-blog-heading > a,
:root[data-theme="dark"] .project-detail-navigation a {
    border-color: rgba(119, 215, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .project-detail-navigation a:hover,
:root[data-theme="dark"] .project-detail-navigation a:focus-visible {
    background: #13242c;
}

:root[data-theme="dark"] .about-purpose {
    border-top-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .about-purpose-tab {
    color: rgba(255, 255, 255, 0.62);
}

:root[data-theme="dark"] .about-purpose-panel strong {
    color: #ffffff;
}

:root[data-theme="dark"] .about-story-rail,
:root[data-theme="dark"] .project-detail-count {
    color: rgba(255, 255, 255, 0.5);
}

:root[data-theme="dark"] .awards-area {
    background:
        radial-gradient(circle at 8% 8%, rgba(78, 130, 232, 0.13), transparent 27%),
        radial-gradient(circle at 92% 84%, rgba(54, 163, 82, 0.08), transparent 27%),
        linear-gradient(145deg, #0c181e 0%, #101d23 52%, #0b171d 100%);
}

:root[data-theme="dark"] .awards-heading h2 {
    color: #83a4ff;
}

:root[data-theme="dark"] .awards-heading > .awards-heading-copy > p {
    color: var(--text-secondary);
}

:root[data-theme="dark"] .blog-page {
    background: var(--page-bg);
}

:root[data-theme="dark"] .site-footer {
    background: #080f13;
}

:root[data-theme="dark"] .footer-shell {
    background:
        radial-gradient(circle at 8% 18%, rgba(78, 130, 232, 0.15), transparent 32%),
        radial-gradient(circle at 92% 76%, rgba(79, 194, 248, 0.12), transparent 34%),
        linear-gradient(135deg, #101920 0%, #0d1b21 52%, #0b171c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .footer-content {
    border-color: rgba(119, 215, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 18px 48px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .footer-cta-secondary {
    border-color: rgba(119, 215, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .footer-link-column h3,
:root[data-theme="dark"] .footer-contact-column h3,
:root[data-theme="dark"] .footer-bottom {
    color: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .home-blog-media::after {
    background: linear-gradient(180deg, transparent, rgba(14, 28, 34, 0.95));
}

:root[data-theme="dark"] .home-blog-card--featured .home-blog-media::after {
    background: linear-gradient(90deg, transparent, rgba(14, 28, 34, 0.95));
}

@media (max-width: 1120px) {
    :root[data-theme="dark"] .main-nav {
        background: #111c21;
    }
}

@media (max-width: 420px) {
    .icon-button.theme-toggle {
        display: grid;
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

.brand-kit-why {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 130px);
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(90px, 11vw, 160px) clamp(10px, 3vw, 38px);
}

.brand-kit-why-heading > p {
    margin: 0 0 18px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-kit-why-heading h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.brand-kit-why-copy {
    max-width: 670px;
    padding-top: clamp(8px, 4vw, 52px);
}

.brand-kit-why-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.brand-kit-why-copy p + p {
    margin-top: 22px;
}

.brand-kit-why-copy .brand-kit-why-highlight {
    position: relative;
    padding: 18px 22px 18px 26px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    background: rgba(4, 125, 172, 0.08);
    color: var(--text-primary);
    font-weight: 750;
}

@media (max-width: 800px) {
    .brand-kit-why {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 78px 8px;
    }

    .brand-kit-why-heading h2 {
        font-size: clamp(2.6rem, 12vw, 4.4rem);
    }

    .brand-kit-why-copy {
        padding-top: 0;
    }
}

.brand-kit-process {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(10px, 3vw, 38px) clamp(90px, 11vw, 160px);
}

.brand-kit-process-heading {
    max-width: 620px;
    margin: 0 auto clamp(56px, 7vw, 96px);
}

.brand-kit-process-heading p {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-kit-process-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 550;
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.brand-kit-process-rail {
    position: relative;
}

.brand-kit-process-path {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: 150px;
    opacity: 0.85;
    pointer-events: none;
}

.brand-kit-process-path svg {
    width: 100%;
    height: 100%;
}

.brand-kit-process-steps {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(18px, 2.4vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-kit-process-step {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-kit-process-stem {
    position: relative;
    display: block;
    height: 150px;
}

.brand-kit-process-stem::after {
    content: "";
    position: absolute;
    top: var(--dot-top);
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, rgba(4, 125, 172, 0.25) 100%);
    transform: translateX(-50%);
}

.brand-kit-process-step:nth-child(1) .brand-kit-process-stem {
    --dot-top: 82.6%;
}

.brand-kit-process-step:nth-child(2) .brand-kit-process-stem {
    --dot-top: 57.3%;
}

.brand-kit-process-step:nth-child(3) .brand-kit-process-stem {
    --dot-top: 33.3%;
}

.brand-kit-process-step:nth-child(4) .brand-kit-process-stem {
    --dot-top: 10.6%;
}

.brand-kit-process-index {
    position: absolute;
    top: var(--dot-top);
    left: 50%;
    z-index: 1;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow:
        0 0 0 5px var(--page-bg),
        0 8px 18px rgba(4, 125, 172, 0.35);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 750;
    transform: translate(-50%, -50%);
}

.brand-kit-process-card {
    flex: 1;
    padding: clamp(22px, 2.2vw, 26px) clamp(18px, 2vw, 22px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--header-bg);
    box-shadow: 0 14px 34px rgba(7, 16, 21, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.brand-kit-process-step:hover .brand-kit-process-card,
.brand-kit-process-step:focus-within .brand-kit-process-card {
    border-color: rgba(4, 125, 172, 0.35);
    box-shadow: 0 20px 44px rgba(7, 16, 21, 0.14);
    transform: translateY(-4px);
}

.brand-kit-process-card h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.3;
}

.brand-kit-process-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .brand-kit-process-path {
        display: none;
    }

    .brand-kit-process-steps {
        flex-direction: column;
        gap: 22px;
    }

    .brand-kit-process-stem {
        height: auto;
        padding-bottom: 14px;
    }

    .brand-kit-process-stem::after {
        display: none;
    }

    .brand-kit-process-index {
        position: static;
        transform: none;
        box-shadow: 0 8px 18px rgba(4, 125, 172, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-kit-process-card {
        transition: none;
    }
}

.brand-kit-include {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(10px, 3vw, 38px) clamp(90px, 11vw, 160px);
}

.brand-kit-include-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    padding: clamp(30px, 4vw, 56px);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 34px 80px rgba(7, 16, 21, 0.08);
}

.brand-kit-include-intro {
    position: sticky;
    top: calc(var(--fixed-header-offset, 0px) + 40px);
}

.brand-kit-include-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(4, 125, 172, 0.1);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-kit-include-badge svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
}

.brand-kit-include-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 3.4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.brand-kit-include-intro h2 span {
    color: var(--accent-color);
}

.brand-kit-include-intro p {
    margin: 0;
    max-width: 420px;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
}

.brand-kit-include-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-kit-include-item {
    border: 1px solid transparent;
    border-radius: 18px;
    background: #f4f5f7;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.brand-kit-include-item.is-open {
    border-color: rgba(4, 125, 172, 0.18);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(7, 16, 21, 0.07);
}

.brand-kit-include-question {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.brand-kit-include-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 20px clamp(18px, 2.4vw, 26px);
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.brand-kit-include-trigger:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 12px;
}

.brand-kit-include-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.12);
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.brand-kit-include-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-primary);
    transition: stroke 0.35s ease, transform 0.35s ease;
}

.brand-kit-include-item.is-open .brand-kit-include-icon {
    background: var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

.brand-kit-include-item.is-open .brand-kit-include-icon svg {
    stroke: #ffffff;
    transform: rotate(180deg);
}

.brand-kit-include-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-kit-include-item.is-open .brand-kit-include-panel {
    grid-template-rows: 1fr;
}

.brand-kit-include-panel > p {
    min-height: 0;
    margin: 0;
    padding: 0 clamp(18px, 2.4vw, 26px) 22px;
    color: var(--text-secondary);
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    line-height: 1.7;
}

.brand-kit-include-footnote {
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(30px, 4vw, 52px);
    border-radius: 26px;
    border: 1px solid rgba(4, 125, 172, 0.18);
    background: rgba(4, 125, 172, 0.06);
}

.brand-kit-include-footnote h3 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.brand-kit-include-footnote p {
    margin: 0;
    max-width: 760px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.75;
}

/* Dark mode: the section above hard-codes white surfaces, so give it dark ones. */
:root[data-theme="dark"] .brand-kit-include-grid {
    border: 1px solid rgba(119, 215, 255, 0.12);
    background:
        radial-gradient(circle at 0% 0%, rgba(4, 125, 172, 0.16), transparent 40%),
        linear-gradient(160deg, #13212a 0%, #0d181e 100%);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .brand-kit-include-badge {
    background: rgba(79, 194, 248, 0.12);
    color: #77d7ff;
}

:root[data-theme="dark"] .brand-kit-include-intro h2 span {
    color: #4fc2f8;
}

:root[data-theme="dark"] .brand-kit-include-item {
    border-color: rgba(119, 215, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .brand-kit-include-item.is-open {
    border-color: rgba(119, 215, 255, 0.28);
    background: rgba(4, 125, 172, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .brand-kit-include-icon {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .brand-kit-include-item.is-open .brand-kit-include-icon {
    background: var(--accent-color);
    box-shadow: inset 0 0 0 1px #4fc2f8;
}

:root[data-theme="dark"] .brand-kit-include-trigger:focus-visible {
    outline-color: #4fc2f8;
}

:root[data-theme="dark"] .brand-kit-include-footnote {
    border-color: rgba(119, 215, 255, 0.18);
    background: rgba(79, 194, 248, 0.07);
}

@media (max-width: 900px) {
    .brand-kit-include-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-kit-include-intro {
        position: static;
    }

    .brand-kit-include-intro p {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-kit-include-item,
    .brand-kit-include-panel,
    .brand-kit-include-icon,
    .brand-kit-include-icon svg {
        transition: none;
    }
}

.brand-projects-showcase {
    --brand-project-color: #ca2c46;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(680px, 82vh, 880px);
    margin-top: 28px;
    overflow: hidden;
    border-radius: 34px;
    background-color: var(--brand-project-color);
    background-image:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.28), transparent 58%, rgba(7, 88, 187, 0.16));
    color: #ffffff;
    box-shadow: 0 34px 80px rgba(7, 16, 21, 0.18);
    transition: background-color 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-visual {
    position: relative;
    display: grid;
    min-width: 0;
    padding: clamp(44px, 6vw, 86px);
    place-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-projects-slides {
    position: relative;
    width: min(680px, 100%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: #061b25;
    box-shadow: none;
    transition:
        opacity 0.32s ease,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-slides.is-switching {
    opacity: 0.15;
    transform: scale(0.97);
}

.brand-projects-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.18) 0%,
            transparent 18%,
            transparent 76%,
            rgba(255, 255, 255, 0.08) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        inset 1px 0 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.brand-projects-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transition:
        opacity 0.7s ease,
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

.brand-projects-slide-status {
    position: absolute;
    right: clamp(44px, 6vw, 86px);
    bottom: clamp(24px, 3vw, 42px);
    left: clamp(44px, 6vw, 86px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, 0.72);
}

.brand-projects-slide-meta {
    display: grid;
    gap: 5px;
    transition:
        opacity 0.28s ease,
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-slide-meta.is-switching {
    opacity: 0;
    transform: translateY(6px);
}

.brand-projects-slide-meta strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.brand-projects-slide-meta span {
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.brand-projects-dots {
    display: flex;
    gap: 7px;
}

.brand-projects-dots button {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.brand-projects-dots button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

.brand-projects-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
}

.brand-projects-intro {
    padding: clamp(44px, 5.5vw, 78px) clamp(38px, 6vw, 92px) 22px;
}

.brand-projects-intro > p {
    margin: 0 0 14px;
    color: #a9e5ff;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-projects-intro h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.25rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.brand-projects-tabs {
    display: grid;
    padding: 22px clamp(38px, 6vw, 92px) 42px;
    align-content: center;
    gap: 4px;
}

.brand-project-tab {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
    font: inherit;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 450;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.35s ease,
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-project-tab:hover {
    color: rgba(255, 255, 255, 0.68);
    transform: translateX(8px);
}

.brand-project-tab:focus-visible {
    border-radius: 5px;
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

.brand-project-tab.is-active {
    color: #ffffff;
    transform: translateX(0);
}

.brand-projects-story {
    padding: clamp(34px, 4vw, 56px) clamp(38px, 6vw, 92px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition:
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-projects-story.is-switching {
    opacity: 0;
    transform: translateY(10px);
}

.brand-projects-story-label {
    margin: 0 0 12px;
    color: #a9e5ff;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-projects-story h3 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    font-weight: 650;
    line-height: 1.25;
}

.brand-projects-story > p:last-child {
    max-width: 600px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .brand-projects-showcase {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .brand-projects-visual {
        padding: 28px 28px 68px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .brand-projects-slides {
        width: min(620px, 100%);
        aspect-ratio: 4 / 3;
    }

    .brand-projects-slide-status {
        right: 28px;
        bottom: 26px;
        left: 28px;
    }

    .brand-projects-tabs {
        padding-top: 34px;
        padding-bottom: 44px;
    }
}

@media (max-width: 640px) {
    .brand-projects-showcase {
        margin-top: 18px;
        border-radius: 24px;
    }

    .brand-projects-visual {
        padding: 14px 14px 58px;
    }

    .brand-projects-slides {
        aspect-ratio: 1 / 1.05;
        border-radius: 16px;
    }

    .brand-projects-slide-status {
        right: 18px;
        bottom: 22px;
        left: 18px;
        align-items: flex-end;
    }

    .brand-projects-slide-meta {
        max-width: 190px;
    }

    .brand-projects-intro,
    .brand-projects-tabs,
    .brand-projects-story {
        padding-right: 24px;
        padding-left: 24px;
    }

    .brand-project-tab {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-projects-slide,
    .brand-projects-slides,
    .brand-projects-story,
    .brand-projects-slide-meta,
    .brand-project-tab,
    .brand-projects-dots button {
        transition: none;
    }
}

.project-showcase-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, #000, transparent 76%);
    pointer-events: none;
}

.project-splash-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.project-splash-card {
    position: absolute;
    /* Cards sit at their target spot; the closed state offsets them back to the centre with a transform. */
    top: var(--target-top, 50%);
    left: var(--target-left, 50%);
    width: clamp(132px, 15.5vw, 232px);
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: #102833;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.44);
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--from-x, 0px), var(--from-y, 0px)) rotate(0deg) scale(0.12);
    transform-origin: center;
    will-change: opacity, transform;
    pointer-events: none;
    cursor: pointer;
    transition:
        opacity 0.34s ease,
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-splash-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-showcase-area.is-open .project-splash-card {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0px, 0px) rotate(var(--target-rotation)) scale(1);
    transition-delay: var(--splash-delay);
    pointer-events: auto;
}

.project-showcase-area.is-open .project-splash-card:hover,
.project-showcase-area.is-open .project-splash-card:focus-visible {
    z-index: 4;
    border-color: rgba(79, 194, 248, 0.92);
    box-shadow:
        0 26px 52px rgba(0, 0, 0, 0.52),
        0 0 0 3px rgba(79, 194, 248, 0.2);
    outline: none;
    transform: translate(-50%, -50%) translate(0px, 0px) rotate(var(--target-rotation)) scale(1.06);
    transition-delay: 0ms;
}

.showcase-folder-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    display: grid;
    width: clamp(138px, 14vw, 190px);
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
}

.showcase-folder-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.showcase-folder-button:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.showcase-folder-button:focus-visible {
    outline: 3px solid #4fc2f8;
    outline-offset: 10px;
    border-radius: 24px;
}

.showcase-folder-glow {
    position: absolute;
    inset: 18% 2% 10%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(79, 194, 248, 0.3);
    filter: blur(30px);
    opacity: 0.56;
    transform: scale(0.88);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-folder-button:hover .showcase-folder-glow,
.project-showcase-area.is-open .showcase-folder-glow {
    opacity: 0.95;
    transform: scale(1.18);
}

.showcase-folder-visual {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
    animation: showcase-folder-float 3.6s ease-in-out infinite;
}

.showcase-folder-label {
    margin-top: -5px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

@keyframes showcase-folder-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.project-detail-page {
    background:
        radial-gradient(circle at 85% 15%, rgba(4, 125, 172, 0.13), transparent 28%),
        var(--page-bg);
}

.about-story {
    display: grid;
    grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1.45fr) minmax(130px, 0.42fr);
    gap: clamp(34px, 6vw, 92px);
    width: min(1280px, 100%);
    margin: 28px auto 0;
    padding: clamp(90px, 11vw, 160px) clamp(10px, 3vw, 38px);
    align-items: start;
}

.about-story-content {
    max-width: 740px;
    margin: 0 auto;
}

.about-story-content h2 {
    margin: 0 0 clamp(28px, 4vw, 48px);
    font-size: clamp(2.6rem, 5.4vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.about-story-content p {
    max-width: 63ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.7;
}

.about-story-content p + p {
    margin-top: 18px;
}

.about-purpose {
    margin-top: clamp(36px, 5vw, 56px);
    padding-top: 24px;
    border-top: 1px solid rgba(7, 25, 32, 0.14);
}

.about-purpose-tabs {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(4, 125, 172, 0.2);
    border-radius: 999px;
    background: rgba(4, 125, 172, 0.08);
}

.about-purpose-tabs::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 10px) / 2);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    box-shadow: 0 9px 22px rgba(4, 125, 172, 0.28);
    transform: translateX(0);
    transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-purpose-tabs[data-active-tab="vision"]::before {
    transform: translateX(100%);
}

.about-purpose-tab {
    position: relative;
    z-index: 1;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(7, 25, 32, 0.62);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.35s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-purpose-tab:not(.is-active):hover {
    color: var(--accent-color-dark);
    transform: translateY(-1px);
}

.about-purpose-tab:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.about-purpose-tab.is-active {
    background: transparent;
    color: #ffffff;
}

.about-purpose-panels {
    position: relative;
    padding-top: 28px;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-purpose-panel {
    will-change: opacity, transform;
}

.about-purpose-panel[hidden] {
    display: none;
}

.about-purpose-panel strong {
    color: #071920;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .about-purpose-panels,
    .about-purpose-tabs::before,
    .about-purpose-tab,
    .about-purpose-panel {
        transition: none;
        animation: none;
    }
}

.about-story-cta {
    display: inline-flex;
    min-height: 54px;
    margin-top: 34px;
    padding: 0 21px;
    align-items: center;
    gap: 22px;
    border-radius: 999px;
    background: #071920;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(7, 25, 32, 0.18);
    transition:
        background-color 0.3s ease,
        box-shadow 0.35s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-story-cta:hover,
.about-story-cta:focus-visible {
    background: var(--accent-color);
    box-shadow: 0 20px 38px rgba(4, 125, 172, 0.25);
    outline: none;
    transform: translateY(-4px);
}

.about-story-rail {
    display: grid;
    gap: 22px;
    color: rgba(17, 17, 17, 0.55);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.about-story-rail--right {
    padding-top: clamp(62px, 8vw, 110px);
}

.about-story-rail--right span {
    text-align: right;
}

.about-story-rail figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    background: #dce8ec;
    box-shadow: 0 14px 34px rgba(7, 16, 21, 0.12);
}

.about-story-rail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.75) contrast(1.03);
    transition:
        filter 0.45s ease,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-story-rail:hover img {
    filter: saturate(1) contrast(1);
    transform: scale(1.05);
}

.awards-area {
    position: relative;
    width: 100vw;
    margin-top: 28px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(78px, 9vw, 132px) 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(78, 130, 232, 0.13), transparent 27%),
        radial-gradient(circle at 92% 84%, rgba(54, 163, 82, 0.1), transparent 27%),
        linear-gradient(145deg, #eef9fc 0%, #f8fdff 52%, #edf8fc 100%);
    isolation: isolate;
}

.awards-page .awards-area {
    margin-top: 0;
    padding-top: clamp(130px, 14vw, 190px);
}

.awards-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(4, 125, 172, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 125, 172, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 88%);
    mask-image: radial-gradient(circle at center, #000, transparent 88%);
    pointer-events: none;
}

.awards-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    gap: clamp(38px, 7vw, 100px);
    width: min(1280px, 100%);
    margin: 0 auto clamp(46px, 6vw, 78px);
    align-items: end;
}

.awards-heading > div > p {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.awards-heading h2 {
    max-width: 17ch;
    margin: 0;
    font-size: clamp(2.7rem, 5.4vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: #293f91;
}

.awards-heading > .awards-heading-copy > p {
    max-width: 63ch;
    margin: 0;
    color: #000000;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.7;
    text-transform: none;
}

.awards-visual-carousel {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(50px, 7vw, 90px);
    margin-left: calc(50% - 50vw);
    padding: 20px 0 36px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.awards-visual-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: awards-visual-marquee 42s linear infinite;
}

.awards-visual-carousel:hover .awards-visual-track {
    animation-play-state: paused;
}

.awards-visual-group {
    display: flex;
    flex: 0 0 auto;
    gap: 18px;
    padding-right: 18px;
    align-items: center;
}

.awards-visual-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(250px, 23vw, 340px);
    height: clamp(210px, 19vw, 280px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    background: #dce7eb;
    box-shadow: 0 20px 48px rgba(7, 16, 21, 0.13);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.awards-visual-card--wide {
    width: clamp(320px, 30vw, 450px);
}

.awards-visual-card--tall {
    width: clamp(220px, 19vw, 280px);
    height: clamp(240px, 22vw, 320px);
}

.awards-visual-card:nth-child(2),
.awards-visual-card:nth-child(5) {
    transform: translateY(14px);
}

.awards-visual-card:nth-child(3) {
    transform: translateY(-12px);
}

.awards-visual-card:hover {
    transform: translateY(-8px) scale(1.018);
}

.awards-visual-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.awards-visual-card:hover img {
    transform: scale(1.045);
}

.awards-visual-card::after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(180deg, transparent, rgba(2, 15, 20, 0.62));
    pointer-events: none;
}

.awards-visual-card figcaption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #10181c;
    font-size: 0.66rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

@keyframes awards-visual-marquee {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 760px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 74px 8px;
    }

    .about-story-content {
        grid-row: 1;
    }

    .about-story-content h2 {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .about-purpose-tabs {
        display: grid;
        width: 100%;
    }

    .about-purpose-tab {
        padding-inline: 14px;
    }

    .about-story-rail {
        display: none;
    }

    .awards-area {
        margin-top: 18px;
        padding: 70px 14px;
    }

    .awards-heading {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .awards-heading h2 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .awards-visual-carousel {
        padding-top: 8px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    }

    .awards-visual-group {
        gap: 12px;
        padding-right: 12px;
    }

    .awards-visual-card {
        width: 230px;
        height: 190px;
        border-radius: 16px;
    }

    .awards-visual-card--wide {
        width: 290px;
    }

    .awards-visual-card--tall {
        width: 205px;
        height: 220px;
    }

}

.blog-page {
    background: #ffffff;
}

.blog-page-main {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(52px, 7vw, 104px) 32px 100px;
}

.blog-page-heading {
    position: relative;
    min-height: 190px;
    margin-bottom: clamp(42px, 6vw, 80px);
    text-align: center;
}

.blog-page-eyebrow {
    margin: 0 0 14px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.blog-page-heading h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    font-weight: 450;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.blog-search-form {
    position: absolute;
    top: 0;
    right: 0;
    width: min(250px, 100%);
    text-align: left;
}

.blog-search-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.blog-search-control {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #9ba3a7;
}

.blog-search-input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 4px 6px 6px 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    outline: none;
}

.blog-search-control:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 2px 0 var(--accent-color);
}

.blog-search-control button {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.blog-search-control svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.blog-feed {
    display: grid;
    gap: clamp(70px, 9vw, 122px);
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
}

.blog-card-media {
    position: sticky;
    top: 120px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    background: var(--page-bg);
}

.blog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.035);
}

.blog-card-content {
    min-width: 0;
}

.blog-card-meta {
    display: flex;
    min-height: 42px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-card-meta time {
    font-size: 0.92rem;
    white-space: nowrap;
}

/* Share icons are inline SVG line drawings (no external icon library) {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.blog-card-title {
    max-width: 19ch;
    margin: 0 0 24px;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 450;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.blog-card-content > p {
    max-width: 62ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.62;
}

.blog-learn-more {
    position: relative;
    display: inline-flex;
    margin-top: 26px;
    padding: 6px 24px 7px 0;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-weight: 550;
    cursor: pointer;
}

.blog-learn-more::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: calc(100% - 24px);
    height: 2px;
    background: linear-gradient(90deg, #4e82e8, #36a352, #f6bd16, #e1473b);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-learn-more:hover::after,
.blog-learn-more:focus-visible::after {
    transform: scaleX(0.55);
}

.blog-learn-more:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 5px;
}

.blog-learn-more b {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 0;
    transition: transform 0.3s ease;
}

.blog-learn-more[aria-expanded="true"] b {
    transform: rotate(90deg);
}

/* Footer social icons (inline SVG line drawings, no external icon library) */
.footer-social {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(4, 125, 172, 0.22);
    border-radius: 50%;
    color: var(--text-primary);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social svg .icon-fill {
    fill: currentColor;
    stroke: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    outline: none;
    transform: translateY(-3px);
}

:root[data-theme="dark"] .footer-social a {
    border-color: rgba(119, 215, 255, 0.24);
}

:root[data-theme="dark"] .footer-social a:hover,
:root[data-theme="dark"] .footer-social a:focus-visible {
    border-color: #4fc2f8;
    background: #047dac;
}

/* Links to outside reference pages (e.g. Wikipedia) inside body text */
.external-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(4, 125, 172, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.external-link .icon {
    width: 0.85em;
    height: 0.85em;
    margin-left: 2px;
    vertical-align: -0.05em;
}

.external-link:hover,
.external-link:focus-visible {
    color: var(--accent-color);
    text-decoration-color: currentColor;
}

:root[data-theme="dark"] .external-link {
    text-decoration-color: rgba(119, 215, 255, 0.45);
}

:root[data-theme="dark"] .external-link:hover,
:root[data-theme="dark"] .external-link:focus-visible {
    color: #77d7ff;
}

/* Awards page: the 2022 timeline entry carries its own award photo */

/* Portrait award photos (e.g. the 2026 ICC award) stay a sensible size in the timeline */

/* Homepage awards section */
.home-awards {
    width: min(1320px, calc(100% - 56px));
    margin: clamp(64px, 9vw, 120px) auto;
}

.home-awards-heading {
    display: flex;
    margin-bottom: clamp(28px, 4vw, 46px);
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.home-awards-eyebrow {
    margin: 0 0 14px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-awards-heading h2 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

/* Pill with a gradient hairline border and the arrow in a filled circle */
.home-awards-link {
    display: inline-flex;
    min-height: 54px;
    padding: 6px 6px 6px 24px;
    align-items: center;
    gap: 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(var(--page-bg), var(--page-bg)) padding-box,
        linear-gradient(135deg, rgba(79, 194, 248, 0.85), rgba(4, 125, 172, 0.15) 50%, rgba(79, 194, 248, 0.85)) border-box;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition:
        box-shadow 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-awards-link-circle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #047dac, #4fc2f8);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(4, 125, 172, 0.35);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.home-awards-link-circle .icon {
    width: 20px;
    height: 20px;
    vertical-align: 0;
}

.home-awards-link:hover,
.home-awards-link:focus-visible {
    box-shadow: 0 14px 36px rgba(4, 125, 172, 0.22);
    outline: none;
    transform: translateY(-2px);
}

.home-awards-link:hover .home-awards-link-circle,
.home-awards-link:focus-visible .home-awards-link-circle {
    box-shadow: 0 10px 24px rgba(4, 125, 172, 0.45);
    transform: scale(1.08);
}

.home-awards-link:hover .home-awards-link-circle .icon,
.home-awards-link:focus-visible .home-awards-link-circle .icon {
    transform: translate(2px, -2px) rotate(0deg);
}

.home-awards-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(79, 194, 248, 0.3), 0 14px 36px rgba(4, 125, 172, 0.22);
}

.home-award {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.65);
    transition: border-color 0.3s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease;
}

.home-award:hover {
    border-color: rgba(4, 125, 172, 0.4);
    box-shadow: 0 26px 56px rgba(7, 16, 21, 0.1);
    transform: translateY(-5px);
}

.home-award-media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9f1f4;
}

.home-award-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-award:hover .home-award-media img {
    transform: scale(1.05);
}

.home-award-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #047dac, #4fc2f8);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(4, 125, 172, 0.35);
}

.home-award-body {
    display: flex;
    padding: clamp(20px, 2.4vw, 28px);
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.home-award-body h3 {
    margin: 0;
    font-size: clamp(1.14rem, 1.5vw, 1.32rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.home-award-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.home-award-body strong {
    color: var(--text-primary);
}

:root[data-theme="dark"] .home-award {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .home-award:hover {
    border-color: rgba(119, 215, 255, 0.35);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .home-award-media {
    background: #101c22;
}

:root[data-theme="dark"] .home-awards-link {
    background:
        linear-gradient(var(--page-bg), var(--page-bg)) padding-box,
        linear-gradient(135deg, rgba(119, 215, 255, 0.75), rgba(79, 194, 248, 0.12) 50%, rgba(119, 215, 255, 0.75)) border-box;
}

:root[data-theme="dark"] .home-awards-link:hover,
:root[data-theme="dark"] .home-awards-link:focus-visible {
    box-shadow: 0 14px 40px rgba(79, 194, 248, 0.22);
}

@media (max-width: 640px) {
    .home-awards {
        width: calc(100% - 32px);
    }
}

/* Homepage awards as an auto-sliding row (uses the brand kit slider script: 2s autoplay).
   Flat slides: photo with rounded corners, plain text below with a gap, no card behind. */
.home-awards-slider .bk-slider-track {
    gap: clamp(20px, 2.8vw, 40px);
    align-items: start;
    border-radius: 0;
}

.home-awards-slider .bk-slide {
    flex: 0 0 clamp(280px, 40%, 520px);
}

.home-awards-slider .home-award,
.home-awards-slider .home-award:hover,
:root[data-theme="dark"] .home-awards-slider .home-award,
:root[data-theme="dark"] .home-awards-slider .home-award:hover {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
}

.home-awards-slider .home-award-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: clamp(18px, 2.2vw, 26px);
}

.home-awards-slider .bk-slide .home-award-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
}

.home-awards-slider .home-award-body {
    margin-top: 22px;
    padding: 0;
    gap: 8px;
}

.home-awards-slider .home-award-body h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    font-weight: 500;
}

@media (max-width: 640px) {
    .home-awards-slider .bk-slide {
        flex-basis: 84%;
    }
}

/*
 * "Floating water" hover for filled buttons: one large rounded shape rises from below on hover,
 * turning slightly as it fills so its edge reads as a wave, then settles. No looping animation.
 * It sits behind the label (isolation + z-index -1).
 */
.svc-button,
.hero-primary-button,
.contact-banner-button,
.footer-cta-primary,
.contact-now-button,
.contact-map-link,
.article-cta a {
    --wave: rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.svc-button::before,
.hero-primary-button::before,
.contact-banner-button::before,
.footer-cta-primary::before,
.contact-now-button::before,
.contact-map-link::before,
.article-cta a::before {
    position: absolute;
    top: 115%;
    left: 50%;
    z-index: -1;
    width: max(260%, 280px);
    aspect-ratio: 1;
    border-radius: 42%;
    background: var(--wave);
    content: "";
    pointer-events: none;
    transform: translateX(-50%) rotate(0deg);
    transition:
        top 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-button:hover::before,
.hero-primary-button:hover::before,
.contact-banner-button:hover::before,
.footer-cta-primary:hover::before,
.contact-now-button:hover::before,
.contact-map-link:hover::before,
.article-cta a:hover::before,
.svc-button:focus-visible::before,
.hero-primary-button:focus-visible::before,
.contact-banner-button:focus-visible::before,
.footer-cta-primary:focus-visible::before,
.contact-now-button:focus-visible::before,
.contact-map-link:focus-visible::before,
.article-cta a:focus-visible::before {
    top: 30%;
    transform: translateX(-50%) rotate(40deg);
}

/* White buttons (dark CTA bands) and the footer button, which turns light on hover */
.svc-cta .svc-button,
.article-cta a,
.footer-cta-primary {
    --wave: rgba(79, 194, 248, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .svc-button::before,
    .hero-primary-button::before,
    .contact-banner-button::before,
    .footer-cta-primary::before,
    .contact-now-button::before,
    .contact-map-link::before,
    .article-cta a::before {
        transition: top 0.3s ease;
    }

    .svc-button:hover::before,
    .hero-primary-button:hover::before,
    .contact-banner-button:hover::before,
    .footer-cta-primary:hover::before,
    .contact-now-button:hover::before,
    .contact-map-link:hover::before,
    .article-cta a:hover::before {
        transform: translateX(-50%);
    }
}
/* ---------- Client stories ---------- */
.story-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 960px;
    margin: clamp(30px, 4vw, 48px) 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--border-color);
    list-style: none;
}

.story-facts li {
    padding: 18px 20px;
    background: var(--page-bg);
}

.story-facts span {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-facts strong {
    font-size: 0.98rem;
    font-weight: 500;
}

.story-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(34px, 5vw, 60px) 0 0;
    padding: 0;
    list-style: none;
}

.story-logos li {
    display: grid;
    aspect-ratio: 16 / 9;
    padding: 12%;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: #ffffff;
}

.story-logos img {
    width: 100%;
    height: auto;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.story-stats li {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.story-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.story-stats span {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
    margin-top: clamp(36px, 5vw, 56px);
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.story-card-media {
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: #ffffff;
}

.story-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card-media--logo img {
    width: 62%;
    height: auto;
    object-fit: contain;
}

.story-card:hover .story-card-media img {
    transform: scale(1.05);
}

.story-card span {
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-card h2 {
    margin: 0;
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.story-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Podcast placeholder */
.podcast-episodes {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin: clamp(34px, 5vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.podcast-episodes li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.podcast-episodes b {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 16px;
    background: rgba(4, 125, 172, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

.podcast-episodes strong {
    display: block;
    font-weight: 500;
}

.podcast-episodes small {
    color: var(--text-secondary);
}

.podcast-episodes em {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(246, 189, 22, 0.16);
    color: #8a6400;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 600;
}

:root[data-theme="dark"] .story-logos li,
:root[data-theme="dark"] .story-card-media--logo {
    background: #ffffff;
}

:root[data-theme="dark"] .podcast-episodes em {
    color: #f6d36b;
}

@media (max-width: 960px) {
    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stories-grid,
    .story-logos {
        grid-template-columns: 1fr;
    }

    .podcast-episodes li {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .podcast-episodes em {
        grid-column: 2;
        justify-self: start;
    }
}

/* ---------- District pages ---------- */
.district-towns {
    margin-top: 28px;
}

.district-towns p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.district-towns ul,
.district-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.district-towns li {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.district-links a {
    display: inline-flex;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.district-links a:hover,
.district-links a:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    outline: none;
}

.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.district-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.district-card:hover,
.district-card:focus-visible {
    border-color: var(--accent-color);
    outline: none;
    transform: translateY(-4px);
}

.district-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.district-card h3 small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.district-card p {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.district-card .services-card-more {
    color: var(--accent-color);
    font-size: 0.86rem;
}

.footer-areas {
    padding: 22px 10px 0;
    border-top: 1px solid var(--border-color);
}

.footer-areas h3 {
    margin: 0 0 12px;
    color: rgba(17, 17, 17, 0.52);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-areas div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-areas a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: color 0.25s ease;
}

.footer-areas a:hover,
.footer-areas a:focus-visible {
    color: var(--accent-color);
    outline: none;
}

:root[data-theme="dark"] .footer-areas h3 {
    color: rgba(255, 255, 255, 0.52);
}

/* ---------- Logo guidelines page ---------- */
.lg-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.lg-hero {
    max-width: 820px;
}

.lg-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

/* Download arrow: the forward arrow turned to point down */
.lg-icon-down {
    transform: rotate(90deg);
}

a:hover .lg-icon-down,
a:focus-visible .lg-icon-down {
    transform: rotate(90deg) translateX(3px);
}

.lg-section {
    margin-top: clamp(64px, 9vw, 110px);
}

.lg-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.lg-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.lg-mode-switch {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.lg-mode-switch button {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lg-mode-switch button.is-active {
    background: var(--accent-color);
    color: #ffffff;
}

.lg-preview {
    position: relative;
    display: grid;
    min-height: clamp(220px, 32vw, 380px);
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: #ffffff;
    transition: background-color 0.6s ease;
}

.lg-preview[data-mode="dark"] {
    background: #0b151a;
}

.lg-preview img {
    grid-area: 1 / 1;
    width: min(60%, 460px);
    height: auto;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-preview .lg-preview-dark,
.lg-preview[data-mode="dark"] .lg-preview-light {
    opacity: 0;
    transform: scale(0.96);
}

.lg-preview[data-mode="dark"] .lg-preview-dark {
    opacity: 1;
    transform: none;
}

.lg-note {
    margin-top: 16px;
}

.lg-versions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-versions h3 {
    margin: 16px 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.lg-versions p {
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.lg-swatch {
    display: grid;
    aspect-ratio: 4 / 3;
    padding: 14%;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 22px;
}

.lg-swatch img {
    width: 100%;
    height: auto;
}

.lg-swatch--light { background: #ffffff; }
.lg-swatch--dark { background: #0b151a; }
.lg-swatch--brand { background: #047dac; }
.lg-swatch--grey { background: #eef3f5; }

.lg-download {
    display: inline-flex;
    min-height: 38px;
    padding: 0 16px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(4, 125, 172, 0.3);
    border-radius: 999px;
    color: var(--accent-color);
    font-size: 0.86rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lg-download::before {
    content: "↓";
}

.lg-download:hover,
.lg-download:focus-visible {
    background: var(--accent-color);
    color: #ffffff;
    outline: none;
}

.lg-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 72px);
}

.lg-clearspace {
    display: grid;
    margin-top: 18px;
    padding: 9%;
    place-items: center;
    border: 1px dashed rgba(4, 125, 172, 0.5);
    border-radius: 18px;
    background:
        repeating-linear-gradient(45deg, rgba(4, 125, 172, 0.06) 0 8px, transparent 8px 16px);
}

.lg-clearspace img {
    width: 100%;
    max-width: 380px;
    height: auto;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ffffff;
}

.lg-sizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.lg-sizes li {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.lg-sizes strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.lg-sizes span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lg-colours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-colour {
    display: grid;
    width: 100%;
    padding: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.lg-colour:hover,
.lg-colour:focus-visible {
    border-color: var(--accent-color);
    outline: none;
    transform: translateY(-3px);
}

.lg-colour-chip {
    display: block;
    height: 90px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--c);
}

.lg-colour strong,
.lg-colour > span:last-child {
    padding: 0 16px;
}

.lg-colour strong {
    font-weight: 600;
}

.lg-colour > span:last-child {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.lg-colours--compact {
    margin-top: 22px;
}

.lg-colours--compact .lg-colour-chip {
    height: 56px;
}

.lg-copied {
    min-height: 1.5em;
    margin-top: 12px;
    color: var(--accent-color) !important;
    font-weight: 600;
}

.lg-type-sample {
    margin-top: 10px;
    color: var(--text-primary) !important;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.lg-donts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-dont-box {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    padding: 14%;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
}

.lg-dont-box--dark {
    background: #0b151a;
}

.lg-dont-box img {
    width: 100%;
    height: auto;
}

/* Red cross over each "don't" example */
.lg-dont-box::after {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #e1473b;
    color: #ffffff;
    content: "✕";
    font-size: 0.8rem;
    font-weight: 700;
}

.lg-donts p {
    margin: 10px 0 0;
    font-size: 0.88rem;
    text-align: center;
}

:root[data-theme="dark"] .lg-download {
    border-color: rgba(119, 215, 255, 0.3);
    color: #77d7ff;
}

:root[data-theme="dark"] .lg-download:hover,
:root[data-theme="dark"] .lg-download:focus-visible {
    background: #047dac;
    color: #ffffff;
}

@media (max-width: 960px) {
    .lg-versions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg-donts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lg-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lg-donts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Team page ---------- */
.team-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.team-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #e9f1f4;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover .team-photo img {
    transform: scale(1.04);
}

/* Simple team row: three photos, name and designation only */
.team-title {
    margin: 0 0 clamp(32px, 5vw, 56px);
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    text-align: center;
}

.team-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-member {
    text-align: center;
}

.team-member h2 {
    margin: 20px 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.team-member p {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

:root[data-theme="dark"] .team-member p {
    color: #77d7ff;
}

/* Journey partners: a compact list of names, roles and where they are now */
.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.partners-list li {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.partners-list strong {
    font-size: 0.98rem;
    font-weight: 500;
}

.partners-list span {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.45;
}

.partners-list .partner-now {
    color: var(--accent-color);
}

:root[data-theme="dark"] .partners-list .partner-now {
    color: #77d7ff;
}

/* Second row: the agency team, four across */
.team-section {
    margin-top: clamp(64px, 9vw, 110px);
}

.team-section-title {
    margin: 0 0 clamp(28px, 4vw, 44px);
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    text-align: center;
}

.team-row--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.team-member h3 {
    margin: 18px 0 6px;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* 360 Digi Academy team: three across, so nine members make three even rows */
/* Five across; the last row of four is centred */
.team-row--grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(28px, 3.4vw, 44px) clamp(14px, 1.8vw, 24px);
}

.team-row--grid .team-member {
    flex: 0 0 calc((100% - 4 * clamp(14px, 1.8vw, 24px)) / 5);
}

.team-row--grid .team-member h3 {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.team-row--grid .team-member p {
    font-size: 0.74rem;
}

.team-section-intro {
    max-width: 52ch;
    margin: -18px auto clamp(28px, 4vw, 44px);
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 960px) {
    .team-row--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-row--grid .team-member {
        flex-basis: calc((100% - 2 * clamp(14px, 1.8vw, 24px)) / 3);
    }
}

@media (max-width: 640px) {
    .team-row--grid .team-member {
        flex-basis: calc((100% - clamp(14px, 1.8vw, 24px)) / 2);
    }
}

@media (max-width: 760px) {
    .team-row {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }
}

:root[data-theme="dark"] .team-photo {
    background: #101c22;
}

@media (max-width: 640px) {
    .team-main {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* ---------- ZainCo Story page: scrolling timeline ---------- */
.zs-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.zs-hero {
    position: relative;
    padding-bottom: clamp(60px, 9vw, 120px);
    text-align: center;
}

.zs-hero h1 {
    display: flex;
    margin: 10px 0 24px;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
}

.zs-hero-since {
    color: var(--text-secondary);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.zs-hero-year {
    background: linear-gradient(180deg, var(--accent-color), #4fc2f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(6rem, 22vw, 17rem);
    font-weight: 600;
    letter-spacing: -0.07em;
}

.zs-hero-lead {
    max-width: 58ch;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.7;
}

.zs-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: clamp(36px, 5vw, 56px) auto 0;
    padding: 0;
    list-style: none;
}

.zs-hero-stats li {
    padding: 18px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.zs-hero-stats strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.zs-hero-stats span {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.zs-scroll-cue {
    display: inline-block;
    margin-top: 36px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.zs-scroll-cue::after {
    display: block;
    width: 1px;
    height: 46px;
    margin: 12px auto 0;
    background: linear-gradient(var(--accent-color), transparent);
    content: "";
    animation: zs-cue 1.8s ease-in-out infinite;
}

@keyframes zs-cue {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Timeline: a centre line that fills as you scroll (--zs-progress set by JS) */
.zs-timeline {
    position: relative;
    display: grid;
    gap: clamp(70px, 10vw, 140px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.zs-timeline::before,
.zs-timeline::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    border-radius: 2px;
    content: "";
}

.zs-timeline::before {
    background: var(--border-color);
}

.zs-timeline::after {
    background: linear-gradient(180deg, #4fc2f8, var(--accent-color));
    box-shadow: 0 0 14px rgba(79, 194, 248, 0.5);
    transform: scaleY(var(--zs-progress, 0));
    transform-origin: top;
}

.zs-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
}

/* Dot on the centre line */
.zs-chapter::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: 3px solid var(--page-bg);
    border-radius: 50%;
    background: var(--border-color);
    box-shadow: 0 0 0 1px var(--border-color);
    content: "";
    transform: translate(-50%, -50%);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.zs-chapter.is-visible::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 6px rgba(79, 194, 248, 0.2);
}

/* Alternate sides */
.zs-chapter:nth-child(even) .zs-chapter-text {
    order: 2;
}

.zs-year {
    display: block;
    margin-bottom: 12px;
    color: transparent;
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
    -webkit-text-stroke: 1.5px var(--accent-color);
}

.zs-chapter-text h2 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.zs-chapter-text p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.75;
}

.zs-chapter-text strong {
    color: var(--text-primary);
}

.zs-link {
    display: inline-flex;
    margin-top: 6px;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
}

/* Media variants */
.zs-media {
    position: relative;
    margin: 0;
}

.zs-media figcaption {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    text-align: center;
}

.zs-media--logo,
.zs-media--word {
    display: grid;
    padding: clamp(36px, 5vw, 64px) 24px 24px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 40%, rgba(79, 194, 248, 0.14), transparent 65%),
        rgba(255, 255, 255, 0.5);
}

.zs-media--logo img {
    width: min(78%, 360px);
    height: auto;
}

.zs-arabic {
    font-family: "Tajawal", "Inter", sans-serif;
    background: linear-gradient(180deg, var(--accent-color), #4fc2f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 600;
    line-height: 1.1;
}

.zs-word-meaning {
    color: var(--text-secondary);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.zs-media--collage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    align-items: end;
}

.zs-media--collage img,
.zs-media--stack img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(7, 16, 21, 0.14);
}

.zs-collage-main {
    aspect-ratio: 4 / 5;
}

.zs-collage-side {
    aspect-ratio: 3 / 4;
    transform: translateY(-30px);
}

.zs-media--collage figcaption,
.zs-media--stack figcaption {
    grid-column: 1 / -1;
}

.zs-media--stack {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 14px;
    align-items: center;
}

.zs-media--stack img:first-child {
    aspect-ratio: 9 / 14;
    object-position: center 62%;
}

.zs-media--stack img:nth-child(2) {
    aspect-ratio: 4 / 3;
}

.zs-media--crm .crm-illustration {
    border-radius: 28px;
}

/* Founder portrait with a logo badge on the corner */
.zs-media--portrait {
    max-width: 440px;
    margin-inline: auto;
}

.zs-portrait {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(7, 16, 21, 0.16);
}

.zs-badge {
    position: absolute;
    right: -14px;
    bottom: 44px;
    display: grid;
    width: 128px;
    padding: 14px 16px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(7, 16, 21, 0.16);
}

.zs-badge img {
    width: 100%;
    height: auto;
}

/* Team: two portraits side by side with name tags */
.zs-media--team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.zs-team-member {
    position: relative;
}

.zs-team-member:nth-child(2) {
    margin-top: 48px;
}

.zs-team-member img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(7, 16, 21, 0.14);
}

.zs-team-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(5, 15, 20, 0.7);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
}

.zs-team-tag strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.zs-badge--team {
    right: auto;
    bottom: auto;
    top: -18px;
    left: 50%;
    width: 112px;
    transform: translateX(-50%);
}

.zs-media--team figcaption {
    grid-column: 1 / -1;
}

/* Chapters reveal as they reach the screen */
.zs-timeline.is-ready .zs-chapter-text,
.zs-timeline.is-ready .zs-media {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.zs-timeline.is-ready .zs-media {
    transition-delay: 0.12s;
}

.zs-timeline.is-ready .zs-chapter.is-visible .zs-chapter-text,
.zs-timeline.is-ready .zs-chapter.is-visible .zs-media {
    opacity: 1;
    transform: none;
}

:root[data-theme="dark"] .zs-media--logo,
:root[data-theme="dark"] .zs-media--word {
    background:
        radial-gradient(circle at 50% 40%, rgba(4, 125, 172, 0.28), transparent 65%),
        rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .zs-year {
    -webkit-text-stroke-color: #4fc2f8;
}

:root[data-theme="dark"] .zs-link {
    color: #77d7ff;
}

@media (max-width: 860px) {
    .zs-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Single column with the line down the left */
    .zs-timeline::before,
    .zs-timeline::after {
        left: 8px;
    }

    .zs-chapter {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 40px;
    }

    .zs-chapter::before {
        top: 22px;
        left: 8px;
    }

    .zs-chapter:nth-child(even) .zs-chapter-text {
        order: 0;
    }

    .zs-badge {
        right: 10px;
        width: 108px;
    }
}

@media (max-width: 640px) {
    .zs-main {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zs-scroll-cue::after {
        animation: none;
    }

    .zs-timeline.is-ready .zs-chapter-text,
    .zs-timeline.is-ready .zs-media {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Awards page (case study) ---------- */
.awards-main {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.awards-hero {
    max-width: 900px;
}

.awards-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.awards-page-slider {
    width: 100%;
    margin: clamp(44px, 6vw, 72px) 0 0;
}

.awards-case {
    margin-top: clamp(64px, 9vw, 120px);
}

.awards-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 clamp(40px, 6vw, 64px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: var(--border-color);
    list-style: none;
}

.awards-stats li {
    display: flex;
    padding: clamp(22px, 3vw, 34px);
    flex-direction: column;
    gap: 8px;
    background: var(--page-bg);
}

.awards-stat-label {
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.awards-stats strong {
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.awards-stats sup {
    margin-left: 2px;
    color: var(--accent-color);
    font-size: 0.5em;
    vertical-align: super;
}

.awards-stats li > span:last-child {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.awards-targets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
    padding: 0;
    counter-reset: award-target;
    list-style: none;
}

.awards-targets li {
    position: relative;
    padding: 64px 4px 0;
    border-top: 2px solid var(--accent-color);
    counter-increment: award-target;
}

.awards-targets li::before {
    position: absolute;
    top: 18px;
    left: 4px;
    color: var(--accent-color);
    content: "Target " counter(award-target, decimal-leading-zero);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.awards-targets h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 550;
    letter-spacing: -0.02em;
}

.awards-targets p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.awards-trust {
    max-width: 820px;
    margin: clamp(64px, 9vw, 120px) auto 0;
    text-align: center;
}

.awards-trust h2 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.awards-trust p:last-child {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.04rem;
    line-height: 1.75;
}

@media (max-width: 960px) {
    .awards-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .awards-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .awards-stats {
        grid-template-columns: 1fr;
    }
}

/* Contact page */
.contact-main {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.contact-hero {
    max-width: 820px;
}

.contact-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.contact-lead {
    max-width: 56ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 3vw, 40px);
    margin-top: clamp(40px, 6vw, 72px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 18px 40px rgba(7, 16, 21, 0.08);
    outline: none;
    transform: translateY(-3px);
}

.contact-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: rgba(4, 125, 172, 0.1);
    color: var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-icon svg:not([fill="none"]) {
    fill: currentColor;
}

.contact-card:hover .contact-card-icon,
.contact-card:focus-visible .contact-card-icon {
    background: var(--accent-color);
    color: #ffffff;
}

.contact-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-card strong {
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.4;
}

.contact-social {
    display: flex;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-social a:hover,
.contact-social a:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    outline: none;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: clamp(26px, 3.4vw, 42px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(7, 16, 21, 0.07);
}

.contact-form h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.contact-form-note {
    margin: -6px 0 6px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label > span {
    font-size: 0.86rem;
    font-weight: 600;
}

.contact-form label em {
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--page-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(4, 125, 172, 0.14);
    outline: none;
}

.contact-form-actions {
    display: flex;
    margin-top: 6px;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-form .svc-button {
    border: 0;
    cursor: pointer;
}

.contact-form-email {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form-email:hover,
.contact-form-email:focus-visible {
    color: var(--accent-color);
}

/* Honeypot field: off-screen for people, still present for bots that fill every input */
.contact-form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-status {
    margin: 4px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.5;
}

.contact-form-status[data-type="success"] {
    background: rgba(54, 163, 82, 0.12);
    color: #1e7a3a;
}

.contact-form-status[data-type="error"] {
    background: rgba(225, 71, 59, 0.1);
    color: #b3261e;
}

:root[data-theme="dark"] .contact-form-status[data-type="success"] {
    background: rgba(54, 163, 82, 0.18);
    color: #7fdc9a;
}

:root[data-theme="dark"] .contact-form-status[data-type="error"] {
    background: rgba(225, 71, 59, 0.16);
    color: #ff9b92;
}

.contact-form .svc-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

/* Custom animated dropdown (built by initializeCustomSelects; the real <select> stays hidden) */
.cselect-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
    pointer-events: none;
}

.cselect {
    position: relative;
}

.cselect-button {
    display: flex;
    width: 100%;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--page-bg);
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.98rem;
    text-align: left;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cselect-button:focus-visible,
.cselect.is-open .cselect-button {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(4, 125, 172, 0.14);
    outline: none;
}

.cselect-arrow {
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.6;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), margin 0.4s ease;
}

.cselect.is-open .cselect-arrow {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.cselect-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 300px;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(7, 16, 21, 0.16);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0 round 18px);
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.4s;
}

.cselect.is-open .cselect-list {
    opacity: 1;
    visibility: visible;
    transform: none;
    clip-path: inset(0 0 0 0 round 18px);
    transition:
        opacity 0.25s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s;
}

.cselect-list:focus {
    outline: none;
}

.cselect-option {
    position: relative;
    padding: 11px 14px 11px 38px;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* Options fade in one after another when the list opens */
.cselect.is-open .cselect-option {
    opacity: 1;
    transform: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.35s ease calc(var(--i, 0) * 22ms + 60ms),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 22ms + 60ms);
}

.cselect-option.is-active {
    background: rgba(4, 125, 172, 0.09);
    color: var(--accent-color);
}

/* Check mark beside the chosen option */
.cselect-option[aria-selected="true"]::before {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 12px;
    height: 7px;
    border-bottom: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    content: "";
    transform: translateY(-70%) rotate(-45deg);
}

.cselect-option[aria-selected="true"] {
    font-weight: 600;
}

:root[data-theme="dark"] .cselect-list {
    border-color: #2a3b43;
    background: #111c21;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .cselect-option.is-active {
    background: rgba(79, 194, 248, 0.12);
    color: #77d7ff;
}

:root[data-theme="dark"] .cselect-option[aria-selected="true"]::before {
    border-color: #77d7ff;
}

@media (prefers-reduced-motion: reduce) {
    .cselect-list,
    .cselect.is-open .cselect-list,
    .cselect-option,
    .cselect.is-open .cselect-option {
        transform: none;
        transition: opacity 0.15s ease, visibility 0s;
    }
}

.contact-map {
    position: relative;
    margin-top: clamp(48px, 7vw, 88px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: clamp(22px, 3vw, 34px);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 500px);
    border: 0;
}

.contact-map-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: 0 12px 28px rgba(4, 125, 172, 0.35);
}

:root[data-theme="dark"] .contact-card {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .contact-card-icon {
    background: rgba(79, 194, 248, 0.12);
    color: #77d7ff;
}

:root[data-theme="dark"] .contact-form {
    background: linear-gradient(160deg, #13212a 0%, #0d181e 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .contact-map iframe {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* Blog cards that link to a full article page */
a.blog-read-more {
    color: var(--text-primary);
    text-decoration: none;
}

a.blog-card-media {
    display: block;
}

/* Full article pages (e.g. the-best-personal-branding-consultancy-in-kerala.html) */
.article-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 72px) 28px clamp(70px, 9vw, 120px);
}

.article-header {
    max-width: 860px;
}

.article-meta {
    display: flex;
    margin: 0 0 22px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-category {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(4, 125, 172, 0.1);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 0 0 24px;
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.article-lead {
    max-width: 62ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1.06rem, 1.4vw, 1.2rem);
    line-height: 1.7;
}

.article-hero {
    margin: clamp(34px, 5vw, 60px) 0 0;
}

.article-hero img,
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(18px, 2.4vw, 30px);
}

.article-figure {
    margin: clamp(30px, 4vw, 48px) 0;
}

.article-figure figcaption {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    text-align: center;
}

.article-body {
    max-width: 760px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    font-size: clamp(1.02rem, 1.25vw, 1.12rem);
    line-height: 1.8;
}

.article-body h2 {
    margin: clamp(38px, 5vw, 56px) 0 16px;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.article-body p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 1.3em;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.article-body li::marker {
    color: var(--accent-color);
}

.article-body strong {
    color: var(--text-primary);
}

.article-body a {
    color: var(--accent-color);
    font-weight: 550;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-note {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 16px 16px 0;
    background: rgba(4, 125, 172, 0.07);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-cta {
    display: flex;
    margin: clamp(48px, 7vw, 80px) auto 0;
    max-width: 760px;
    padding: clamp(28px, 4vw, 44px);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 28px;
    background: linear-gradient(135deg, #062c3d 0%, #047dac 100%);
    color: #ffffff;
}

.article-cta h2 {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-cta a {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #062c3d;
    font-weight: 650;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-cta a:hover,
.article-cta a:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.article-related {
    max-width: 1180px;
    margin: clamp(64px, 9vw, 110px) auto 0;
}

.article-related h2 {
    margin: 0 0 26px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}

.article-related-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-related-card:hover,
.article-related-card:focus-visible {
    border-color: var(--accent-color);
    outline: none;
    transform: translateY(-3px);
}

.article-related-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 430;
    object-fit: cover;
    border-radius: 14px;
}

.article-related-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-related-card strong {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.3;
}

:root[data-theme="dark"] .article-category {
    background: rgba(79, 194, 248, 0.12);
    color: #77d7ff;
}

:root[data-theme="dark"] .article-body a {
    color: #4fc2f8;
}

:root[data-theme="dark"] .article-note {
    border-left-color: #4fc2f8;
    background: rgba(79, 194, 248, 0.08);
}

@media (max-width: 760px) {
    .article-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-related-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}

.blog-empty-state {
    margin: 40px auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.nav-item.nav-link-active .nav-button {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .blog-page-heading {
        min-height: 230px;
    }

    .blog-search-form {
        top: auto;
        right: 50%;
        bottom: 0;
        transform: translateX(50%);
    }

    .blog-card {
        grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
    }

    .blog-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .blog-page-main {
        padding: 46px 16px 70px;
    }

    .blog-page-heading {
        min-height: 210px;
        margin-bottom: 50px;
    }

    .blog-page-heading h1 {
        font-size: clamp(3.1rem, 17vw, 4.8rem);
    }

    .blog-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-media {
        position: relative;
        top: auto;
        border-radius: 16px;
    }

    .blog-card-meta {
        min-height: 0;
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
    }

    .blog-card-title {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }
}

.project-detail-main {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: clamp(42px, 6vw, 84px) 28px 72px;
}

.project-detail-hero {
    color: var(--text-primary);
}

/* Round arrow-only back button. The link text stays in the HTML (font-size: 0) so screen
   readers and search engines still get "Back to projects"; only the arrow is drawn. */
.project-back-link {
    position: relative;
    display: inline-grid;
    width: 54px;
    height: 54px;
    margin-bottom: clamp(34px, 5vw, 60px);
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(4, 125, 172, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-color);
    font-size: 0;
    box-shadow: 0 10px 26px rgba(7, 16, 21, 0.08);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Chevron icon, absolutely centred so the hidden link text can't push it off-centre.
   The chevron's visual weight sits on its left, so it is nudged 1px right to look centred. */
.project-back-link::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translate(calc(-50% + 1px), -50%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-back-link:hover,
.project-back-link:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(4, 125, 172, 0.32);
    outline: none;
    transform: translateY(-2px);
}

.project-back-link:hover::before,
.project-back-link:focus-visible::before {
    transform: translate(calc(-50% - 2px), -50%);
}

.project-back-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(79, 194, 248, 0.35), 0 14px 32px rgba(4, 125, 172, 0.32);
}

.project-back-link:active {
    transform: scale(0.95);
}

:root[data-theme="dark"] .project-back-link {
    border-color: rgba(119, 215, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
    color: #77d7ff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .project-back-link:hover,
:root[data-theme="dark"] .project-back-link:focus-visible {
    border-color: #4fc2f8;
    background: #047dac;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(4, 125, 172, 0.45);
}

.project-detail-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: clamp(30px, 4vw, 52px);
}

.project-detail-kicker {
    margin: 0 0 14px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-detail-title {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.project-detail-count {
    margin: 0;
    color: rgba(17, 17, 17, 0.48);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.project-detail-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(4, 125, 172, 0.16);
    border-radius: clamp(18px, 2.6vw, 34px);
    background: #071920;
    box-shadow: 0 30px 75px rgba(7, 16, 21, 0.2);
}

.project-detail-media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
}

.project-detail-description {
    max-width: 68ch;
    margin: 0 0 clamp(24px, 3vw, 36px);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-detail-gallery {
    display: grid;
    gap: clamp(16px, 2vw, 28px);
}

/* Square and portrait work (social posts, menus) at a natural size instead of full width. */
.project-detail-gallery .project-detail-media.is-portrait {
    width: min(100%, 900px);
    justify-self: center;
}

/* Generated brand kit pages: one section per service. */
.brand-kit-service {
    margin-top: clamp(48px, 7vw, 96px);
}

.brand-kit-service-heading {
    display: flex;
    margin-bottom: clamp(18px, 2.4vw, 28px);
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-kit-service-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.brand-kit-service-heading a,
.project-related-links a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(4, 125, 172, 0.24);
    border-radius: 999px;
    color: var(--accent-color);
    font-size: 0.88rem;
    font-weight: 650;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-kit-service-heading a:hover,
.brand-kit-service-heading a:focus-visible,
.project-related-links a:hover,
.project-related-links a:focus-visible {
    border-color: var(--accent-color);
    background: rgba(4, 125, 172, 0.08);
    outline: none;
    transform: translateY(-2px);
}

/* Brand kit page hero: name + service links on the left, logo cover on the right */
.bk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-bottom: clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--border-color);
}

.bk-hero.is-text-only {
    grid-template-columns: 1fr;
}

.bk-hero .project-detail-kicker {
    margin: 0 0 14px;
}

.bk-hero-title {
    margin: 0;
    font-size: clamp(3rem, 7.4vw, 6.6rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.bk-hero-description {
    max-width: 52ch;
    margin: 26px 0 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}

.bk-hero-services {
    display: flex;
    margin-top: clamp(28px, 3.4vw, 40px);
    flex-wrap: wrap;
    gap: 10px;
}

.bk-hero-services a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    border: 1px solid rgba(4, 125, 172, 0.26);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.bk-hero-services a:hover,
.bk-hero-services a:focus-visible {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

/* Cover image on its own: natural shape, no panel behind it */
.bk-hero-cover {
    margin: 0;
}

.bk-hero-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(20px, 2.6vw, 32px);
    box-shadow: 0 30px 70px rgba(7, 16, 21, 0.16);
}

.bk-brand-gallery {
    margin-top: clamp(40px, 6vw, 72px);
}

/* Room for the fixed header when a service link jumps to its slider */
.brand-kit-service {
    scroll-margin-top: calc(var(--fixed-header-offset, 90px) + 24px);
}

:root[data-theme="dark"] .bk-hero-services a {
    border-color: rgba(119, 215, 255, 0.24);
}

:root[data-theme="dark"] .bk-hero-cover img {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

@media (max-width: 860px) {
    .bk-hero {
        grid-template-columns: 1fr;
    }

    .bk-hero-cover {
        order: -1;
    }
}

/* Service sliders on the generated brand kit pages */
.bk-slider-track {
    display: flex;
    gap: clamp(14px, 1.8vw, 24px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: clamp(18px, 2.6vw, 30px);
}

.bk-slider-track::-webkit-scrollbar {
    display: none;
}

.bk-slider-track:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* No panel behind the slides: each image sits on its own, whole and uncropped */
.bk-slider-track {
    align-items: center;
}

/* Every slide is the same height; each image keeps its own width from its aspect ratio,
   so nothing is cropped, stretched or letterboxed and the corners sit on the image. */
.bk-slide {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: start;
}

.bk-slide img {
    display: block;
    width: auto;
    height: clamp(280px, 40vw, 600px);
    border-radius: clamp(16px, 2.2vw, 26px);
}

.bk-slider.is-single .bk-slide {
    flex-basis: 100%;
}

@media (max-width: 640px) {
    /* Phones: one image per screen width, height from its own shape */
    .bk-slide {
        flex: 0 0 88%;
    }

    .bk-slide img {
        width: 100%;
        height: auto;
    }
}

.project-related-links {
    margin-top: clamp(32px, 4vw, 48px);
}

.project-related-links p {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-related-links ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.project-detail-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.project-detail-navigation a {
    display: flex;
    min-height: 74px;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(4, 125, 172, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 650;
    backdrop-filter: blur(12px);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-detail-navigation a:hover,
.project-detail-navigation a:focus-visible {
    border-color: var(--accent-color);
    background: #ffffff;
    color: var(--accent-color);
    outline: none;
    transform: translateY(-3px);
}

.project-next-link {
    text-align: right;
}

@media (max-width: 640px) {
    .project-detail-main {
        padding: 34px 14px 46px;
    }

    .project-detail-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-detail-title {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .project-detail-media img {
        min-height: 210px;
    }

    .project-detail-navigation {
        grid-template-columns: 1fr;
    }
}

.hero {
    position: relative;
    min-height: clamp(560px, 74vh, 760px);
    padding: 0;
    background: #f0fcff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(7, 16, 21, 0.22);
    isolation: isolate;
}

.hero-stage {
    position: relative;
    min-height: inherit;
    display: flex;
    align-items: stretch;
    --spotlight-x: 72%;
    --spotlight-y: 34%;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    --image-x: 0px;
    --image-y: 0px;
    transform: scale(1.08) translate3d(var(--image-x), var(--image-y), 0);
    filter: saturate(0.96) brightness(0.68) blur(12px);
    opacity: 0.3;
    transition:
        transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.5s ease,
        opacity 1.5s ease;
}

.hero.is-loaded .hero-background-image {
    transform: scale(1.02) translate3d(var(--image-x), var(--image-y), 0);
    filter: saturate(1.04) brightness(0.9) blur(0);
    opacity: 1;
}

.hero-grid-overlay,
.hero-gradient-overlay,
.hero-light-sweep,
.hero-particle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid-overlay {
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 76px 76px;
    opacity: 0.16;
}

.hero-gradient-overlay {
    z-index: 2;
    background:
        radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(84, 255, 202, 0.18), transparent 28%),
        linear-gradient(93deg, rgba(2, 8, 11, 0.92) 0%, rgba(3, 11, 15, 0.82) 34%, rgba(5, 15, 20, 0.38) 62%, rgba(5, 15, 20, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 15, 20, 0.05) 0%, rgba(5, 15, 20, 0.28) 100%);
}

.hero-light-sweep {
    top: -24%;
    bottom: -24%;
    left: -52%;
    width: 38%;
    z-index: 3;
    opacity: 0;
    filter: blur(6px);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg) translateX(0);
}

.hero.is-loaded .hero-light-sweep {
    opacity: 0.7;
}

.hero.is-sweeping .hero-light-sweep {
    animation: heroSweep 1.7s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

@keyframes heroSweep {
    from {
        transform: skewX(-20deg) translateX(0);
    }

    to {
        transform: skewX(-20deg) translateX(420%);
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(100%, 660px);
    min-height: inherit;
    padding: clamp(22px, 3vw, 34px) clamp(38px, 6vw, 72px) clamp(38px, 6vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 16ch;
    color: #ffffff;
    padding-top: 0;
}

.hero-title-line {
    display: block;
    padding-bottom: 0.12em;
    font-size: clamp(2.7rem, 5.4vw, 5rem);
    font-weight: 450;
    line-height: 0.88;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.hero-title-subline {
    white-space: normal;
    max-width: none;
    padding-bottom: 0;
    font-size: clamp(1.12rem, 2vw, 1.85rem);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: #dff3ee;
}

.hero-word-wrap {
    display: inline-block;
    overflow: visible;
    vertical-align: bottom;
    padding-right: 0.04em;
    padding-bottom: 0.08em;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 115%, 0) rotate(4deg);
    will-change: transform, opacity;
    transition:
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.72s ease;
}

.hero-word.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-primary-button,
.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 600;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.hero-primary-button {
    background: #047dac;
    color: #ffffff;
}

.hero-primary-button:hover {
    transform: translateY(-1px);
    background: #03698f;
}

.hero-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero-secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.12);
}

[data-hero-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.82s ease;
}

[data-hero-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-floating {
    position: absolute;
    z-index: 4;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    pointer-events: none;
}

.hero-floating--middle {
    top: 41%;
    right: 6%;
}

.hero-floating--bottom {
    right: 12%;
    bottom: 10%;
}

.hero-floating-shell {
    max-width: 300px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    /* Tinted instead of backdrop-blurred: these cards move every frame. */
    background: rgba(10, 24, 30, 0.42);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(4, 9, 14, 0.22);
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.94);
    transition:
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.82s ease,
        background-color 0.3s ease;
}

.hero-floating.is-visible .hero-floating-shell {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-floating strong {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.hero-floating-shell--detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 320px;
}

.hero-floating-shell--detail p,
.hero-floating-shell--metric p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hero-floating-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: #4be08f;
    box-shadow: 0 0 0 8px rgba(75, 224, 143, 0.18);
}

.hero-floating-shell--metric {
    max-width: 240px;
}

.hero-floating-metric {
    display: block;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-particle-layer {
    z-index: 3;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.32);
    opacity: 0;
    animation: heroParticlePulse var(--duration, 5s) ease-in-out infinite var(--delay, 0s);
}

.hero.is-loaded .hero-particle {
    opacity: var(--particle-opacity, 0.45);
}

@keyframes heroParticlePulse {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(0.6);
    }

    50% {
        transform: translate3d(0, -18px, 0) scale(1);
    }
}

@media (max-width: 1100px) {
    .header-shell {
        flex-wrap: wrap;
        gap: 20px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        gap: 24px;
        flex-wrap: wrap;
    }

    .dropdown-menu {
        top: calc(100% + 10px);
    }

    .hero {
        min-height: 680px;
    }

    .hero-title {
        max-width: 13ch;
    }

    .hero-floating--middle {
        right: 4%;
    }

    .hero-floating--bottom {
        right: 8%;
    }
}

@media (max-width: 1120px) {
    .site-header {
        overflow: visible;
    }

    .header-shell {
        padding: 16px 20px;
        gap: 16px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
    }

    .brand {
        width: 122px;
        height: 44px;
    }

    .site-header.is-scrolled {
        padding-top: 9px;
    }

    .site-header.is-scrolled .header-shell {
        width: calc(100% - 18px);
        padding: 7px 10px;
        gap: 12px;
        border-radius: 28px;
    }

    .site-header.is-scrolled .brand {
        width: 102px;
        height: 44px;
    }

    .site-header.is-scrolled .brand-logo-compact {
        width: 102px;
        height: auto;
    }

    .header-actions {
        gap: 14px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 45;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 6px;
        margin-top: 0;
        padding: 0;
        width: auto;
        border: 1px solid #d8e6eb;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 16px 38px rgba(17, 17, 17, 0.08);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        overflow-x: hidden;
        pointer-events: none;
        transform: translateY(-14px);
        transform-origin: top center;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        transition:
            max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease,
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-header.menu-open .main-nav {
        max-height: min(calc(100vh - 110px), 620px);
        max-height: min(calc(100dvh - 110px), 620px);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
        transform: translateY(0);
        padding: 10px;
    }

    .main-nav::-webkit-scrollbar {
        width: 6px;
    }

    .main-nav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(4, 125, 172, 0.28);
    }

    .main-nav > * {
        margin: 0;
        flex: 0 0 auto;
        width: 100%;
    }

    .nav-item,
    .nav-link,
    .nav-button {
        width: 100%;
    }

    .nav-button {
        justify-content: space-between;
    }

    .main-nav .nav-link,
    .main-nav .nav-button {
        display: flex;
        width: 100%;
        justify-content: flex-start !important;
        align-items: center;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 0.98rem;
        text-align: left !important;
    }

    .nav-label::after {
        bottom: -5px;
    }

    .main-nav .nav-link .nav-label::after,
    .main-nav .nav-button .nav-label::after {
        display: none;
    }

    .main-nav .nav-link {
        justify-content: flex-start;
        text-align: left;
    }

    .main-nav .nav-link .nav-label,
    .main-nav .nav-button .nav-label {
        display: block;
        flex: 1;
        width: 100%;
        text-align: left !important;
        margin-right: auto;
    }

    .main-nav .chevron {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0 8px;
        box-shadow: none;
        border-radius: 14px;
        background: #f7f8fa;
        transform: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition:
            max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease,
            margin-top 0.24s ease,
            padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-item.dropdown-open .dropdown-menu {
        margin-top: 4px;
        margin-bottom: 2px;
        padding: 8px;
        opacity: 1;
        max-height: 320px;
        pointer-events: auto;
    }

    .dropdown-link {
        padding: 10px 12px;
        text-align: left;
    }

    /* Mega menu in the mobile menu: one compact column, labels only */
    .nav-item.dropdown-open .mega-menu {
        max-height: 1400px;
    }

    .mega-link {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 12px;
    }

    .mega-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .mega-icon svg {
        width: 16px;
        height: 16px;
    }

    .mega-text small,
.mega-preview,
.mega-feature-secondary {
        display: none;
    }

    .dropdown-menu .mega-link {
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 10px;
        padding: 8px 12px;
    }

    .mega-feature {
        margin-top: 10px;
        padding: 0;
        background: none;
    }

    .mega-feature-primary {
        background: var(--accent-color);
        color: #ffffff;
    }

    .contact-now-button {
        display: none;
    }

    .page-content {
        padding: 28px 16px 40px;
    }

    .hero {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-background-image {
        object-position: 68% center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 18px 20px 20px;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-title {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.22em;
        text-align: center;
    }

    .hero-title-line {
        font-size: clamp(1.85rem, 7.8vw, 2.55rem);
        line-height: 0.92;
        letter-spacing: -0.045em;
    }

    .hero-title-line:nth-child(1),
    .hero-title-subline {
        width: 100%;
    }

    .hero-title-line:nth-child(2),
    .hero-title-line:nth-child(3) {
        width: auto;
    }

    .hero-title-subline {
        max-width: 12ch;
        font-size: clamp(0.98rem, 4.6vw, 1.2rem);
        line-height: 1.15;
        padding-top: 4px;
        margin-inline: auto;
    }

    .hero-actions {
        flex-direction: row;
        width: 100%;
        margin-top: auto;
        gap: 10px;
        padding-top: 20px;
    }

    .hero-primary-button,
    .hero-secondary-button {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

    .hero-floating--middle {
        display: none;
    }

    .hero-floating--bottom {
        display: none;
    }

    .hero-floating-shell {
        max-width: 180px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .hero-floating-shell--metric p {
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

@media (max-width: 640px) {
    .home-about {
        margin-top: 18px;
        padding: 58px 20px;
    }

    .home-about-eyebrow {
        margin-bottom: 18px;
    }

    .home-about-title {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
        line-height: 1.12;
    }

    .home-about-copy {
        line-height: 1.65;
    }

    .project-showcase-area {
        min-height: 700px;
        margin-top: 18px;
        border-radius: 24px;
    }

    .project-splash-card {
        width: clamp(104px, 32vw, 142px);
        border-radius: 8px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
    }

    .showcase-folder-button {
        width: clamp(118px, 36vw, 150px);
    }

    .hero {
        min-height: 500px;
        border-radius: 24px;
    }

    .hero-background-image {
        object-position: 72% center;
    }

    .hero-content {
        padding: 14px 18px 18px;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-floating--bottom {
        display: none;
    }

    .hero-title-line {
        font-size: clamp(1.58rem, 7.6vw, 2.02rem);
        line-height: 0.94;
    }

    .hero-title-subline {
        max-width: 14ch;
        font-size: 0.92rem;
    }

    .hero-primary-button,
    .hero-secondary-button {
        min-height: 46px;
        padding: 0 18px;
        font-size: 0.94rem;
    }
}

@media (max-width: 420px) {
    .header-shell {
        padding: 14px 14px;
    }

    .brand {
        width: 108px;
        height: 42px;
    }

    .site-header.is-scrolled .brand {
        width: 90px;
        height: 42px;
    }

    .site-header.is-scrolled .brand-logo-compact {
        width: 90px;
        height: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .icon-button {
        display: none;
    }

    .page-content {
        padding: 20px 12px 32px;
    }

    .hero {
        min-height: 460px;
        border-radius: 20px;
    }

    .hero-content {
        padding: 12px 14px 16px;
        align-items: center;
    }

    .hero-title-line {
        font-size: clamp(1.34rem, 7.9vw, 1.72rem);
        line-height: 0.94;
    }

    .hero-title-subline {
        max-width: 15ch;
        font-size: 0.84rem;
    }

    .hero-actions {
        gap: 10px;
        margin-top: auto;
        padding-top: 16px;
    }

    .hero-primary-button,
    .hero-secondary-button {
        flex: 1 1 0;
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 340px) {
    .header-shell {
        padding-inline: 10px;
    }

    .brand-logo {
        width: 96px;
    }

    .page-content {
        padding-inline: 8px;
    }

    .hero-content {
        padding-inline: 10px;
    }

    .hero-actions {
        gap: 6px;
    }

    .hero-primary-button,
    .hero-secondary-button {
        padding-inline: 8px;
        font-size: 0.82rem;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .page-content {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .hero {
        min-height: 390px;
        min-height: max(390px, calc(100dvh - var(--fixed-header-offset, 0px) - 36px));
    }

    .hero-content {
        justify-content: flex-end;
        align-items: flex-start;
        padding: 18px 22px;
    }

    .hero-title {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-title-line:nth-child(1),
    .hero-title-subline {
        width: auto;
    }

    .hero-title-subline {
        max-width: none;
        margin-inline: 0;
    }

    .hero-actions {
        width: auto;
        margin-top: 14px;
        padding-top: 0;
    }

    .hero-primary-button,
    .hero-secondary-button {
        flex: 0 0 auto;
    }
}

@media (min-width: 1600px) {
    .hero {
        min-height: min(780px, 76vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .header-shell,
    .brand,
    .brand-logo {
        transition: none;
    }

    .site-header.is-scrolled .header-shell,
    .site-header.is-scrolled .brand-logo-compact,
    .site-header.is-returning .header-shell,
    .site-header.is-returning .brand-logo-full {
        animation: none;
    }

    .home-services.services-reveal-ready .home-services-heading > div,
    .home-services.services-reveal-ready .home-services-summary,
    .home-services.services-reveal-ready .service-card {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .home-services.services-reveal-ready.is-visible .client-logo-round {
        animation: none;
    }

    .contact-banner.contact-banner-ready .contact-banner-panel,
    .contact-banner.contact-banner-ready .contact-banner-image {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .scroll-progress::before {
        animation: none;
    }

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

    .clients-carousel-track {
        animation: none;
    }

    .client-logo-group[aria-hidden="true"] {
        display: none;
    }

    .awards-visual-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .awards-visual-track {
        animation: none;
    }

    .awards-visual-group[aria-hidden="true"] {
        display: none;
    }

    .showcase-folder-visual {
        animation: none;
    }

    .project-splash-card,
    .showcase-folder-button,
    .showcase-folder-glow {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .hero-background-image,
    .hero-light-sweep,
    [data-hero-reveal],
    .hero-word,
    .hero-floating-shell,
    .hero-particle {
        animation: none !important;
        transition: none !important;
    }

    .hero-background-image {
        opacity: 1;
        filter: saturate(1.04) brightness(0.9) blur(0);
        transform: scale(1.02);
    }

    [data-hero-reveal],
    .hero-word,
    .hero-floating-shell {
        opacity: 1;
        transform: none;
    }
}
/* Service pages (creative-design.html, brochure-catalogue-design.html, ...) */
.svc-main {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 84px) 28px clamp(60px, 8vw, 110px);
}

.svc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.svc-eyebrow {
    margin: 0 0 16px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.svc-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 5.4vw, 4.9rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.svc-lead {
    max-width: 54ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.7;
}

.svc-actions {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.svc-button,
.svc-button-ghost {
    display: inline-flex;
    min-height: 50px;
    padding: 0 24px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 650;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.svc-button {
    background: var(--accent-color);
    color: #ffffff;
}

.svc-button:hover,
.svc-button:focus-visible {
    background: var(--accent-color-dark);
    outline: none;
    transform: translateY(-2px);
}

.svc-button-ghost {
    border: 1px solid rgba(4, 125, 172, 0.3);
    color: var(--text-primary);
}

.svc-button-ghost:hover,
.svc-button-ghost:focus-visible {
    border-color: var(--accent-color);
    outline: none;
    transform: translateY(-2px);
}

.svc-hero-media {
    position: relative;
    margin: 0;
}

.svc-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: clamp(20px, 2.6vw, 34px);
    box-shadow: 0 30px 70px rgba(7, 16, 21, 0.18);
}

.svc-hero-media figcaption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 15, 20, 0.72);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 650;
}

.svc-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: clamp(48px, 7vw, 88px) 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--border-color);
    list-style: none;
}

.svc-facts li {
    padding: clamp(20px, 2.6vw, 30px);
    background: var(--page-bg);
}

.svc-facts strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.svc-facts span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.svc-section {
    margin-top: clamp(64px, 9vw, 120px);
}

.svc-section-heading {
    display: flex;
    margin-bottom: clamp(26px, 3.4vw, 42px);
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.svc-section-heading h2 {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.svc-section-heading > p {
    max-width: 44ch;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.svc-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 80px);
}

.svc-split h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.svc-split p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/*
 * "Folder tab" cards: a raised tab top-right with a ZainCo label, a stepped tab bottom-left
 * holding the position dots, and a large glowing number. The shape is a clip-path; the 1px
 * border is the card's own gradient background showing around an inset fill (li::before).
 */
.svc-includes {
    --tab: 26px;
    --card-border: linear-gradient(155deg, rgba(4, 125, 172, 0.42), rgba(4, 125, 172, 0.1) 45%, rgba(79, 194, 248, 0.38));
    --card-border-hover: linear-gradient(155deg, #047dac, rgba(4, 125, 172, 0.25) 45%, #4fc2f8);
    --card-fill:
        radial-gradient(120% 70% at 0% 100%, rgba(79, 194, 248, 0.16), transparent 60%),
        linear-gradient(165deg, #ffffff 0%, #f1fbff 100%);
    --card-number: #047dac;
    --card-glow: rgba(4, 125, 172, 0.28);
    --card-label: rgba(7, 25, 32, 0.5);
    --dot-on: #047dac;
    --dot-off: rgba(4, 125, 172, 0.18);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    counter-reset: svc-include;
    list-style: none;
}

.svc-includes li {
    --shape: polygon(
        0 calc(var(--tab) + 16px), 2.1px calc(var(--tab) + 8px), 8px calc(var(--tab) + 2.1px), 16px var(--tab),
        calc(100% - 150px) var(--tab), calc(100% - 126px) 0,
        calc(100% - 16px) 0, calc(100% - 8px) 2.1px, calc(100% - 2.1px) 8px, 100% 16px,
        100% calc(100% - var(--tab) - 16px), calc(100% - 2.1px) calc(100% - var(--tab) - 8px), calc(100% - 8px) calc(100% - var(--tab) - 2.1px), calc(100% - 16px) calc(100% - var(--tab)),
        150px calc(100% - var(--tab)), 126px 100%,
        16px 100%, 8px calc(100% - 2.1px), 2.1px calc(100% - 8px), 0 calc(100% - 16px)
    );
    position: relative;
    display: flex;
    min-height: 330px;
    padding: calc(var(--tab) + 30px) 30px calc(var(--tab) + 34px);
    flex-direction: column;
    background: var(--card-border);
    clip-path: var(--shape);
    counter-increment: svc-include;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Inner fill, 1px inside the border */
.svc-includes li::before {
    position: absolute;
    inset: 1px;
    background: var(--card-fill);
    clip-path: var(--shape);
    content: "";
}

/* Label in the top-right tab */
.svc-includes li::after {
    position: absolute;
    top: 6px;
    right: 22px;
    color: var(--card-label);
    content: "ZainCo";
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.svc-includes li:hover {
    background: var(--card-border-hover);
    transform: translateY(-5px);
}

/* Flex items stack above the fill; their absolute pseudo-elements still position against the card. */
.svc-includes strong,
.svc-includes span {
    z-index: 1;
}

.svc-includes strong {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(1.22rem, 1.6vw, 1.42rem);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.svc-includes span {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* Large glowing number */
.svc-includes span::after {
    margin-top: auto;
    padding-top: 26px;
    color: var(--card-number);
    content: counter(svc-include, decimal-leading-zero);
    font-size: clamp(3rem, 4.6vw, 4.2rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 0 22px var(--card-glow), 0 0 2px var(--card-glow);
    transition: text-shadow 0.4s ease;
}

.svc-includes li:hover span::after {
    text-shadow: 0 0 30px var(--card-glow), 0 0 8px var(--card-glow);
}

/* Position dots in the bottom-left tab: the dot itself plus five box-shadow copies */
.svc-includes strong::after {
    position: absolute;
    bottom: 9px;
    left: 30px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot-on);
    content: "";
    box-shadow: 12px 0 var(--dot-off), 24px 0 var(--dot-off), 36px 0 var(--dot-off), 48px 0 var(--dot-off), 60px 0 var(--dot-off);
}

.svc-includes li:nth-child(2) strong::after {
    box-shadow: 12px 0 var(--dot-on), 24px 0 var(--dot-off), 36px 0 var(--dot-off), 48px 0 var(--dot-off), 60px 0 var(--dot-off);
}

.svc-includes li:nth-child(3) strong::after {
    box-shadow: 12px 0 var(--dot-on), 24px 0 var(--dot-on), 36px 0 var(--dot-off), 48px 0 var(--dot-off), 60px 0 var(--dot-off);
}

.svc-includes li:nth-child(4) strong::after {
    box-shadow: 12px 0 var(--dot-on), 24px 0 var(--dot-on), 36px 0 var(--dot-on), 48px 0 var(--dot-off), 60px 0 var(--dot-off);
}

.svc-includes li:nth-child(5) strong::after {
    box-shadow: 12px 0 var(--dot-on), 24px 0 var(--dot-on), 36px 0 var(--dot-on), 48px 0 var(--dot-on), 60px 0 var(--dot-off);
}

.svc-includes li:nth-child(6) strong::after {
    box-shadow: 12px 0 var(--dot-on), 24px 0 var(--dot-on), 36px 0 var(--dot-on), 48px 0 var(--dot-on), 60px 0 var(--dot-on);
}

/* Services overview page (services.html) */
.services-hero {
    max-width: 900px;
}

.services-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.4rem, 5.6vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.services-group {
    margin-top: clamp(56px, 8vw, 100px);
}

.services-group-heading {
    display: flex;
    margin-bottom: clamp(20px, 3vw, 32px);
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.services-group-heading span {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 750;
}

.services-group-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.services-card {
    display: flex;
    min-height: 100%;
    padding: 26px;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.services-card .mega-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 14px;
}

.services-card .mega-icon svg {
    width: 24px;
    height: 24px;
}

.services-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.services-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.services-card-more {
    display: inline-flex;
    margin-top: auto;
    padding-top: 12px;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 650;
}

.services-card-more b {
    transition: transform 0.3s ease;
}

.services-card:hover,
.services-card:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 22px 48px rgba(7, 16, 21, 0.1);
    outline: none;
    transform: translateY(-4px);
}

.services-card:hover .mega-icon,
.services-card:focus-visible .mega-icon {
    background: var(--accent-color);
    color: #ffffff;
}

.services-card:hover .services-card-more b,
.services-card:focus-visible .services-card-more b {
    transform: translateX(4px);
}

:root[data-theme="dark"] .services-card {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .services-card:hover,
:root[data-theme="dark"] .services-card:focus-visible {
    border-color: #4fc2f8;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .services-card-more {
    color: #77d7ff;
}

/* Breadcrumb row for inner service pages (e.g. Performance Marketing under Digital Marketing) */
.svc-breadcrumb {
    display: flex;
    margin-bottom: clamp(26px, 4vw, 44px);
    align-items: center;
    gap: 18px;
}

.svc-breadcrumb .project-back-link {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.svc-breadcrumb ol {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    list-style: none;
}

.svc-breadcrumb li + li::before {
    margin-right: 8px;
    color: var(--border-color);
    content: "/";
}

.svc-breadcrumb a:hover,
.svc-breadcrumb a:focus-visible {
    color: var(--accent-color);
}

.svc-breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 600;
}

/* Feature panel linking a service page to its inner page */
.svc-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(4, 125, 172, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(79, 194, 248, 0.14), transparent 55%),
        linear-gradient(160deg, #ffffff, #f1fbff);
}

.svc-feature h2 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.svc-feature p {
    margin: 0 0 22px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.svc-feature ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.svc-feature li {
    display: flex;
    padding: 14px 18px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.svc-feature li::before {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(4, 125, 172, 0.15);
    content: "";
}

:root[data-theme="dark"] .svc-feature {
    border-color: rgba(119, 215, 255, 0.16);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(4, 125, 172, 0.28), transparent 55%),
        linear-gradient(160deg, #13212a, #0d181e);
}

:root[data-theme="dark"] .svc-feature li {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 860px) {
    .svc-feature {
        grid-template-columns: 1fr;
    }

    .svc-breadcrumb ol {
        display: none;
    }
}

/* CRM page hero: a small decorative sales-pipeline board drawn in CSS */
.crm-illustration {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: clamp(20px, 2.6vw, 32px);
    background: linear-gradient(160deg, #ffffff, #eef7fb);
    box-shadow: 0 30px 70px rgba(7, 16, 21, 0.12);
}

.crm-illustration-bar {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    gap: 6px;
}

.crm-illustration-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(4, 125, 172, 0.25);
}

.crm-illustration-bar b {
    margin-left: 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.crm-illustration-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.crm-col {
    display: grid;
    min-height: 230px;
    padding: 10px;
    align-content: start;
    gap: 8px;
    border-radius: 14px;
    background: rgba(4, 125, 172, 0.06);
}

.crm-col p {
    display: flex;
    margin: 0 0 4px;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 650;
}

.crm-col em {
    color: var(--accent-color);
    font-style: normal;
}

.crm-col i {
    display: block;
    height: 44px;
    border-left: 3px solid #4fc2f8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(7, 16, 21, 0.06);
}

.crm-col i.is-short {
    height: 30px;
}

.crm-col i.is-hot {
    border-left-color: #f6bd16;
}

.crm-col i.is-won {
    border-left-color: #36a352;
}

:root[data-theme="dark"] .crm-illustration {
    background: linear-gradient(160deg, #13212a, #0d181e);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .crm-col {
    background: rgba(79, 194, 248, 0.06);
}

:root[data-theme="dark"] .crm-col i {
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 640px) {
    .crm-col {
        min-height: 170px;
        padding: 8px;
    }

    .crm-col p {
        font-size: 0.62rem;
    }
}

/* The CRM illustration used as a homepage service card image */
.service-card-media--crm .crm-illustration {
    height: 100%;
    padding: 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.service-card-media--crm .crm-illustration-bar {
    margin-bottom: 10px;
}

.service-card-media--crm .crm-col {
    min-height: 0;
    height: 100%;
    padding: 8px;
}

.service-card-media--crm .crm-col p {
    font-size: 0.64rem;
}

.service-card-media--crm .crm-col i {
    height: 34px;
}

.service-card-media--crm .crm-col i.is-short {
    height: 24px;
}

.home-services.services-reveal-ready .service-card:nth-child(n + 7) {
    transition-delay: 0.6s;
}

/* Reels row (video-production.html) */
.reels-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.reel-card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 24px;
    background: #102833;
    box-shadow: 0 18px 40px rgba(7, 16, 21, 0.18);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.reel-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Soft shade so the play button reads on bright thumbnails */
.reel-card::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), transparent 55%);
    content: "";
    pointer-events: none;
}

.reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 252, 247, 0.9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.reel-play::before {
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #161616;
    content: "";
    transform: translate(-50%, -50%);
}

.reel-card:hover,
.reel-card:focus-visible {
    box-shadow: 0 26px 56px rgba(7, 16, 21, 0.26);
    outline: none;
    transform: translateY(-6px);
}

.reel-card:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-color), 0 26px 56px rgba(7, 16, 21, 0.26);
}

.reel-card:hover img,
.reel-card:focus-visible img {
    transform: scale(1.05);
}

.reel-card:hover .reel-play,
.reel-card:focus-visible .reel-play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

.reel-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    background: #0b151a;
    color: #ffffff;
}

.reel-dialog::backdrop {
    background: rgba(3, 9, 12, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Zoom out of the clicked card (--from-* are set by initializeReels) and back into it on close. */
.reel-dialog.is-opening {
    animation: reel-dialog-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.reel-dialog.is-closing {
    animation: reel-dialog-out 0.38s cubic-bezier(0.5, 0, 0.75, 0) both;
}

.reel-dialog.is-opening::backdrop {
    animation: reel-backdrop-in 0.45s ease both;
}

.reel-dialog.is-closing::backdrop {
    animation: reel-backdrop-in 0.38s ease reverse both;
}

@keyframes reel-dialog-in {
    from {
        opacity: 0.35;
        transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(var(--from-scale, 0.6));
    }

    60% {
        opacity: 1;
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes reel-dialog-out {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(var(--from-scale, 0.6));
    }
}

@keyframes reel-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reel-dialog-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #0b151a center / cover no-repeat;
}

/* Loading spinner over the thumbnail until Instagram's player is ready */
.reel-dialog-frame::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    content: "";
    animation: reel-spin 0.8s linear infinite;
    transition: opacity 0.3s ease;
}

.reel-dialog-frame.is-loaded::after {
    opacity: 0;
    animation: none;
}

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

.reel-dialog-frame iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: min(78vh, 740px);
    border: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.reel-dialog-frame.is-loaded iframe {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .reel-dialog.is-opening,
    .reel-dialog.is-closing {
        animation-name: reel-backdrop-in;
        animation-duration: 0.2s;
    }

    .reel-dialog.is-closing {
        animation-direction: reverse;
    }

    .reel-dialog-frame::after {
        animation: none;
    }
}

.reel-dialog-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 650;
}

.reel-dialog-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 960px) {
    /* Swipeable row on tablets and phones */
    .reels-row {
        display: flex;
        margin-right: -28px;
        padding-right: 28px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .reels-row::-webkit-scrollbar {
        display: none;
    }

    .reels-row li {
        flex: 0 0 clamp(190px, 42vw, 260px);
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .reels-row {
        margin-right: -16px;
        padding-right: 16px;
    }

    .reels-row li {
        flex-basis: 62vw;
    }

    .reel-dialog-close {
        top: 8px;
        right: 8px;
    }
}

.svc-work .portfolio-project-card h3 {
    margin: 0;
    font-size: clamp(1.02rem, 1.4vw, 1.3rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.svc-work .portfolio-project-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.svc-work .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: clamp(28px, 3vw, 40px);
}

.svc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    counter-reset: svc-step;
    list-style: none;
}

.svc-steps li {
    position: relative;
    padding: 64px 22px 24px;
    border-top: 2px solid var(--accent-color);
    counter-increment: svc-step;
}

.svc-steps li::before {
    position: absolute;
    top: 18px;
    left: 22px;
    color: var(--accent-color);
    content: counter(svc-step, decimal-leading-zero);
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.svc-steps h3 {
    margin: 0 0 10px;
    font-size: 1.14rem;
    font-weight: 650;
}

.svc-steps p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.svc-trust .clients-carousel-section {
    margin-top: 0;
    border-radius: 28px;
}

.svc-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.svc-reviews blockquote {
    margin: 0;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
}

.svc-reviews blockquote p {
    margin: 0 0 18px;
    line-height: 1.65;
}

.svc-reviews footer {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.svc-reviews footer strong {
    color: var(--text-primary);
}

.svc-faq details {
    border-bottom: 1px solid var(--border-color);
}

.svc-faq summary {
    display: flex;
    padding: 22px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    font-weight: 600;
    list-style: none;
}

.svc-faq summary::-webkit-details-marker {
    display: none;
}

.svc-faq summary::after {
    flex: 0 0 auto;
    color: var(--accent-color);
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.svc-faq details[open] summary::after {
    transform: rotate(45deg);
}

.svc-faq details p {
    max-width: 70ch;
    margin: 0 0 22px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.svc-other {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.svc-other a {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 600;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.svc-other a:hover,
.svc-other a:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-color);
    outline: none;
}

.svc-cta {
    display: flex;
    margin-top: clamp(64px, 9vw, 120px);
    padding: clamp(34px, 5vw, 64px);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-radius: 32px;
    background: linear-gradient(135deg, #062c3d 0%, #047dac 100%);
    color: #ffffff;
}

.svc-cta h2 {
    max-width: 20ch;
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.svc-cta .svc-button {
    background: #ffffff;
    color: #062c3d;
}

:root[data-theme="dark"] .svc-includes {
    --card-border: linear-gradient(155deg, rgba(119, 215, 255, 0.4), rgba(119, 215, 255, 0.08) 45%, rgba(79, 194, 248, 0.32));
    --card-border-hover: linear-gradient(155deg, #4fc2f8, rgba(79, 194, 248, 0.2) 45%, #77d7ff);
    --card-fill:
        radial-gradient(120% 75% at 0% 100%, rgba(4, 125, 172, 0.34), transparent 62%),
        linear-gradient(165deg, #16242b 0%, #0c171c 100%);
    --card-number: #8fe1ff;
    --card-glow: rgba(79, 194, 248, 0.7);
    --card-label: rgba(255, 255, 255, 0.62);
    --dot-on: #77d7ff;
    --dot-off: rgba(119, 215, 255, 0.2);
}

@media (max-width: 960px) {
    .svc-hero,
    .svc-split {
        grid-template-columns: 1fr;
    }

    .svc-facts,
    .svc-steps,
    .svc-includes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc-work .projects-grid,
    .svc-reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .svc-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .svc-includes,
    .svc-steps,
    .svc-work .projects-grid,
    .svc-reviews {
        grid-template-columns: 1fr;
    }

    .svc-includes li {
        min-height: 280px;
        padding: calc(var(--tab) + 24px) 24px calc(var(--tab) + 28px);
    }

    .svc-includes strong::after {
        left: 24px;
    }
}

/* Projects portfolio */
.projects-page-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(82px, 9vw, 132px) 28px clamp(80px, 9vw, 130px);
}

.projects-page {
  overflow-x: clip;
}

.projects-page-heading {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.projects-page-heading h1 {
  min-width: 0;
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 6.5vw, 6.7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.projects-page-heading h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.projects-filter {
  position: sticky;
  top: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(34px, 4vw, 54px);
  padding: 7px;
  border: 1px solid rgba(18, 48, 38, 0.11);
  border-radius: 999px;
  background: rgba(245, 242, 233, 0.82);
  box-shadow: 0 16px 38px rgba(18, 48, 38, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.projects-filter-indicator {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 8px 20px rgba(4, 125, 172, 0.24);
  pointer-events: none;
  will-change: transform, width;
}

.projects-filter-indicator.is-ready {
  transition:
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    width 480ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 260ms ease;
}

.projects-filter button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.projects-filter button:hover {
  transform: translateY(-1px);
}

.projects-filter button.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.projects-filter button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2vw, 34px);
  row-gap: clamp(38px, 5vw, 72px);
  min-width: 0;
}

.portfolio-project-card {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.portfolio-project-card[hidden] {
  display: none;
}

.portfolio-project-card:hover {
  border-color: transparent;
}

.portfolio-project-card figure {
  position: relative;
  aspect-ratio: 1.44 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #e9e7df;
  transition: transform 480ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.portfolio-project-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.portfolio-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.portfolio-project-card:hover img {
  transform: scale(1.045);
}

.portfolio-project-card:hover figure {
  transform: translateY(-5px);
}

.portfolio-project-card > div {
  display: block;
  padding: 18px 2px 0;
}

.portfolio-project-card h2 {
  margin: 0;
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.portfolio-project-card p,
.portfolio-project-card span {
  display: none;
}

:root[data-theme="dark"] .projects-filter {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 16, 0.8);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .projects-filter-indicator {
  box-shadow:
    0 8px 24px rgba(4, 125, 172, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .portfolio-project-card {
  border-color: transparent;
  background: transparent;
}

:root[data-theme="dark"] .portfolio-project-card:hover {
  border-color: transparent;
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .projects-page-main {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    padding-right: 0;
    padding-left: 0;
  }

  .projects-filter {
    position: sticky;
    top: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    scrollbar-width: none;
  }

  .projects-filter::-webkit-scrollbar {
    display: none;
  }

  .projects-filter button {
    flex: 0 0 auto;
  }

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

  .projects-page-heading h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

}

/* Santec Chemicals case study */
.santec-case-study-page {
    --santec-bg: #f4f6f5;
    --santec-header-bg: #ffffff;
    --santec-text: #111111;
    --santec-muted: rgba(17, 17, 17, 0.62);
    --santec-subtle: rgba(17, 17, 17, 0.52);
    --santec-border: rgba(17, 17, 17, 0.16);
    background: var(--santec-bg);
    color: var(--santec-text);
}

.santec-case-study-page .site-header {
    background: var(--santec-header-bg);
    border-top-color: var(--santec-border);
    border-bottom-color: var(--santec-border);
}

.santec-case-study-page .nav-link,
.santec-case-study-page .nav-button,
.santec-case-study-page .icon-button {
    color: var(--santec-text);
}

.santec-case-study-page .icon-button {
    border-color: var(--santec-border);
}

.santec-case-study-page .main-nav {
    --header-bg: var(--santec-header-bg);
}

.santec-case-study {
    background: var(--santec-bg);
    color: var(--santec-text);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.santec-case-intro {
    width: min(1500px, 100%);
    min-height: min(900px, calc(100vh - 88px));
    margin: 0 auto;
    padding: clamp(48px, 6vw, 90px) clamp(24px, 6vw, 96px) clamp(70px, 8vw, 118px);
}

.santec-case-back {
    display: inline-flex;
    margin-bottom: clamp(52px, 7vw, 100px);
    color: var(--santec-subtle);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 240ms ease;
}

.santec-case-back::before {
    margin-right: 10px;
    content: "\2190";
}

.santec-case-back:hover,
.santec-case-back:focus-visible {
    color: #ca2c46;
}

.santec-case-intro h1 {
    max-width: 9ch;
    margin: 0;
    font-size: clamp(4.4rem, 10.5vw, 10.5rem);
    font-weight: 430;
    line-height: 0.85;
    letter-spacing: -0.075em;
}

#campaign-case-title {
    font-weight: 300;
}

.campaign-case-subtitle {
    max-width: 28ch;
    margin: clamp(28px, 4vw, 52px) 0 0;
    color: var(--santec-muted);
    font-size: clamp(1.35rem, 2.6vw, 2.75rem);
    font-weight: 520;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.campaign-case-hero-media {
    position: relative;
    width: 100%;
    margin: clamp(70px, 10vw, 150px) 0 0;
    aspect-ratio: 16 / 9;
    max-height: 980px;
}

.campaign-case-hero-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background-color: #096bb7;
    background-image: url("../img/successful-ad-campaign-for-educational-institute-in-kerala.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    box-shadow: 0 28px 68px rgba(7, 16, 21, 0.2);
}

.campaign-case-study-page .case-overview {
    margin-top: clamp(90px, 12vw, 180px);
}

.campaign-case-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 38px);
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 96px) clamp(90px, 10vw, 150px);
}

.campaign-case-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: clamp(20px, 2.2vw, 32px);
    background: #096bb7;
    box-shadow: 0 24px 58px rgba(7, 16, 21, 0.16);
}

.campaign-case-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .campaign-case-gallery figure:hover img {
        transform: scale(1.025);
    }
}

.case-overview {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(340px, 1.12fr);
    gap: clamp(70px, 15vw, 260px);
    margin-top: clamp(100px, 15vw, 220px);
    align-items: start;
}

.santec-case-facts {
    margin: 0;
}

.santec-case-facts > div {
    display: grid;
    grid-template-columns: minmax(100px, 0.55fr) minmax(0, 1.45fr);
    gap: 22px;
    padding: 17px 0;
    border-top: 1px solid var(--santec-border);
}

.santec-case-facts dt,
.santec-case-facts dd {
    margin: 0;
}

.santec-case-facts dt {
    color: var(--santec-subtle);
}

.santec-case-facts dd {
    color: var(--santec-text);
    font-weight: 650;
    line-height: 1.45;
}

.santec-case-story {
    max-width: 650px;
    color: var(--santec-muted);
    font-size: clamp(1.08rem, 1.45vw, 1.42rem);
    line-height: 1.5;
}

.santec-case-story p {
    margin: 0;
}

.santec-case-story p + p {
    margin-top: 1.25em;
}

.santec-case-story strong {
    color: var(--santec-text);
    font-weight: 700;
}

:root[data-theme="dark"] .santec-case-study-page {
    --santec-bg: #101111;
    --santec-header-bg: #101111;
    --santec-text: #f7f7f3;
    --santec-muted: rgba(255, 255, 255, 0.6);
    --santec-subtle: rgba(255, 255, 255, 0.52);
    --santec-border: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .santec-case-back:hover,
:root[data-theme="dark"] .santec-case-back:focus-visible {
    color: #ffffff;
}

@media (max-width: 860px) {
    .santec-case-study-page .main-nav {
        background: var(--santec-header-bg);
    }

    .santec-case-intro {
        min-height: auto;
    }

    .case-overview {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .case-overview {
        margin-top: 90px;
    }
}

@media (max-width: 640px) {
    .santec-case-intro {
        padding: 38px 18px 72px;
    }

    .santec-case-back {
        margin-bottom: 52px;
    }

    .santec-case-intro h1 {
        font-size: clamp(3.5rem, 20vw, 5.4rem);
    }

    .campaign-case-hero-media {
        margin-top: 64px;
    }

    .campaign-case-hero-frame {
        border-radius: 22px;
    }

    .campaign-case-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .case-overview {
        margin-top: 72px;
    }

    .santec-case-facts > div {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
    }
}

/* Entityfy company profile case study */
.entityfy-case-page {
    --entityfy-blue: #2158b7;
    --entityfy-blue-deep: #08295f;
    --entityfy-ink: #101a2b;
    --entityfy-paper: #f5f7fb;
    --entityfy-header-bg: #ffffff;
    --entityfy-topline: #61708b;
    --entityfy-copy-color: #59677f;
    --entityfy-surface: #ffffff;
    --entityfy-surface-copy: #66738a;
    --entityfy-divider: rgba(16, 26, 43, 0.18);
    --entityfy-highlight: #08295f;
    background: var(--entityfy-paper);
    color: var(--entityfy-ink);
}

.entityfy-case-page .site-header {
    border-top-color: var(--entityfy-divider);
    border-bottom-color: var(--entityfy-divider);
    background: var(--entityfy-header-bg);
}

.entityfy-case-page .main-nav {
    --header-bg: var(--entityfy-header-bg);
}

.entityfy-case-study {
    overflow: hidden;
    background: var(--entityfy-paper);
    color: var(--entityfy-ink);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.entityfy-hero {
    width: min(1520px, 100%);
    margin: 0 auto;
    padding: clamp(42px, 5vw, 78px) clamp(22px, 5.5vw, 88px) clamp(70px, 9vw, 140px);
}

.entityfy-hero-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.entityfy-hero-topline {
    margin-bottom: clamp(76px, 11vw, 170px);
    color: var(--entityfy-topline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entityfy-hero-topline p {
    margin: 0;
}

.entityfy-back-link::before {
    margin-right: 9px;
    content: "\2190";
}

.entityfy-back-link {
    transition: color 220ms ease;
}

.entityfy-back-link:hover,
.entityfy-back-link:focus-visible {
    color: var(--entityfy-blue);
}

.entityfy-section-label {
    margin: 0;
    color: var(--entityfy-blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.entityfy-hero h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 470;
    line-height: 0.84;
    letter-spacing: -0.075em;
}

.entityfy-full-image {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--entityfy-blue);
}

.entityfy-full-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entityfy-full-image--hero {
    aspect-ratio: 16 / 9;
    min-height: 520px;
    max-height: 980px;
}

.entityfy-full-image--hero img {
    object-position: center 54%;
}

.entityfy-content-section {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(48px, 10vw, 180px);
    width: min(1420px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(100px, 13vw, 210px) clamp(10px, 3vw, 46px);
}

.entityfy-copy {
    max-width: 890px;
}

.entityfy-copy h2,
.entityfy-project-story h2,
.entityfy-approach h2 {
    margin: 0 0 clamp(40px, 6vw, 78px);
    font-size: clamp(2.8rem, 6vw, 6.5rem);
    font-weight: 480;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.entityfy-copy > p {
    max-width: 760px;
    margin: 0;
    color: var(--entityfy-copy-color);
    font-size: clamp(1.08rem, 1.65vw, 1.48rem);
    line-height: 1.58;
}

.entityfy-copy > p + p {
    margin-top: 1.3em;
}

.entityfy-project-story {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(340px, 1.12fr);
    gap: clamp(70px, 15vw, 260px);
    padding: clamp(90px, 11vw, 165px) max(26px, calc((100vw - 1640px) / 2));
    align-items: start;
    background: #101111;
    color: #ffffff;
}

.entityfy-project-facts {
    margin: 0;
}

.entityfy-project-facts > div {
    display: grid;
    grid-template-columns: minmax(100px, 0.55fr) minmax(0, 1.45fr);
    gap: 22px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.entityfy-project-facts dt,
.entityfy-project-facts dd {
    margin: 0;
}

.entityfy-project-facts dt {
    color: rgba(255, 255, 255, 0.5);
}

.entityfy-project-facts dd {
    color: #ffffff;
    font-weight: 650;
    line-height: 1.45;
}

.entityfy-project-story-copy {
    max-width: 700px;
}

.entityfy-project-story-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(1.08rem, 1.45vw, 1.42rem);
    line-height: 1.5;
}

.entityfy-project-story-copy p + p {
    margin-top: 1.35em;
}

.entityfy-highlight {
    margin-top: clamp(48px, 6vw, 82px) !important;
    padding-top: 28px;
    border-top: 1px solid var(--entityfy-divider);
    color: var(--entityfy-highlight) !important;
    font-weight: 700;
}

.entityfy-approach {
    padding: clamp(100px, 13vw, 210px) max(26px, calc((100vw - 1360px) / 2));
    background: var(--entityfy-surface);
    color: var(--entityfy-ink);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.entityfy-approach-intro {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(48px, 10vw, 180px);
}

.entityfy-approach h2 {
    max-width: 900px;
}

.entityfy-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    margin-top: clamp(60px, 8vw, 110px);
    border-top: 1px solid var(--entityfy-divider);
}

.entityfy-approach-grid article {
    padding-top: 26px;
}

.entityfy-approach-grid span {
    color: var(--entityfy-blue);
    font-size: 0.76rem;
    font-weight: 800;
}

.entityfy-approach-grid h3 {
    margin: 48px 0 18px;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.entityfy-approach-grid p {
    max-width: 360px;
    margin: 0;
    color: var(--entityfy-surface-copy);
    line-height: 1.65;
}

.entityfy-project-gallery {
    padding: clamp(90px, 11vw, 170px) max(18px, calc((100vw - 1520px) / 2));
    background: var(--entityfy-blue-deep);
    color: #ffffff;
}

.entityfy-project-gallery-heading {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(48px, 10vw, 180px);
    width: min(1360px, 100%);
    margin: 0 auto clamp(52px, 8vw, 110px);
}

.entityfy-project-gallery-heading .entityfy-section-label {
    color: #78a8ff;
}

.entityfy-project-gallery-heading h2 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 6.5rem);
    font-weight: 480;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.entityfy-project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 28px);
}

.entityfy-project-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: clamp(10px, 1.25vw, 20px);
    background: var(--entityfy-blue);
}

.entityfy-project-gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .entityfy-project-gallery-grid figure:hover img {
        transform: scale(1.025);
    }
}

.entityfy-return-link {
    display: flex;
    padding: clamp(62px, 9vw, 130px) max(26px, calc((100vw - 1360px) / 2));
    align-items: center;
    justify-content: space-between;
    background: var(--entityfy-blue-deep);
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
}

.entityfy-return-link span:last-child {
    color: #78a8ff;
    transition: transform 240ms ease;
}

.entityfy-return-link:hover span:last-child {
    transform: translate(6px, -6px);
}

:root[data-theme="dark"] .entityfy-case-page {
    --entityfy-ink: #f2f6ff;
    --entityfy-paper: #0b1424;
    --entityfy-header-bg: #09111e;
    --entityfy-topline: #9ba9c0;
    --entityfy-copy-color: #aab7cc;
    --entityfy-surface: #101b2d;
    --entityfy-surface-copy: #aab7cc;
    --entityfy-divider: rgba(255, 255, 255, 0.16);
    --entityfy-highlight: #8fb7ff;
}

@media (max-width: 900px) {
    .entityfy-content-section,
    .entityfy-project-story,
    .entityfy-approach-intro,
    .entityfy-project-gallery-heading {
        grid-template-columns: 1fr;
    }

    .entityfy-project-story-copy {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .entityfy-hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .entityfy-hero-topline {
        margin-bottom: 72px;
    }

    .entityfy-hero-topline > p {
        display: none;
    }

    .entityfy-hero h1 {
        font-size: clamp(3.45rem, 17vw, 5.4rem);
    }

    .entityfy-full-image--hero {
        min-height: 420px;
        aspect-ratio: 4 / 5;
    }

    .entityfy-full-image--hero img {
        object-position: 50% 58%;
    }

    .entityfy-content-section {
        width: calc(100% - 36px);
        gap: 44px;
        padding-right: 0;
        padding-left: 0;
    }

    .entityfy-copy h2,
    .entityfy-project-story h2,
    .entityfy-approach h2 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .entityfy-project-story,
    .entityfy-approach {
        padding-right: 18px;
        padding-left: 18px;
    }

    .entityfy-project-story {
        gap: 54px;
    }

    .entityfy-project-facts > div {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
    }

    .entityfy-approach-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .entityfy-approach-grid h3 {
        margin-top: 28px;
    }

    .entityfy-project-gallery {
        padding-right: 12px;
        padding-left: 12px;
    }

    .entityfy-project-gallery-heading {
        padding-right: 6px;
        padding-left: 6px;
    }

    .entityfy-project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entityfy-return-link {
        padding-right: 18px;
        padding-left: 18px;
    }
}
