@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Homemade+Apple&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #151515;
    --muted: #686868;
    --line: #dedede;
    --space: clamp(24px, 5vw, 84px)
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 16px/1.65 'DM Sans', Arial, sans-serif
}

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

button,
input,
summary {
    font: inherit
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent
}

button {
    color: inherit;
    background: none;
    cursor: pointer
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #111;
    outline-offset: 6px
}

.skip {
    position: fixed;
    top: -100px;
    padding: 12px;
    background: #fff;
    z-index: 50
}

.skip:focus {
    top: 0
}

header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space);
    background: #fffffff5;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid transparent
}

.brand {
    font: 800 32px/1 'Manrope', Arial;
    letter-spacing: -1.8px
}

nav {
    display: flex;
    gap: 36px
}

nav a {
    font-size: 15px;
    position: relative
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #111;
    transition: width .25s
}

nav a:hover:after {
    width: 100%
}

#menu {
    display: none
}

.hero {
    position: relative;
    min-height: calc(100svh - 100px);
    padding: 90px var(--space) 110px;
    display: flex;
    align-items: center;
    overflow: hidden
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 49%
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.9px;
    font-weight: 600;
    line-height: 1.7
}

.hero h1 {
    font: 700 clamp(64px, 7.8vw, 128px)/.98 'Manrope', Arial;
    letter-spacing: -.075em;
    margin: 32px 0
}

.intro {
    font-size: clamp(18px, 1.6vw, 25px);
    line-height: 1.5;
    margin: 24px 0 35px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid #111;
    font-size: 14px;
    transition: background .2s, color .2s
}

.button:hover {
    background: #111;
    color: #fff
}

.hero-art {
    width: 62%;
    position: absolute;
    right: 0;
    top: 10%;
    height: 75%;
    display: flex;
    align-items: center
}

.hero-art>img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    transform: rotate(-7deg);
    transition: transform .9s ease
}

.annotation {
    position: absolute;
    font-size: 13px
}

.annotation:before {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: #aaa;
    transform-origin: right
}

.note {
    left: 27%;
    top: 8%;
    font: italic 20px Georgia;
    transform: rotate(-9deg)
}

.note:before {
    display: none
}

.strategy {
    left: 28%;
    top: 25%
}

.strategy:before {
    top: 25px;
    left: 20px;
    transform: rotate(-65deg)
}

.creativity {
    right: 20%;
    top: 20%
}

.creativity:before {
    top: 40px;
    right: 50px;
    transform: rotate(-40deg)
}

.connection {
    right: 12%;
    bottom: 20%
}

.connection:before {
    right: 90px;
    top: 8px
}

.hero-bottom {
    position: absolute;
    bottom: 32px;
    left: var(--space);
    right: var(--space);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted)
}

.section {
    padding: 90px var(--space);
    border-top: 1px solid var(--line)
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 54px;
    gap: 20px
}

.section-top>span:last-child {
    font-size: 12px;
    letter-spacing: 1.3px
}

.section h2 {
    font: 600 clamp(40px, 5vw, 78px)/1.08 'Manrope', Arial;
    letter-spacing: -.055em;
    margin: 0 0 30px
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw
}

.outline {
    color: white;
    -webkit-text-stroke: 1px #111
}

.lead {
    font-size: 23px;
    line-height: 1.5;
    margin-top: 0
}

.about-copy>p:not(.lead) {
    color: #555
}

.about-facts {
    display: flex;
    gap: 60px;
    margin: 36px 0
}

.about-facts strong {
    display: block;
    font-size: 36px;
    letter-spacing: -1px
}

.about-facts span {
    font-size: 13px;
    color: #666
}

.credentials {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.credentials summary {
    font-size: 14px;
    cursor: pointer
}

.credentials p {
    font-size: 14px;
    color: #666
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 8vw
}

.expertise-intro {
    position: sticky;
    top: 135px;
    align-self: start
}

.expertise-intro>p {
    color: #666
}

.colony-art {
    height: 200px;
    position: relative;
    margin: 20px 0;
    overflow: hidden
}

.colony-art img {
    position: absolute;
    width: 160px;
    mix-blend-mode: multiply
}

.colony-art img:nth-child(1) {
    left: 0;
    top: 50px;
    transform: rotate(-16deg)
}

.colony-art img:nth-child(2) {
    left: 25%;
    top: 0;
    transform: rotate(15deg)
}

.colony-art img:nth-child(3) {
    left: 52%;
    top: 70px;
    transform: scaleX(-1) rotate(-12deg)
}

.small-note {
    font: italic 18px Georgia
}

.services details {
    border-top: 1px solid var(--line)
}

.services details:last-child {
    border-bottom: 1px solid var(--line)
}

.services summary {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    cursor: pointer
}

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

.services summary span {
    font-size: 13px;
    color: #777;
    min-width: 24px
}

.services h3 {
    font-size: 23px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3
}

.services summary b {
    font-size: 25px;
    font-weight: 400;
    margin-left: auto;
    transition: transform .3s
}

.services details[open] b {
    transform: rotate(45deg)
}

.services details p {
    margin: 0 38px 25px 44px;
    color: #626262
}

.work h2 {
    font-size: clamp(44px, 5.5vw, 86px)
}

.work-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 40px
}

.work-toolbar p {
    color: #666;
    margin: 0
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 600px
}

.filters button {
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 9px 17px;
    font-size: 13px
}

.filters button[aria-pressed=true] {
    background: #111;
    color: #fff;
    border-color: #111
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 30px
}

.project-card {
    border: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    display: block
}

.project-card .image-wrap {
    overflow: hidden;
    aspect-ratio: 1.55;
    background: #eee;
    position: relative
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s
}

.project-card:hover img {
    transform: scale(1.045)
}

.project-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    margin: 15px 0 5px
}

.project-card h3 {
    font: 600 22px/1.35 'Manrope';
    letter-spacing: -.6px;
    margin: 0
}

.project-card:nth-child(even) {
    margin-top: 65px
}

.load-row {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-top: 55px
}

.load-row span {
    font-size: 13px;
    color: #777
}

.testimonial {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px 70px
}

.testimonial blockquote {
    margin: 0;
    font: 500 clamp(25px, 3vw, 43px)/1.4 'Manrope';
    letter-spacing: -1px
}

.testimonial>p {
    grid-column: 2;
    color: #666;
    font-size: 14px
}

.testimonial strong {
    color: #111;
    font-weight: 500
}

.contact h2 {
    font-size: clamp(44px, 6vw, 94px);
    max-width: 1100px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .7fr;
    gap: 50px;
    margin-top: 60px
}

.contact h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px
}

.contact p {
    color: #666;
    font-size: 15px
}

.email {
    font: 500 clamp(19px, 2.4vw, 34px) 'Manrope';
    letter-spacing: -1px;
    border-bottom: 1px solid #111
}

.contact-grid>div>a:not(.email):not(.button) {
    border-bottom: 1px solid #aaa;
    font-size: 14px
}

.contact-grid .button {
    margin-top: 20px
}

footer {
    border-top: 1px solid #ddd;
    margin: 0 var(--space);
    padding: 35px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px
}

footer p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 330px
}

footer p:nth-child(2) {
    font: italic 15px Georgia
}

footer span {
    font: 12px 'DM Sans';
    color: #777
}

.crawler {
    position: fixed;
    width: 65px;
    left: 0;
    top: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s
}

.crawler img {
    width: 100%;
    mix-blend-mode: multiply
}

dialog {
    border: 0;
    padding: 0;
    width: min(850px, 92vw);
    max-height: 90svh;
    box-shadow: 0 10px 80px #0003
}

dialog::backdrop {
    background: #0009
}

#close-dialog {
    position: absolute;
    right: 15px;
    top: 15px;
    border: 0;
    background: white;
    padding: 10px 15px;
    z-index: 1
}

#detail-image {
    width: 100%;
    max-height: 52svh;
    object-fit: contain;
    background: #f5f5f5;
    display: block
}

.dialog-copy {
    padding: 32px
}

.dialog-copy h2 {
    font: 600 30px/1.2 'Manrope';
    letter-spacing: -1px
}

.dialog-copy>p {
    color: #555
}

.dialog-copy a[hidden] {
    display: none
}

@media(min-width:1600px) {
    body {
        max-width: 1900px;
        margin: auto
    }
}

@media(max-width:900px) {
    header {
        height: 80px
    }

    nav {
        gap: 20px
    }

    .hero {
        min-height: 800px;
        padding-top: 40px;
        align-items: flex-start
    }

    .hero-copy {
        width: 100%
    }

    .hero h1 {
        font-size: 80px
    }

    .hero-art {
        width: 75%;
        top: 39%;
        height: 50%;
        right: 0
    }

    .hero-bottom>span {
        display: none
    }

    .hero-bottom {
        justify-content: flex-start
    }

    .about-grid,
    .expertise-grid {
        gap: 40px
    }

    .services h3 {
        font-size: 19px
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr
    }

    .contact-grid>div:first-child {
        grid-column: 1/-1
    }

    .work-toolbar {
        display: block
    }

    .filters {
        justify-content: flex-start;
        margin-top: 24px
    }

    .expertise-intro {
        position: static
    }

    .colony-art img {
        width: 125px
    }

    footer {
        flex-wrap: wrap
    }

    .section {
        padding-top: 65px;
        padding-bottom: 65px
    }
}

@media(max-width:600px) {
    header {
        height: 76px
    }

    .brand {
        font-size: 27px
    }

    #menu {
        display: block;
        border: 1px solid #ccc;
        font-size: 13px;
        padding: 6px 12px
    }

    nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: white;
        padding: 25px;
        box-shadow: 0 8px 10px #0001;
        flex-direction: column
    }

    nav.open {
        display: flex
    }

    .hero {
        min-height: 780px;
        padding-top: 30px
    }

    .hero h1 {
        font-size: clamp(61px, 14vw, 82px)
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px
    }

    .hero-art {
        width: 108%;
        top: 44%;
        height: 44%;
        right: -8%
    }

    .annotation {
        font-size: 11px
    }

    .note {
        font-size: 17px;
        top: 0
    }

    .hero-copy .eyebrow {
        font-size: 10px
    }

    .hero-bottom {
        bottom: 25px
    }

    .about-grid,
    .expertise-grid {
        grid-template-columns: 1fr
    }

    .section-top {
        margin-bottom: 35px
    }

    .section-top>span:last-child {
        font-size: 10px;
        text-align: right
    }

    .lead {
        font-size: 21px
    }

    .about-facts {
        gap: 35px
    }

    .expertise-intro>p {
        margin-bottom: 0
    }

    .colony-art {
        height: 150px
    }

    .small-note {
        display: none
    }

    .services summary {
        padding: 21px 0
    }

    .services h3 {
        font-size: 21px
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .project-card:nth-child(even) {
        margin-top: 0
    }

    .project-card h3 {
        font-size: 20px
    }

    .testimonial {
        display: block
    }

    .testimonial blockquote {
        margin-top: 30px
    }

    .testimonial>p {
        margin-top: 25px
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .contact-grid>div:first-child {
        grid-column: auto
    }

    .contact h2 {
        font-size: 43px
    }

    .email {
        font-size: 24px
    }

    .load-row {
        flex-direction: column;
        gap: 10px
    }

    footer {
        display: block
    }

    footer p {
        margin-top: 25px
    }

    .crawler {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }

    .crawler {
        display: none
    }
}

.brand img {
    display: block;
    width: clamp(200px, 22vw, 310px);
    height: auto
}

.about-animation {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 15px auto 0
}

.hero-art>img {
    transform: none !important
}

.hero-art .note {
    top: 5%
}

.hero-art .strategy {
    left: 25%;
    top: 57%;
    transform: translateY(-50%)
}

.hero-art .strategy:before {
    left: calc(100% + 12px);
    top: 50%;
    width: clamp(24px, 4vw, 60px);
    transform: none
}

.hero-art .creativity {
    right: 18%;
    top: 36%
}

.hero-art .connection {
    right: 13%;
    bottom: 22%
}

@media(max-width:600px) {
    .brand img {
        width: 220px
    }

    .about-animation {
        width: min(100%, 320px)
    }

    .hero-art .strategy {
        top: 57%
    }

    .hero-art .creativity {
        right: 11%;
        top: 39%
    }
}

/* Stack the homepage on portrait monitors and narrow screens. */
@media (orientation: portrait),
(max-width: 900px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        min-height: calc(100svh - 100px);
        padding: 35px var(--space) 40px;
        overflow: hidden
    }

    .hero-art {
        order: 0;
        position: relative;
        inset: auto;
        width: min(100%, 950px);
        height: auto;
        aspect-ratio: 1.6;
        flex: none;
        display: block;
        overflow: hidden
    }

    .hero-art>img {
        position: absolute;
        width: 165%;
        height: auto;
        max-width: none;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        mix-blend-mode: multiply
    }

    .hero-art .annotation {
        z-index: 1;
        font-size: clamp(13px, 1.6vw, 18px)
    }

    .hero-art .note {
        left: 16%;
        top: 8%;
        font-size: clamp(19px, 2.6vw, 30px)
    }

    .hero-art .strategy {
        left: 4%;
        top: 62%
    }

    .hero-art .strategy:before {
        left: calc(100% + 10px);
        top: 50%;
        width: clamp(20px, 4vw, 45px);
        transform: none
    }

    .hero-art .creativity {
        right: 10%;
        top: 23%
    }

    .hero-art .creativity:before {
        right: 50px;
        top: 40px;
        width: clamp(25px, 5vw, 60px);
        transform: rotate(-45deg)
    }

    .hero-art .connection {
        right: 7%;
        bottom: 13%
    }

    .hero-art .connection:before {
        right: 100%;
        top: 10px;
        margin-right: 12px;
        width: clamp(25px, 5vw, 60px)
    }

    .hero-copy {
        order: 1;
        width: 100%;
        max-width: 800px;
        text-align: center
    }

    .hero-copy .eyebrow {
        font-size: clamp(10px, 1.3vw, 13px);
        margin: 0 0 22px
    }

    .hero h1 {
        font-size: clamp(60px, 8vw, 110px);
        margin: 0 0 25px;
        line-height: 1.02
    }

    .hero .intro {
        font-size: clamp(18px, 2vw, 25px);
        margin: 0 0 28px
    }

    .hero-bottom {
        order: 2;
        position: static;
        inset: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
        margin-top: 25px
    }

    .hero-bottom>span {
        display: block
    }
}

@media (max-width:600px) {
    .hero {
        min-height: calc(100svh - 76px);
        padding-top: 20px;
        gap: 20px
    }

    .hero-art {
        width: calc(100% + 20px);
        aspect-ratio: 1.45
    }

    .hero-art .note {
        left: 10%;
        top: 7%
    }

    .hero-art .strategy {
        left: 2%;
        top: 59%
    }

    .hero-art .creativity {
        right: 5%;
        top: 22%
    }

    .hero-art .connection {
        right: 3%;
        bottom: 12%
    }

    .hero h1 {
        font-size: clamp(50px, 12.5vw, 75px)
    }

    .hero-bottom {
        margin-top: 10px;
        font-size: 12px
    }
}

/* Red brings energy; grey gives the monochrome illustrations room. */
:root {
    --red: #c52232;
    --red-dark: #a91c2a;
    --soft: #f4f4f4;
    --line: #d8d8d8
}

::selection {
    background: #c52232;
    color: #fff
}

header {
    border-top: 3px solid var(--red)
}

nav a:after {
    background: var(--red);
    height: 2px
}

nav a:hover,
nav a:focus-visible {
    color: var(--red)
}

.accent {
    color: var(--red)
}

.button {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline-color: var(--red)
}

.section-top>.eyebrow,
.testimonial>.eyebrow {
    color: var(--red)
}

.hero-copy .eyebrow {
    color: #555
}

.hero-art .note {
    color: var(--red)
}

.hero-art .annotation:before {
    background: #a8a8a8
}

.hero-bottom a {
    color: var(--red)
}

.about-facts strong {
    color: var(--red)
}

.credentials summary::marker {
    color: var(--red)
}

.expertise {
    background: var(--soft)
}

.services summary span,
.services summary b {
    color: var(--red)
}

.services summary:hover h3 {
    color: var(--red)
}

.services details[open] {
    border-top-color: var(--red)
}

.filters button {
    border-color: #c9c9c9;
    background: #fff
}

.filters button[aria-pressed=true] {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.filters button:hover:not([aria-pressed=true]) {
    border-color: var(--red);
    color: var(--red)
}

.project-card h3 {
    transition: color .2s
}

.project-card:hover h3,
.project-card:focus-visible h3 {
    color: var(--red)
}

.load-row .button {
    background: #fff;
    color: var(--red)
}

.load-row .button:hover {
    background: var(--red);
    color: #fff
}

.testimonial {
    background: var(--soft)
}

.testimonial blockquote {
    border-left: 3px solid var(--red);
    padding-left: 30px
}

.contact {
    background: #f9f9f9
}

.contact .email {
    color: var(--red);
    border-bottom-color: var(--red)
}

.contact-grid a:not(.button):hover {
    color: var(--red)
}

#close-dialog {
    color: var(--red)
}

@media(max-width:600px) {
    .testimonial blockquote {
        padding-left: 20px
    }
}

/* Full red panels for Expertise and Client Perspective. */
.expertise,
.testimonial {
    background: var(--red);
    color: #fff;
    border-top-color: #ffffff80
}

.expertise .section-top>.eyebrow,
.testimonial>.eyebrow {
    color: #fff
}

.expertise-intro>p,
.expertise .small-note,
.services details p,
.services summary span,
.services summary b,
.testimonial>p,
.testimonial strong {
    color: #fff
}

.expertise .services details,
.expertise .services details:last-child,
.expertise .services details[open] {
    border-color: #ffffffb3
}

.expertise .services summary:hover h3 {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px
}

.expertise .services summary:focus-visible {
    outline-color: #fff
}

.testimonial blockquote {
    border-left-color: #fff
}

/* A looping ant follows the direction of scrolling along a dashed trail. */
.ant-trail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity .3s;
    overflow: visible
}

.ant-trail path {
    fill: none;
    stroke: #858585;
    stroke-width: 1;
    stroke-dasharray: 2 7;
    stroke-linecap: round;
    opacity: .65
}

.crawler {
    width: 72px;
    height: 72px;
    mix-blend-mode: multiply;
    transform-origin: center
}

.crawler-gait {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: rotate(var(--ant-heading, 90deg));
    transition: transform .28s ease
}

.crawler img {
    position: absolute;
    width: 300%;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal
}

@media(max-width:600px), (prefers-reduced-motion:reduce) {

    .ant-trail,
    .crawler {
        display: none
    }
}

/* Reverse the walk in place, keeping the GIF's lateral offset consistent. */
.crawler {
    width: 60px;
    height: 60px
}

.crawler-gait {
    transform: rotate(90deg) scaleX(var(--ant-facing, 1));
    transition: none
}

/* Nine original client stories, one at a time in an endless loop. */
.testimonial {
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr);
    gap: 60px;
    align-items: center
}

.testimonial-intro .eyebrow {
    color: #fff
}

.testimonial-intro h2 {
    font-size: clamp(38px, 4vw, 65px);
    margin: 25px 0 10px
}

.teamwork-ants {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: normal
}

.testimonial-carousel {
    min-width: 0
}

.testimonial-window {
    overflow: hidden;
    width: 100%
}

.testimonial-track {
    display: flex;
    width: 100%;
    transition: transform .65s cubic-bezier(.22, .61, .36, 1);
    will-change: transform
}

.testimonial-track.instant {
    transition: none
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 2px 3px 10px 0
}

.testimonial-slide blockquote {
    font: 500 clamp(20px, 2vw, 28px)/1.6 'Manrope', Arial;
    letter-spacing: -.5px;
    padding-left: 25px;
    border-left: 2px solid #fff;
    margin: 0
}

.testimonial-slide>p {
    color: #fff;
    margin: 28px 0 0 27px;
    font-size: 14px;
    line-height: 1.6
}

.testimonial-slide strong {
    color: #fff;
    font-size: 17px;
    font-weight: 700
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #ffffffa0;
    padding-top: 20px;
    margin-top: 25px
}

.testimonial-actions {
    display: flex;
    gap: 8px
}

.testimonial-actions button {
    border: 1px solid #ffffff90;
    color: #fff;
    padding: 7px 12px;
    font-size: 13px
}

.testimonial-actions button:hover {
    background: #fff;
    color: var(--red)
}

.testimonial-controls>span {
    font-size: 14px;
    color: #fff
}

.testimonial-dots {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 16px
}

.testimonial-dots button {
    width: 26px;
    height: 26px;
    padding: 8px;
    border: 0;
    position: relative
}

.testimonial-dots button:before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #ffffff60
}

.testimonial-dots button[aria-pressed=true]:before {
    background: #fff
}

.testimonial-carousel button:focus-visible {
    outline-color: #fff
}

@media(max-width:900px) {
    header nav {
        gap: 24px
    }

    .testimonial {
        gap: 32px;
        grid-template-columns: minmax(180px, .65fr) minmax(0, 1.3fr)
    }
}

@media(max-width:600px) {
    .testimonial {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px
    }

    .testimonial-intro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 0 10px
    }

    .testimonial-intro .eyebrow {
        grid-column: 1/-1
    }

    .testimonial-intro h2 {
        font-size: 38px
    }

    .teamwork-ants {
        margin-top: 20px
    }

    .testimonial-slide blockquote {
        font-size: 19px;
        padding-left: 20px
    }

    .testimonial-slide>p {
        margin-left: 22px
    }

    .testimonial-actions button {
        padding: 7px 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    .testimonial-track {
        transition: none
    }
}

/* Steer independently from the gait so reversing keeps the same alignment. */
.crawler-steering {
    width: 100%;
    height: 100%;
    transform: rotate(var(--ant-tangent, 90deg));
    transform-origin: center;
    transition: transform .1s linear
}

.crawler-gait {
    transform: scaleX(var(--ant-facing, 1));
    transition: none
}

/* A still sketch of many tiny ants carrying a giant durian. */
.durian-colony {
    position: relative;
    width: 100%;
    margin: 28px 0 12px;
    overflow: hidden
}

.durian-team {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: normal
}

@media(max-width:600px) {
    .durian-colony {
        max-width: 520px;
        margin: 20px auto
    }
}

/* Let the heading set the illustration width, keeping both left aligned. */
.testimonial-heading-art {
    display: grid;
    grid-template-columns: max-content;
    width: fit-content;
    max-width: 100%
}

.testimonial-heading-art .teamwork-ants {
    width: 0;
    min-width: 100%;
    max-width: 100%;
    height: auto
}

@media(max-width:600px) {
    .testimonial-intro {
        display: block
    }
}

/* The cropped walking GIF fits the ant wrapper without enlarging its margins. */
.crawler img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

/* Small cursor tilt; preserve the ant's original desktop and portrait anchors. */
.hero-art {
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

.hero-art>img {
    transform-origin: 50% 50%;
    transform: rotateX(var(--ant-tilt-x, 0deg)) rotateY(var(--ant-tilt-y, 0deg)) !important;
}

.hero-art .annotation {
    translate: var(--label-offset-x, 0px) var(--label-offset-y, 0px);
}

@media (orientation: portrait),
(max-width: 900px) {
    .hero-art>img {
        transform: translate(-50%, -50%) rotateX(var(--ant-tilt-x, 0deg)) rotateY(var(--ant-tilt-y, 0deg)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art .annotation {
        translate: none;
    }
}

/* Handwritten cover note, using Google's Homemade Apple font. */
.hero-art .note {
    font-family: 'Homemade Apple', cursive;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: normal;
}

/* A slightly larger ant on the desktop landscape cover. */
@media (orientation: landscape) and (min-width: 901px) {
    .hero-art>img {
        scale: 1.15;
    }
}

/* Three-dimensional cover ant, with original GIF retained while loading. */
.hero-art .hero-ant-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-art.ant-3d-ready>img {
    opacity: 0;
}

.hero-art.ant-3d-ready .hero-ant-3d {
    opacity: 1;
}

.hero-art .annotation {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .hero-art .hero-ant-3d {
        transition: none;
    }
}

/* WhatsApp contact button */
.contact .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    background: #128c4a;
    border-color: #128c4a;
    color: #fff;
}

.contact .whatsapp-button:hover {
    background: #0e713c;
    border-color: #0e713c;
    color: #fff;
}

.whatsapp-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Keep monitoring reports fully visible in the project gallery. */
.monitoring-card .image-wrap {
    background: #f4f4f4;
}

.monitoring-card .image-wrap img {
    object-fit: contain;
    padding: 12px;
}

.monitoring-card:hover img {
    transform: none;
}

/* Interactive service deck */
.service-deck {
    min-width: 0;
    align-self: center;
    text-align: center;
}

.deck-instruction {
    font-size: 15px;
    margin: 0 0 12px;
    color: #fff;
}

.deck-stage {
    position: relative;
    height: 390px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.deck-cards {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.service-card {
    position: absolute;
    top: 34px;
    left: calc(50% - 105px);
    width: 210px;
    height: 300px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 14px;
    transform-origin: 50% 90%;
    transition: transform .55s cubic-bezier(.22, .8, .25, 1), opacity .45s;
    -webkit-user-drag: none;
}

.service-card[hidden] {
    display: none;
}

.service-card[data-offset="0"] {
    z-index: 5;
    transform: translateY(0) scale(1);
}

.service-card[data-offset="-1"] {
    z-index: 4;
    transform: translate(-145px, 24px) rotate(-12deg) scale(.88);
}

.service-card[data-offset="1"] {
    z-index: 4;
    transform: translate(145px, 24px) rotate(12deg) scale(.88);
}

.service-card[data-offset="-2"] {
    z-index: 3;
    transform: translate(-250px, 58px) rotate(-22deg) scale(.76);
    opacity: .75;
}

.service-card[data-offset="2"] {
    z-index: 3;
    transform: translate(250px, 58px) rotate(22deg) scale(.76);
    opacity: .75;
}

.card-flip {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.22, .8, .25, 1);
}

.card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: #fffdf8;
    color: #181818;
    border: 1px solid #e8e2d9;
    box-shadow: 0 14px 26px #4b071a30;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 30px 22px;
}

.card-front:after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid #d6cfc5;
    border-radius: 8px;
    pointer-events: none;
}

.card-number {
    position: absolute;
    top: 17px;
    left: 19px;
    font: 600 23px/1 Georgia, serif;
    color: var(--red);
}

.card-number-bottom {
    top: auto;
    left: auto;
    right: 19px;
    bottom: 17px;
    transform: rotate(180deg);
}

.service-icon {
    width: 94px;
    height: 94px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.card-name {
    margin-top: 25px;
    font: 600 17px/1.3 'Manrope', sans-serif;
    max-width: 150px;
}

.card-back {
    transform: rotateY(180deg);
    background: #fff;
}

.card-back-title {
    font: 600 25px/1.16 'Manrope', sans-serif;
    letter-spacing: -.8px;
}

.card-hook {
    display: block;
    margin-top: 17px;
    font: 14px/1.5 'DM Sans', sans-serif;
    color: #666;
}

.card-open {
    position: absolute;
    bottom: 25px;
    font: 12px/1.4 'DM Sans', sans-serif;
    color: var(--red);
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover .card-flip {
        transform: translateY(-8px) rotateY(180deg);
    }
}

.service-card:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
}

.deck-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.deck-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff80;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    flex: 0 0 auto;
}

.deck-controls button:hover {
    background: #fff;
    color: var(--red);
}

.deck-count {
    width: 240px;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
}

.deck-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
}

.deck-dots button {
    width: 28px;
    height: 28px;
    border: 0;
    position: relative;
}

.deck-dots button:before {
    content: '';
    position: absolute;
    inset: 10px;
    background: #ffffff60;
    border-radius: 50%;
}

.deck-dots button[aria-pressed=true]:before {
    background: #fff;
}

.deck-hint {
    color: #ffffffb5;
    font-size: 12px;
    margin: 8px 0 0;
}

.service-dialog {
    width: min(560px, 92vw);
    padding: 50px 42px 42px;
    border-radius: 18px;
    background: #fffdf8;
    color: #181818;
}

.service-dialog::backdrop {
    background: #24010ed0;
    backdrop-filter: blur(5px);
}

.service-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: 0;
    font-size: 13px;
    padding: 8px;
}

.service-modal-icon .service-icon {
    width: 70px;
    height: 70px;
    color: var(--red);
}

.service-modal-number {
    color: var(--red);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.service-dialog h2 {
    margin: 12px 0;
    font: 600 36px/1.15 'Manrope', sans-serif;
    letter-spacing: -1px;
}

.service-modal-hook {
    font-size: 18px;
    margin-bottom: 22px;
}

.service-modal-description {
    color: #555;
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 1100px) and (min-width: 601px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-intro {
        position: static;
    }
}

@media (max-width: 600px) {
    .deck-stage {
        height: 355px;
        margin-inline: -15px;
    }

    .service-card {
        left: calc(50% - 95px);
        width: 190px;
        height: 275px;
    }

    .service-card[data-offset="-1"] {
        transform: translate(-124px, 25px) rotate(-12deg) scale(.85);
    }

    .service-card[data-offset="1"] {
        transform: translate(124px, 25px) rotate(12deg) scale(.85);
    }

    .deck-count {
        width: 175px;
    }

    .deck-controls {
        gap: 8px;
    }

    .service-dialog {
        padding: 50px 25px 28px;
    }

    .service-dialog h2 {
        font-size: 30px;
    }
}

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

    .service-card,
    .card-flip {
        transition: none;
    }
}

/* Centred section introduction and playing-card heart suits. */
.expertise-intro {
    text-align: center;
}

.expertise-intro h2 {
    margin-left: auto;
    margin-right: auto;
}

.expertise-intro>p {
    margin-left: auto;
    margin-right: auto;
}

.card-number {
    font-family: Georgia, serif;
    font-size: 27px;
}

/* Full-width introduction and one-to-eight heart suits. */
.expertise-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
}

.expertise-intro {
    position: static;
    width: 100%;
}

.expertise-intro h2 {
    max-width: none;
    font-size: clamp(34px, 4.7vw, 88px);
}

.expertise-intro>p {
    max-width: none;
}

.service-deck {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.card-hearts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px 5px;
    font-size: 16px;
    line-height: 1;
}

@media (min-width: 760px) {

    .expertise-intro h2,
    .expertise-intro>p {
        white-space: nowrap;
    }
}

/* Traditional playing-card pip positions. */
.card-front .card-pips {
    position: absolute;
    left: 30px;
    right: 30px;
    top: 35px;
    height: 174px;
    color: var(--red);
}

.heart-pip {
    position: absolute;
    font: 30px/1 Georgia, serif;
    transform: translate(-50%, -50%);
}

.heart-pip.inverted {
    transform: translate(-50%, -50%) rotate(180deg);
}

.card-front .service-icon {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 24px;
    height: 24px;
    color: #555;
}

.card-front .card-name {
    position: absolute;
    bottom: 29px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: none;
}

@media (max-width: 600px) {
    .card-front .card-pips {
        left: 28px;
        right: 28px;
        top: 32px;
        height: 154px;
    }

    .heart-pip {
        font-size: 27px;
    }

    .card-front .card-name {
        bottom: 25px;
    }
}

/* Small corner hearts with large central service artwork. */
.card-front .card-pips {
    left: 17px;
    right: auto;
    top: 17px;
    width: 34px;
    height: 45px;
}

.card-front .heart-pip {
    font-size: 12px;
}

.card-front .service-icon {
    left: calc(50% - 48px);
    top: 87px;
    width: 96px;
    height: 96px;
    color: #181818;
}

@media (max-width: 600px) {
    .card-front .card-pips {
        left: 16px;
        right: auto;
        top: 16px;
        width: 32px;
        height: 43px;
    }

    .card-front .heart-pip {
        font-size: 11px;
    }

    .card-front .service-icon {
        left: calc(50% - 44px);
        top: 78px;
        width: 88px;
        height: 88px;
    }
}

/* Three-second service carousel progress. */
.deck-progress {
    height: 2px;
    width: min(320px, 75%);
    margin: 7px auto 23px;
    background: #ffffff35;
    overflow: hidden;
    border-radius: 2px;
}

.deck-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.deck-autoplay {
    color: #fff;
    font: inherit;
    font-size: 12px;
    border: 1px solid #ffffff70;
    border-radius: 20px;
    padding: 6px 15px;
    margin: 8px auto;
}

.deck-autoplay:hover {
    background: #fff;
    color: var(--red);
}

/* Keep each phrase together on mobile. */
@media (max-width: 759px) {
    .expertise-intro h2 {
        font-size: clamp(28px, 7.5vw, 48px);
        line-height: 1.08;
    }

    .expertise-title-line {
        display: block;
        white-space: nowrap;
    }
}

/* Compact heart spacing on the two- and four-heart cards. */
.service-card[data-service="1"] .card-front .card-pips,
.service-card[data-service="3"] .card-front .card-pips {
    width: 26px;
    height: 28px;
}

/* Section 03: image-first bento gallery. */
#projects.projects {
    display: block;
}

.bento-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "a a b" "a a c" "d e f";
    gap: 14px;
    height: clamp(540px, 56vw, 850px);
    margin-bottom: 14px;
    transition: grid-template-columns .55s cubic-bezier(.2, .75, .25, 1), grid-template-rows .55s cubic-bezier(.2, .75, .25, 1);
}

.bento-tile[data-slot="0"] {
    grid-area: a;
}

.bento-tile[data-slot="1"] {
    grid-area: b;
}

.bento-tile[data-slot="2"] {
    grid-area: c;
}

.bento-tile[data-slot="3"] {
    grid-area: d;
}

.bento-tile[data-slot="4"] {
    grid-area: e;
}

.bento-tile[data-slot="5"] {
    grid-area: f;
}

#projects .bento-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ededed;
    text-align: left;
    isolation: isolate;
}

#projects .bento-tile .image-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
}

#projects .bento-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1);
}

#projects .monitoring-card img {
    object-fit: contain;
    padding: 12px;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(20px, 2.6vw, 40px);
    background: linear-gradient(180deg, rgba(197, 34, 50, .2), rgba(155, 16, 32, .78));
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

#projects .bento-tile h3 {
    color: #fff;
    font-size: clamp(20px, 2vw, 34px);
    line-height: 1.15;
    margin: 0;
    max-width: 95%;
    transform: translateY(14px);
    transition: transform .4s ease;
    text-wrap: balance;
}

#projects .bento-tile:hover .bento-overlay,
#projects .bento-tile:focus-visible .bento-overlay {
    opacity: 1;
}

#projects .bento-tile:hover h3,
#projects .bento-tile:focus-visible h3 {
    transform: translateY(0);
    color: #fff;
}

#projects .bento-tile:hover img,
#projects .bento-tile:focus-visible img {
    transform: scale(1.045);
}

#projects .bento-tile:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.bento-group[data-active="0"] {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(0, .84fr);
    grid-template-rows: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(0, .84fr);
}

.bento-group[data-active="1"],
.bento-group[data-active="2"],
.bento-group[data-active="5"] {
    grid-template-columns: minmax(0, .91fr) minmax(0, .91fr) minmax(0, 1.18fr);
}

.bento-group[data-active="3"] {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .91fr) minmax(0, .91fr);
}

.bento-group[data-active="4"] {
    grid-template-columns: minmax(0, .91fr) minmax(0, 1.18fr) minmax(0, .91fr);
}

.bento-group[data-active="1"] {
    grid-template-rows: minmax(0, 1.16fr) minmax(0, .92fr) minmax(0, .92fr);
}

.bento-group[data-active="2"] {
    grid-template-rows: minmax(0, .92fr) minmax(0, 1.16fr) minmax(0, .92fr);
}

.bento-group[data-active="3"],
.bento-group[data-active="4"],
.bento-group[data-active="5"] {
    grid-template-rows: minmax(0, .92fr) minmax(0, .92fr) minmax(0, 1.16fr);
}

.bento-group[data-count="1"] {
    grid-template-areas: "a a a";
    grid-template-rows: 1fr;
    height: 450px;
}

.bento-group[data-count="2"] {
    grid-template-areas: "a a b";
    grid-template-rows: 1fr;
    height: 450px;
}

.bento-group[data-count="3"] {
    grid-template-areas: "a a b" "a a c";
    grid-template-rows: 1fr 1fr;
    height: 520px;
}

.bento-group[data-count="4"] {
    grid-template-areas: "a a b" "a a c" "d d d";
}

.bento-group[data-count="5"] {
    grid-template-areas: "a a b" "a a c" "d e e";
}

@media (max-width: 600px) {

    .bento-group,
    .bento-group[data-active],
    .bento-group[data-count] {
        height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: none;
        grid-auto-rows: 200px;
        gap: 10px;
    }

    #projects .bento-tile[data-slot] {
        grid-area: auto;
        border-radius: 12px;
    }

    #projects .bento-tile[data-slot="0"],
    #projects .bento-tile[data-slot="5"] {
        grid-column: 1 / -1;
    }

    #projects .bento-tile h3 {
        font-size: 18px;
    }

    .bento-overlay {
        padding: 16px;
    }
}

@media (hover: none) {
    .bento-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(155, 16, 32, .72));
    }

    #projects .bento-tile h3 {
        transform: none;
    }
}

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

    .bento-group,
    #projects .bento-tile img,
    .bento-overlay,
    #projects .bento-tile h3 {
        transition: none;
    }
}

/* Project detail panel opens from, and returns to, its bento tile. */
#project-dialog {
    transform-origin: top left;
    border-radius: 18px;
}

#project-dialog::backdrop {
    animation: project-backdrop-in .4s ease both;
}

#project-dialog.project-returning::backdrop {
    animation: project-backdrop-out .36s ease both;
}

@keyframes project-backdrop-in {
    from {
        background: #0000;
    }

    to {
        background: #0009;
    }
}

@keyframes project-backdrop-out {
    from {
        background: #0009;
    }

    to {
        background: #0000;
    }
}

@media (prefers-reduced-motion: reduce) {
    #project-dialog::backdrop {
        animation: none;
    }
}

/* Embedded project videos share the popup's image area. */
#detail-image[hidden],
.project-video-player[hidden] {
    display: none;
}

.project-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 52svh;
    background: #000;
}

.project-video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#detail-video {
    border: 0;
    cursor: pointer;
}

#detail-video[hidden] {
    display: none;
}

/* A playful colony surprise in Client Perspective. */
.colony-surprise {
    position: relative;
    display: block;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    width: 100%;
    cursor: pointer;
    text-align: inherit
}

.colony-surprise:focus-visible {
    outline: 2px solid white;
    outline-offset: 6px;
    border-radius: 8px
}

.colony-warning {
    position: relative;
    display: block;
    order: 2;
    align-self: center;
    margin: 12px 0 4px;
    z-index: 1;
    font-family: "Homemade Apple", cursive;
    font-size: 18px;
    transform: rotate(-8deg)
}

.colony-warning span {
    display: inline-block;
    font-family: serif;
    font-size: 30px;
    animation: colony-sign 2.4s ease-in-out infinite
}

.colony-surprise.is-running .teamwork-ants {
    animation: colony-shake .45s ease-in-out
}

.colony-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden
}

.colony-runner {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(65px, 8vw, 125px);
    height: auto;
    will-change: transform
}

@keyframes colony-sign {
    50% {
        transform: translate(3px, 4px) rotate(5deg)
    }
}

@keyframes colony-shake {

    25%,
    75% {
        transform: rotate(-2deg)
    }

    50% {
        transform: rotate(2deg)
    }
}

@media(prefers-reduced-motion:reduce) {
    .colony-warning span {
        animation: none
    }

    .colony-surprise.is-running .teamwork-ants {
        animation: none
    }
}

.colony-surprise {
    display: flex;
    flex-direction: column;
    align-items: stretch
}

.colony-surprise .teamwork-ants {
    order: 1
}

/* Client quotes as white speech bubbles with an aligned author pointer. */
.testimonial-slide {
    padding: 2px 4px 10px
}

.testimonial-slide blockquote {
    position: relative;
    background: #fff;
    color: #151515;
    border: 0;
    border-radius: 22px;
    padding: clamp(24px, 3vw, 40px);
    margin: 0;
    letter-spacing: -.3px
}

.testimonial-slide blockquote::after {
    content: "";
    position: absolute;
    left: 36px;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid #fff
}

.testimonial-slide>p {
    margin: 30px 0 0 36px;
    color: #fff
}

.testimonial-controls {
    border: 0;
    padding: 0;
    margin-top: 24px
}

.testimonial-progress {
    height: 3px;
    background: #ffffff40;
    flex: 1;
    overflow: hidden;
    border-radius: 3px
}

.testimonial-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left
}

@keyframes testimonial-fill {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@media(max-width:600px) {
    .testimonial-slide blockquote {
        padding: 24px;
        font-size: 19px
    }

    .testimonial-slide blockquote::after {
        left: 24px
    }

    .testimonial-slide>p {
        margin-left: 24px
    }
}

@media(prefers-reduced-motion:reduce) {
    .testimonial-progress span {
        animation: none !important
    }
}

/* Thin chevrons beside the quote, with generous touch targets. */
.testimonial-stage {
    position: relative;
    padding: 0 40px
}

.testimonial-side {
    position: absolute;
    top: calc(50% - 30px);
    width: 36px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 6px;
    background: transparent;
    color: white;
    z-index: 2;
    opacity: .8;
    transition: opacity .2s
}

.testimonial-side-prev {
    left: 0
}

.testimonial-side-next {
    right: 0
}

.testimonial-side svg {
    width: 18px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round
}

.testimonial-side:hover {
    opacity: 1
}

.testimonial-side:focus-visible {
    outline: 2px solid white;
    outline-offset: 0;
    border-radius: 4px
}

@media(max-width:600px) {
    .testimonial-stage {
        padding: 0 28px
    }

    .testimonial-side {
        width: 26px
    }

    .testimonial-side svg {
        width: 14px;
        height: 32px
    }

    .testimonial-slide blockquote {
        padding: 20px
    }
}

/* Small controls attached directly to the speech-bubble edges. */
.testimonial-stage {
    padding: 0 18px
}

.testimonial-slide {
    padding-left: 0;
    padding-right: 0
}

.testimonial-side {
    top: var(--quote-middle, 120px);
    transform: translateY(-50%);
    width: 32px;
    height: 42px;
    background: #fff;
    color: #151515;
    border: 1px solid #15151518;
    border-radius: 9px;
    box-shadow: 0 2px 7px #00000012;
    opacity: 1;
    padding: 8px
}

.testimonial-side-prev {
    left: 2px
}

.testimonial-side-next {
    right: 2px
}

.testimonial-side svg {
    width: 12px;
    height: 24px;
    stroke-width: 1.5
}

.testimonial-side:hover {
    background: #f2f2f2
}

@media(max-width:600px) {
    .testimonial-stage {
        padding: 0 15px
    }

    .testimonial-side {
        width: 28px;
        height: 36px;
        padding: 7px
    }

    .testimonial-side-prev {
        left: 1px
    }

    .testimonial-side-next {
        right: 1px
    }

    .testimonial-side svg {
        width: 10px;
        height: 22px
    }
}

/* Keep adjacent bubbles inset from the viewport clipping boundary. */
.testimonial-slide {
    padding-left: 6px;
    padding-right: 6px
}

.testimonial-window {
    isolation: isolate;
    clip-path: inset(0)
}

.testimonial-side {
    background: var(--red);
    color: #fff;
    border: 0;
    box-shadow: none
}

.testimonial-side:hover {
    background: #b51520;
    color: #fff
}

.testimonial-side-prev {
    left: 8px
}

.testimonial-side-next {
    right: 8px
}

@media(max-width:600px) {
    .testimonial-side-prev {
        left: 7px
    }

    .testimonial-side-next {
        right: 7px
    }
}

/* Give the attached controls definition against the red section. */
.testimonial-side {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .18)
}

.testimonial-side svg {
    stroke-width: 2.3
}

.contact .button {
    gap: 10px
}

.contact-button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #fff
}

.testimonial-window {
    touch-action: pan-y pinch-zoom
}

.credentials summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    list-style: none
}

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

.credentials summary::after {
    content: '+';
    font-size: 22px;
    line-height: 1
}

.credentials[open] summary::after {
    content: '−'
}

.credentials summary:hover {
    background: var(--red-dark)
}

.credentials summary:focus-visible {
    outline-color: var(--red)
}

.section.colour-reveal {
    position: relative;
    isolation: isolate;
    background: #fff;
    transition: color .7s ease
}

.section.colour-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
    pointer-events: none
}

.section.colour-reveal.is-filled::before {
    transform: scaleY(1)
}

.section.colour-reveal:not(.is-filled),
.section.colour-reveal:not(.is-filled) .eyebrow,
.section.colour-reveal:not(.is-filled) .expertise-intro>p,
.section.colour-reveal:not(.is-filled) .deck-instruction,
.section.colour-reveal:not(.is-filled) .deck-hint,
.section.colour-reveal:not(.is-filled) .deck-count,
.section.colour-reveal:not(.is-filled) .testimonial-slide>p,
.section.colour-reveal:not(.is-filled) .testimonial-slide strong,
.section.colour-reveal:not(.is-filled) #testimonial-count {
    color: var(--ink)
}

.section.colour-reveal:not(.is-filled) .testimonial-progress {
    background: #ddd
}

.section.colour-reveal:not(.is-filled) .testimonial-progress span {
    background: var(--red)
}

@media(prefers-reduced-motion:reduce) {
    .section.colour-reveal::before {
        transition: none
    }

    .section.colour-reveal {
        transition: none
    }
}

.credentials summary {
    display: flex;
    width: 100%;
    justify-content: space-between
}

.credentials summary::after {
    flex-shrink: 0
}

.colour-reveal-midpoint {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none
}

/* A moving wave surface leads the reversible red fill. */
.section.colour-reveal {
    overflow: hidden
}

.section.colour-reveal::before {
    display: none
}

.section-water {
    position: absolute;
    inset: 100% 0 auto;
    height: 100%;
    background: var(--red);
    z-index: -1;
    pointer-events: none;
    transform: translateY(45px);
    transition: transform 1.6s cubic-bezier(.22, .61, .36, 1)
}

.section-water::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -39px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='40' viewBox='0 0 600 40'%3E%3Cpath fill='%23c52232' d='M0 20C100 0 200 0 300 20S500 40 600 20V40H0Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 40px;
    animation: section-ripple 3s linear infinite;
    animation-play-state: paused
}

.section.colour-reveal.is-filled .section-water {
    transform: translateY(-100%)
}

.section.colour-reveal.is-filled .section-water::before {
    animation-play-state: running
}

@keyframes section-ripple {
    to {
        background-position-x: 600px
    }
}

@media(max-width:1100px) and (min-width:601px) {
    header nav {
        gap: 16px
    }

    header nav a {
        font-size: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    .section-water {
        transition: none
    }

    .section-water::before {
        animation: none
    }
}

/* Two parallel, endlessly moving client ribbons between Work and Testimonials. */
.client-ribbons {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 40px 0 48px;
    margin-bottom: -48px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.work {
    padding-bottom: 28px
}

.client-ribbons+.testimonial {
    border-top: 0
}

.client-ribbon {
    background: #fff;
    box-shadow: 0 6px 18px #00000016;
    transform: rotate(-3deg);
    width: calc(100% + 100px);
    margin-left: -50px;
    padding: 17px 0
}

.client-marquee {
    display: flex;
    width: max-content;
    animation: client-drift 100s linear infinite;
    will-change: transform
}

.client-ribbon-1 .client-marquee {
    animation-direction: reverse;
    animation-duration: 110s
}

.client-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 28px;
    padding-right: 28px
}

.client-group span {
    white-space: nowrap;
    color: #151515;
    font: 600 clamp(16px, 1.6vw, 23px)/1.4 'Manrope', Arial
}

.client-group b {
    color: var(--red);
    font-size: 25px
}

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

@media(max-width:600px) {
    .client-ribbons {
        padding: 24px 0 32px;
        margin-bottom: -24px;
        gap: 14px
    }

    .client-ribbon {
        padding: 13px 0
    }

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

@media(prefers-reduced-motion:reduce) {
    .client-marquee {
        animation: none;
        will-change: auto
    }

    .client-ribbon {
        transform: none;
        width: 100%;
        margin-left: 0;
        overflow-x: auto
    }
}

/* Four tiny ant trails frame the two scrolling client rows. */
.client-ribbon {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 28px 0
}

.client-ribbons {
    gap: 10px
}

.client-ant-trail {
    position: absolute;
    left: 0;
    right: 0;
    height: 26px;
    overflow: hidden;
    cursor: default
}

.client-ant-trail.trail-top {
    top: 0
}

.client-ant-trail.trail-bottom {
    bottom: 0
}

.client-ant-track {
    display: flex;
    width: max-content;
    animation: ant-trail-drift 36s linear infinite
}

.client-ant-group {
    display: flex;
    flex-shrink: 0
}

.client-ant {
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 26px;
    background: url('../image/colony-walking-ant.gif') left center/26px 26px no-repeat;
    filter: brightness(.25);
    scale: -1 1;
    transition: transform .2s
}

.trail-backwards .client-ant-track {
    animation-direction: reverse
}

.trail-backwards .client-ant {
    scale: 1 1
}

.client-ant-trail.is-halted .client-ant-track {
    animation-play-state: paused
}

.client-ant-trail.is-halted .client-ant {
    background-image: url('../image/client-ant-rest.png');
    transform: translateY(-2px) rotate(-5deg)
}

@keyframes ant-trail-drift {
    to {
        transform: translateX(-50%)
    }
}

@media(max-width:600px) {
    .client-ribbon {
        padding: 28px 0
    }

    .client-ribbons {
        gap: 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    .client-ant-track {
        animation: none
    }

    .client-ant {
        background-image: url('../image/client-ant-rest.png');
        transition: none
    }
}

/* Compact pairs of ant dashes above and below the client names. */
.client-ribbon-0 {
    padding: 16px 0
}

.client-ribbon-1 {
    padding: 16px 0
}

.client-ribbons {
    gap: 8px
}

.client-ant-trail {
    height: 10px
}

.client-ant {
    flex-basis: 16px;
    width: 16px;
    height: 10px;
    background-size: 10px 10px
}

.client-ribbon-0 .trail-top {
    top: 0;
    bottom: auto
}

.client-ribbon-0 .trail-bottom {
    top: auto;
    bottom: 0
}

.client-ribbon-1 .trail-top {
    top: 0;
    bottom: auto
}

.client-ribbon-1 .trail-bottom {
    top: auto;
    bottom: 0
}

.client-ant-trail.is-halted .client-ant {
    transform: translateY(-1px) rotate(-5deg)
}

@media(max-width:600px) {
    .client-ribbon-0 {
        padding: 16px 0
    }

    .client-ribbon-1 {
        padding: 16px 0
    }

    .client-ribbons {
        gap: 8px
    }
}
