/*
Theme Name: Notable London
Theme URI: https://www.notable.london/
Author: Notable London
Author URI: https://www.notable.london/
Description: Notable London
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notable-london-theme
*/


/*------------------------------------------
 | Fonts
 *------------------------------------------ */

@font-face {
    font-family: 'canela_triallight';
    src: url('fonts/canela-light-webfont.woff2') format('woff2'),
         url('fonts/canela-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'canela_regular';
    src: url('fonts/canela-regular-webfont.woff2') format('woff2'),
         url('fonts/canela-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'johnston_itc_stdlight';
    src: url('fonts/johnston_itc_std_light-webfont.woff2') format('woff2'),
         url('fonts/johnston_itc_std_light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'johnston_itc_stdmedium';
    src: url('fonts/johnston_itc_std_medium-webfont.woff2') format('woff2'),
         url('fonts/johnston_itc_std_medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*------------------------------------------
 | Reset
 *------------------------------------------ */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p {
    text-wrap: pretty;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    text-wrap: balance;
}

figure {
    margin: 0;
}

/*------------------------------------------
 | Global
 *------------------------------------------ */

:root {
  --site-padding: clamp(20px, 3.4vw, 60px);
  --font-body: 'johnston_itc_stdlight';
  --font-strong: 'johnston_itc_stdmedium';
  --font-serif: 'canela_triallight';
  --font-serif-strong: 'canela_regular';
  --easing: cubic-bezier(.8, 0, .2, 1);
  --admin-bar-padding: 0;
}

html {
	background: black;
	color: white;
    margin: 0;
    padding: 0;
    scrollbar-gutter: stable;
}

body {
	font-family: var(--font-body);
	font-weight: normal;
    padding-top: 100px;
}

.site {
/*    overflow:hidden;*/
}

body.admin-bar {
    --admin-bar-padding: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --admin-bar-padding: 46px;
    }
}

.section-padded {
    padding: 1px var(--site-padding);
}

@media (max-width: 800px) {
    .padded-mobile {
        padding: 0 20px;
    }
}


.section-wrapper {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1060px) {
    .center-1060 {
        text-align: center;
    }
}

.site-section {
    min-height: 100svh;
}

.section-light {
    color: black;
    background: white;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fill-height {
    height: 100%;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-40-60 {
    grid-template-columns: 4fr 6fr;
}

.split.gap-s { gap: 50px; }
.split.gap-m { gap: 100px; }
.split.gap-m-flex { gap: clamp(30px, 6.9vw, 100px); }

@media (max-width: 1060px) {
    .split.stack-1060 {
        display: block;
    }
}

@media (max-width: 900px) {
    .split.stack-900 {
        display: block;
    }
}

hr.dot {
    position: relative;
    height: 23px;
    border: none;
    margin: 180px auto;
}

hr.dot:after {
    display: block;
    content: '';
    position: relative;
    top: 3px;
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    transition: transform 0.4s var(--easing);
}

hr.dot.black:after {
    background: black;
}

hr.dot.rotate:after {
    transform: rotate(225deg);
}

.wp-block-separator {
    margin: 50px auto;
}

@media (max-width: 600px) {
    body #wpadminbar {
        position: fixed;
    }
}
/*------------------------------------------
 | Breakpoint show/hide classes
 *------------------------------------------ */

/* hide above */
@media (min-width: 1060px) { .hide-1060 { display: none } }
@media (min-width: 850px) { .hide-850 { display: none } }


/* show above */
@media (max-width: 1060px) { .show-1060 { display: none } }
@media (max-width: 850px) { .show-850 { display: none } }


/*------------------------------------------
 | Spacers
 *------------------------------------------ */

.spacer {
    height: 100px;
}

/*------------------------------------------
 | Margin/padding modifiers
 *------------------------------------------ */

body .pt-s { padding-top: 50px }
body .pr-s { padding-right: 50px }
body .pb-s { padding-bottom: 50px }
body .pl-s { padding-left: 50px }

body .pt-m { padding-top: 100px }
body .pr-m { padding-right: 100px }
body .pb-m { padding-bottom: 100px }
body .pl-m { padding-left: 100px }

body .mt-s { margin-top: 50px }
body .mr-s { margin-right: 50px }
body .mb-s { margin-bottom: 50px }
body .ml-s { margin-left: 50px }

body .mt-m { margin-top: 100px }
body .mb-m { margin-bottom: 100px }

body .mb-0 { margin-bottom: 0; }
body .mt-0 { margin-top: 0; }

body .pb-0 { padding-bottom: 0; }
body .pt-0 { padding-top: 0; }

@media (max-width: 1060px) {
    body .pl0-1060 { padding-left: 0; }
}

/*------------------------------------------
 | Section padding
 *------------------------------------------ */

#section-clients > .section-wrapper,
#section-story > .section-wrapper,
#section-capabilities > .section-wrapper {
    padding-top: 100px;
}

/*------------------------------------------
 | Typography
 *------------------------------------------ */

p {
    font-size: 20px;
    line-height: 28px;
    max-width: 710px;
}

@media (max-width: 600px) {
    p {
        font-size: 18px;
        line-height: 26px;
    }
}

p:not(:last-child) {
    margin-bottom: 30px;
}

p a {
    position: relative;
    font-family: var(--font-strong);
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    p a:not(.button):after {
        position: absolute;
        bottom: -3px;
        left: 0;
        content: '';
        width: 0;
        height: 1px;
        opacity: 0;
        background: white;
        transition: width 0.3s var(--easing);
    }

    p a:hover:after {
        width: 100%;
        opacity: 1;
    }

    .section-light p a:after {
        background: black;
    }
}

h1 {
   font-family: var(--font-serif); 
   font-size: 100px;
   line-height: 120px;
   padding: 0 0 60px 0;
   border-bottom: 1px solid white;
}

h2 {
    font-family: var(--font-serif);
    padding-top: 80px;
    font-size: 74px;
    margin-bottom: 30px;
}

@media (max-width: 800px) {
    h2 {
        font-size: 55px;
        padding-top: 20px;
    }
}

h3 {
    font-family: var(--font-serif);
    font-size: 35px;
    margin-bottom: 30px;
}

hr + h2,
.section-anchor + h2 {
    padding-top: 0;
}

/*------------------------------------------
 | Post content (privacy and cookies pages)
 *------------------------------------------ */

.post-content {
    max-width: 650px;
    margin-bottom: 100px;
}

.post-content p,
.post-content ul,
.post-content ol {
    font-size: 18px;
    line-height: 160%;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 1em;
}

.post-content ol li::marker {
    font-family: var(--font-strong);
}

.post-content ul {
    list-style-type: disc;
}

.post-content li {
    margin-bottom: 20px;
}

.post-content li li {
    margin-bottom: 3px;
}

.post-content h1 {
    font-size: 72px;
    padding-bottom: 30px;
    margin-bottom: 50px;
    border-bottom: 2px solid black;
}

@media (max-width: 580px) {
    .post-content h1 {
        font-size: 45px;
    }
}

.post-content h1:after {
    display: none;
}

.post-content li a {
    position: relative;
    font-family: var(--font-strong);
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .post-content li a:after {
        position: absolute;
        bottom: -1px;
        left: 0;
        content: '';
        width: 0;
        height: 1px;
        opacity: 0;
        background: black;
        transition: width 0.3s var(--easing);
    }

    .post-content li a:hover:after {
        width: 100%;
        opacity: 1;
    }
}

/*------------------------------------------
 | Blockquote
 *------------------------------------------ */

blockquote {

}

blockquote p {
    font-size: clamp(25px, 2.3vw, 45px);
    line-height: 120%;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

blockquote cite {
    font-family: var(--font-serif-strong);
    font-size: 24px;
    font-style: normal;
    text-align: center;
    display: block;
}

blockquote:before {
    content: '';
    display: block;
    margin: auto;
    width: 60px;
    height: 50px;
    background-image: url('img/quotemark.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    filter: invert();
}

@media (max-width: 600px) {
    blockquote:before {
        width: 45px;
        height: 40px;
    }

    blockquote cite {
        font-size: 18px;
    }
}

.section-light blockquote:before {
    filter: none;
}

@media (min-width: 960px) {
    .client-quotes {
        margin: 200px auto;
    }
}

/*------------------------------------------
 | Header
 *------------------------------------------ */

.site-header {
    position: fixed;
    top: var(--admin-bar-padding);
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 var(--site-padding);
    display: flex;
    align-items: center;
    background: black;
    color: white;
    z-index: 10;
    transition: background 0.2s linear, color 0.2s linear;
}

.site-header.inverted {
    background: white;
    color: black;
}

.site-header.inverted .nav-logo {
    filter: invert(1);
}

/*------------------------------------------
 | Nav
 *------------------------------------------ */

.site-nav {
    position: relative;
    display: grid;
    flex: 1;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-strong);
}

.site-nav .nav-left,
.site-nav .nav-right {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .nav-left  { justify-self: start; }
.site-nav .nav-right { justify-self: end; }

.site-nav .nav-logo {
    justify-self: center;
    width: 188px;
    transition: filter 0.2s linear;
}

.site-nav a {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.mobile-toggle {
    display: none;
}

@media (max-width: 1150px) {
    .site-nav {
        grid-template-columns: 1fr 1fr;
    }

    .site-nav .nav-left,
    .site-nav .nav-right {
        display: none;
    }

    .site-nav .nav-logo {
        justify-self: start;
    }

    .mobile-toggle {
        display: block;
        justify-self: end;
        font-size: 40px;
        cursor: pointer;
    }

    .site-header.inverted .mobile-toggle {
        filter: invert();
    }
}

@media (hover: hover) and (pointer: fine) {
    .site-nav a:not(.nav-logo):after {
        position: absolute;
        bottom: -3px;
        left: 0;
        content: '';
        width: 0;
        height: 1px;
        opacity: 0;
        background: white;
        transition: width 0.3s var(--easing);
    }

    .site-nav a:not(.nav-logo):hover:after {
        width: 100%;
        opacity: 1;
    }

    .site-header.inverted a:not(.nav-logo):after {
        background: black;
    }
}

/*------------------------------------------
 | Mobile nav
 *------------------------------------------ */

.mobile-nav {
    position: fixed;
    top: var(--admin-bar-padding);
    left: 0;
    width: 100%;
    height: 100dvh;
    background: white;
    max-width: none;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 1s;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--site-padding);
    height: 100px;
}

.mobile-nav-header .nav-logo {
    width: 188px;
}

.mobile-nav ul {
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-family: var(--font-strong);
    margin-top: 100px;
}

.mobile-nav a {
    color: black;
    text-decoration: none;
}

.mobile-nav li {
    margin: 40px 0;
}

.mobile-nav li {
    opacity: 0;
    transform: translateY(10px);
}

.mobile-nav .mobile-toggle {
    margin-right: 8px;
    opacity: 0;
}

@media (max-width: 1150px) {
    .show-mobile-nav .mobile-nav {
        opacity: 1;
        pointer-events: all;
    }

    .show-mobile-nav .mobile-nav li {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s, transform 0.4s;
        transition-delay: 0.4s;
    }

    .show-mobile-nav .mobile-nav li:nth-child(2) { transition-delay: 0.6s; }
    .show-mobile-nav .mobile-nav li:nth-child(3) { transition-delay: 0.8s; }
    .show-mobile-nav .mobile-nav li:nth-child(4) { transition-delay: 1s; }
    .show-mobile-nav .mobile-nav li:nth-child(5) { transition-delay: 1.2s; }
    .show-mobile-nav .mobile-nav li:nth-child(6) { transition-delay: 1.4s; }

    .show-mobile-nav .mobile-nav .mobile-toggle {
        opacity: 1;
        transition: opacity 0.7s 0.6s;
    }
}


/*------------------------------------------
 | Main
 *------------------------------------------ */

.site-main {

}

/*------------------------------------------
 | Home
 *------------------------------------------ */

.section-home {
    min-height: calc(100svh - 100px);
    overflow: hidden;
}

.home-intro {
    width: 538px;
    margin-top: 70px;
    margin-left: auto;
    margin-bottom: 120px;
}

.section-home h1 {
    margin-top: 80px;
}

.home-intro p {
    font-size: clamp(27px, 2vw, 30px);
    line-height: 130%;
}

.home-intro p + p {
    margin-top: 30px;
}

@media (max-width: 834px) {
    .home-intro {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-top: clamp(40px, 8.4vw, 70px);
        text-align: center;
    }

    .section-home {
        display: flex;
/*        min-height: 0;*/
        padding-bottom: 80px;
    }


    .section-home h1 {
        font-size: clamp(20px, 9.5vw, 80px);
        line-height: 125%;
        padding-top: 80px;
        padding-bottom: clamp(40px, 8.4vw, 70px);
        text-align: center;
    }

    .home-intro p {
        font-size: clamp(18px, 3.5vw, 30px);
        line-height: 135%;
    }
}

/*------------------------------------------
 | Footer
 *------------------------------------------ */

.site-footer h3 {
    font-family: var(--font-serif);
    font-size: 50px;
    padding-top: 60px;
}

.site-footer h3 a {
    text-decoration: none;
}

.site-footer p {
    max-width: none;
}

.site-footer a {
    color: inherit;
}

.site-footer .contact-email {
    font-size: 24px;
}

.site-footer .policy-links {
    display: flex;
    gap: 24px;
}

.footer-top {
    margin-top: 60px;
    border-top: 1px solid white;
    margin-bottom: 160px;
    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    border-top: 1px solid white;
    display: flex;
    justify-content: space-between;
    padding: 30px 0 50px 0;
}

.footer-bottom p {
    font-size: 15px;
}

.socials {
    display: flex;
    align-items: center;
    height: 50px;
    margin-top: 72px;
}

.socials a {
    margin-left: 25px;
}

@media (hover: hover) and (pointer: fine) {
    .socials a {
        transition: transform 0.3s;
    }
    .socials a:hover {
        transform: scale(1.1);
    }
}

.socials img {
    width: 40px;
}

@media (max-width: 850px) {

    .footer-bottom {
        display: block;
    }

    .site-footer h3 {
        text-align: center;
        font-size: 35px;
    }

    .site-footer .contact-email {
        text-align: center;
        font-size: 18px;
    }

    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }

    .footer-top {
        display: block;
        margin-bottom: 100px;
    }

    .socials {
        justify-content: center;
    }

    .socials a {
        margin: 0 25px;
    }

    .site-footer .policy-links  {
        margin-top: 20px;
        justify-content: center;
    }
}

/*------------------------------------------
 | Ready animation
 *------------------------------------------ */

body.loading:not(.ready) {
    overflow: hidden;
}

body.loading h1 {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 1.2s 0.2s ease-out, opacity 1s 0.3s;
}

body.loading h1:after {
    position: absolute;
    bottom: -2px;
    left: 0;
    content: "";
    width: 100%;
    height: 3px;
    background: black;
    transition: transform 1s 0.3s ease-out;
    z-index: 2;
}

body.loading.ready h1 {
    opacity: 1;
    transform: translateY(0);
}

body.loading.ready h1:after {
    transform: translateX(100%);
}

body.loading .home-intro {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 1.2s 1.2s ease-out, opacity 1s 1.3s;
}

body.loading.ready .home-intro {
    opacity: 1;
    transform: translateY(0);
}

body.loading .site-nav .nav-logo,
body.loading .site-nav .nav-left,
body.loading .site-nav .nav-right {
    opacity: 0;
    transition: opacity 0.4s linear;
}

body.loading .site-nav .nav-logo {
    transition: none;
}

body.loading.ready .site-nav .nav-left,
body.loading.ready .site-nav .nav-right {
    opacity: 1;
}

/*------------------------------------------
 | Loading animation
 *------------------------------------------ */

.loader {
    --transition-speed: 0.6s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: black;*/
    transition: opacity 0.5s 0.75s;
    z-index: 100;
}

body.ready .loader {
    pointer-events: none;
/*    opacity: 0;*/
}

.loading-logo {
    position: absolute;
    width: 188px;
    top: 39px;
    transition: transform 0.8s ease;
    transform: translateY(calc(48vh - 44px)) scale(4);
}

.loading-logo .letter {
    opacity: 0;
    transition: opacity 0.4s linear;
/*    filter: drop-shadow(rgba(255, 255, 255, 0.5) 0px 0px 8px);*/
}

.loader .glyph {
    transition: transform var(--transition-speed) ease-out;
/*    filter: drop-shadow(rgba(255, 255, 255, 0.5) 0px 0px 8px);*/
}

.loader .glyph .out,
.loader .glyph .in {
    transition: transform var(--transition-speed) ease-out;
}

.loader:after {
    position: absolute;
    color: lime;
    font-family: monospace;
    bottom: 50px;
}

/* state__none */

.state__none .in.top { transform: translate(30px, 30px) scale(0); }
.state__none .in.right { transform: translate(-30px, 30px) scale(0); }
.state__none .in.bottom { transform: translate(30px, -30px) scale(0); }
.state__none .in.left { transform: translate(-30px, -30px) scale(0); }

.state__none .out.top { transform: translate(0,0) scale(0); }
.state__none .out.right { transform: translate(0,0) scale(0); }
.state__none .out.bottom { transform: translate(0,0) scale(0); }
.state__none .out.left { transform: translate(0,0) scale(0); }

/* state__diamond */

.state__diamond .in.top { transform: translate(30px, 30px); }
.state__diamond .in.right { transform: translate(-30px, 30px); }
.state__diamond .in.bottom { transform: translate(30px, -30px); }
.state__diamond .in.left { transform: translate(-30px, -30px); }

/* state__open-square */

.state__square .out.top { transform: translate(0, -60px); }
.state__square .out.right { transform: translate(60px, 0); }
.state__square .out.bottom { transform: translate(0, 60px); }
.state__square .out.left { transform: translate(-60px, 0); }

/* state__open-diagonal */

.state__diagonal .out.top { transform: translate(-60px, -60px); }
.state__diagonal .out.right { transform: translate(60px, -60px); }
.state__diagonal .out.bottom { transform: translate(60px, 60px); }
.state__diagonal .out.left { transform: translate(-60px, 60px); }

/* state__raised */

.state__raised .glyph-wrapper {
    transform: translateY(-20vh);
    transition: transform 0.8s ease;
}

.state__raised .in {
    transition: transform 0.8s ease;
}

.state__raised .in.top { transform: translate(40px, 40px); }
.state__raised .in.right { transform: translate(-40px, 40px); }
.state__raised .in.bottom { transform: translate(40px, -40px); }
.state__raised .in.left { transform: translate(-40px, -40px); }

.state__raised .out.right {
    transform: translate(-50px, 18px);
    transition: transform 0.8s ease-out;
    transition-delay: 0.8s;
}

.state__raised .out.left {
    transform: translate(18px, -51px);
    transition: transform 0.8s ease-out;
    transition-delay: 0.8s;
}

.state__raised .letter { opacity: 1 }

.state__raised .letter-N { transition-delay: 1.2s; }
.state__raised .letter-O { transition-delay: 1.4s; }
.state__raised .letter-T { transition-delay: 1.6s; }
.state__raised .letter-A { transition-delay: 1.8s; }
.state__raised .letter-B { transition-delay: 2.0s; }
.state__raised .letter-L { transition-delay: 2.2s; }
.state__raised .letter-E { transition-delay: 2.4s; }

/* state__out */

.state__out .glyph-wrapper {
    transform: translateY(-20vh);
}

.state__out .glyph {
    opacity: 0;
    transition: opacity 0.2s;
    transition-delay: 0s;
}

.state__out .loading-logo {
    transform: none;
    transition: transform 1s;
}

.state__out .letter { opacity: 1 }

.state__out .in.top { transform: translate(40px, 40px); }
.state__out .in.right { transform: translate(-40px, 40px); }
.state__out .in.bottom { transform: translate(40px, -40px); }
.state__out .in.left { transform: translate(-40px, -40px); }

@media (max-width: 1150px) {
    .loader .loading-logo {
        display: none;
    }

    .loader { 
        background: black;
    }

    .state__out {
        background: rgba(0,0,0,0);
        transition: background 1s;
    }

    body.loading .site-nav .nav-logo {
        opacity: 0;
    }

    body.ready .site-nav .nav-logo {
        opacity: 1;
        transition: opacity: 0.6s;
    }
}


/*------------------------------------------
 | Client marquee
 *------------------------------------------ */

.logo-marquee {
    --width: 22vw;
    --height: 120px;
    --gap: 140px;
    --duration: 60s;
    --fade: 64px;
}

.logo-marquee__viewport {
    display: inline-flex;
    width: 100%;
    overflow: hidden;
    margin: 120px 0;
}

.logo-marquee__group {
    display: inline-flex;
    gap: var(--gap);
    padding: 0;
}

.logo-marquee__group li {
    display: flex;
    justify-content: center;
    align-items: center;
/*    width: var(--width);*/
    height: var(--height);
    list-style: none;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.logo-marquee__group li img {
    max-width: none;
    width: auto;
    height: 100%;
}

@media(max-width: 650px) {
    .logo-marquee {
        --height: 80px;
        --gap: 60px;
    }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 140px)); } /* because total content is duplicated, subtract margin */
}

.logo-marquee__viewport > .logo-marquee__group {
  /* We attach the animation to the first group and move both as a run-on line */
  animation: marquee var(--duration) linear infinite;
}

.logo-marquee__viewport > .logo-marquee__group:first-of-type {
    margin-right: 140px;
}

/*------------------------------------------
 | Client list
 *------------------------------------------ */

.client-list-wrapper {
    text-align: center;
}

.client-list {
/*    font-family: var(--font-strong);*/
    font-size: 18px;
    line-height: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center ;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 30px;
}

.client-list li {
    position: relative;
    margin: 10px 20px;
}

.client-list li.dot {
/*    border: 1px solid red;*/
}

.client-list li.dot:before {
    content: '';
    display: block;
    position: absolute;
    top: 11px;
    left: -23px;
    width: 4px;
    height: 4px;
    background: black;
    transform: rotate(45deg);
}

.client-list a {
    padding: 1em;
    text-decoration: none;
    color: black;
    transition-property: background-color;
    transition-duration: 500ms;
}

@media (max-width: 500px) {
    .client-list {
        font-size: 16px;
    }

    .client-list li {
        margin: 7px 12px;
    }

    .client-list li.dot:before {
        left: -14px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .client-list a:hover {
        background-color: #ccc;
    }
}

/*------------------------------------------
 | Our story
 *------------------------------------------ */

@media (max-width: 450px) {
    .out-story-links a {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 1060px) {
    .our-story-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/*------------------------------------------
 | The four 'P's
 *------------------------------------------ */

.four-p {
    display: grid;
    font-family: var(--font-serif);
    font-size: 32px;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    height: 100%;
}

.four-p div {
    position: relative;
    padding-top: 20px;    
    opacity: 0;
    transition: all 0.4s;
    overflow: hidden;
}

.four-p div:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    opacity: 0;
    background: white;
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-in;
    transition-delay: 0.2s;
}

.four-p .p-label {
    display: block;
    opacity: 0;
    margin-top: 10px;
    transform: translateY(5px);
    transition: transform 0.4s, opacity 0.4s;
}

.four-p.in div {
    opacity: 1;
}

.four-p.in div:after {
    opacity: 1;
    transform: translateX(0);
}

.four-p.in .p-label {
    opacity: 1;
    transform: translateY(0);
}

/*.four-p.in div:nth-child(1) .p-label { transition-delay: 0.4s }*/
.four-p.in div:nth-child(2) .p-label { transition-delay: 0.8s }
.four-p.in div:nth-child(3) .p-label { transition-delay: 1.6s }
.four-p.in div:nth-child(4) .p-label { transition-delay: 2.4s }

.four-p.in div:nth-child(1):after { transition-delay: 0.2s }
.four-p.in div:nth-child(2):after { transition-delay: 1s }
.four-p.in div:nth-child(3):after { transition-delay: 1.8s }
.four-p.in div:nth-child(4):after { transition-delay: 2.6s }



@media (max-width: 900px) {
    .four-p {
        margin-bottom: 80px;
    }

    .four-p div {
        height: 90px;
        text-align: center;
    }

    .four-p .p-label {
        margin-top: 0;
    }
}

/*------------------------------------------
 | Fullscreen section
 *------------------------------------------ */

.section-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s;
}

.section-fullscreen.scrollable {
    overflow: auto;
}

.section-fullscreen.in {
    opacity: 1;
}

.section-fullscreen.section-padded {
    padding-top: var(--site-padding);
    padding-bottom: var(--site-padding);
}

.section-fullscreen .close-button {
    position: absolute;
    top: 40px;
    right: 28px;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s;
}

.section-fullscreen .bio-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s, transform 0.4s;
}

.section-fullscreen.in .bio-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s 0.6s, transform 0.4s 0.6s;
}

.section-fullscreen h2 {
    padding-top: 0;
}

.section-fullscreen.in .close-button {
    opacity: 1;
    transition: opacity 0.7s 0.6s;
    cursor: pointer;
}


/*------------------------------------------
 | Bio
 *------------------------------------------ */

.bio-image-mobile {
    display: none;
}

.bio-content h2 {
    font-size: clamp(45px, 9vw, 67px);
}

@media (max-width: 900px) {
    .bio-content figure {
        display: block;
        margin-left: 20vw;
        margin-bottom: 50px;
    }

    .bio-content p {
        margin-left: 20vw;
        line-height: 160%;
    }

    .bio-image-desktop {
        display: none;
    }

    .bio-image-mobile {
        display: block;
        margin-left: 20vw;
        margin-bottom: 50px;
    }
}

@media (max-width: 600px) {
    .bio-content h2 {
        font-size: 33px;
    }

    .bio-content figure {
        margin-left: auto;
    }

    .bio-content p {
        margin-left: auto;
        font-size: clamp(16px, 3.1vw, 18px);
    }
}

/*------------------------------------------
 | Glyph
 *------------------------------------------ */

.glyph {
    position: relative;
    width: 140px;
    height: 140px;
    transform: rotate(45deg);
    transition: transform 0.7s linear;
}

/* Outer -------------- */

.glyph .out {
    position: absolute;
    background: black;
    width: 20px;
    height: 20px;
    top: 60px;
    left: 60px;
    transition: transform 0.7s linear;
}

.glyph.inverted .out,
.glyph.inverted .in {
    background: white;
}

/*.glyph.step1 .out.top { transform: translate(-60px, -60px); }
.glyph.step1 .out.right { transform: translate(60px, -60px); }
.glyph.step1 .out.bottom { transform: translate(60px, 60px); }
.glyph.step1 .out.left { transform: translate(-60px, 60px); }

.glyph.step2 .out.top { transform: translate(0, 0); }
.glyph.step2 .out.right { transform: translate(0, 0); }
.glyph.step2 .out.bottom { transform: translate(0, 0); }
.glyph.step2 .out.left { transform: translate(0, 0); }

.glyph.step3 .out.top { transform: translate(0, -60px); }
.glyph.step3 .out.right { transform: translate(60px, 0); }
.glyph.step3 .out.bottom { transform: translate(0, 60px); }
.glyph.step3 .out.left { transform: translate(-60px, 0); }*/

/* Inner -------------- */

.glyph .in {
    position: absolute;
    background: black;
    width: 40px;
    height: 40px;
}

.glyph .in.top {
    top: 20px;
    left: 20px;
}

.glyph .in.right {
    top: 20px;
    left: 80px;
}

.glyph .in.bottom {
    top: 80px;
    left: 20px;
}

.glyph .in.left {
    top: 80px;
    left: 80px;
}

@media (max-width: 580px) {
/*    .section-capabilities .glyph {
        transform: scale(0.5) rotate(45deg);
    }

    .section-capabilities .glyph.step2 {
        transform: scale(0.5) rotate(135deg);
    }

    .section-capabilities .glyph.step3 {
        transform: scale(0.5)  rotate(45deg);
    }*/
}


/*------------------------------------------
 | Capabilities
 *------------------------------------------ */

.capabilities {
    position: relative;
}

.capabilities h3 {
    overflow: hidden;
    position: relative;
    padding-bottom: 30px;
}

.capabilities h3 .text {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.capabilities section.in h3 .text {
    opacity: 1;
    transform: translateY(0);
}

.capabilities h3:after {
    position: absolute;
    content: '';
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
    transition: transform 0s linear;
    transform: translateX(-100%);
}

.capabilities p {
    margin-bottom: 15px;
}

.capabilities ul {
    font-size: 20px;
    line-height: 28px;
    padding: 0 0 0 1em;
}

.capabilities li {
    margin-bottom: 5px;
}

.capabilities section.in h3:after {
    transform: translateX(0);
    transition: transform 0.7s linear;
}

.section-capabilities section {
    padding-top: 120px;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.section-capabilities section:last-child {
    margin-bottom: 0;
}

.section-capabilities section .split {
    opacity: 0;
    transition: opacity 0.7s;
}

.section-capabilities section.in .split {
    opacity: 1;
}

.section-capabilities .glyph-scaler {
    padding-top: 18px;
}

.capabilities .glyph-container {
    display: flex;
    justify-content: center;
    transform: scale(0.8);
    opacity: 0;
    transition: opacity 0.4s, transform 0.6s;
}

.capabilities section.in .glyph-container {
    opacity: 1;
    transform: scale(0.8) rotate(90deg);
}

/* Glyph 1 */
.section-capabilities section:nth-child(1).in .out.top { transform: translate(-60px, -60px); }
.section-capabilities section:nth-child(1).in .out.right { transform: translate(60px, -60px); }
.section-capabilities section:nth-child(1).in .out.bottom { transform: translate(60px, 60px); }
.section-capabilities section:nth-child(1).in .out.left { transform: translate(-60px, 60px); }

/* Glyph 2 */
.section-capabilities section:nth-child(2) .out.top { transform: translate(-60px, -60px); }
.section-capabilities section:nth-child(2) .out.right { transform: translate(60px, -60px); }
.section-capabilities section:nth-child(2) .out.bottom { transform: translate(60px, 60px); }
.section-capabilities section:nth-child(2) .out.left { transform: translate(-60px, 60px); }

.section-capabilities section:nth-child(2).in .out.top { transform: translate(0, 0); }
.section-capabilities section:nth-child(2).in .out.right { transform: translate(0, 0); }
.section-capabilities section:nth-child(2).in .out.bottom { transform: translate(0, 0); }
.section-capabilities section:nth-child(2).in .out.left { transform: translate(0, 0); }

/* Glyph 3 */
.section-capabilities section:nth-child(3).in .out.top { transform: translate(0, -60px); }
.section-capabilities section:nth-child(3).in .out.right { transform: translate(60px, 0); }
.section-capabilities section:nth-child(3).in .out.bottom { transform: translate(0, 60px); }
.section-capabilities section:nth-child(3).in .out.left { transform: translate(-60px, 0); }

.section-capabilities .glyph {
    transition: transform 0.8s ease-out;
}

.section-capabilities .glyph .out,
.section-capabilities .glyph .in {
    transition: transform 0.8s ease-out;
}

.section-capabilities section:nth-child(2) .glyph,
.section-capabilities section:nth-child(2) .out,
.section-capabilities section:nth-child(2) .in {
    transition: transform 0.8s ease-in-out;
    transition-delay: 0.4s;
}

/* --------------------- */

@media (max-width: 1050px) {
    .capabilities .split {
        display: block;
    }

    .capabilities section {
        grid-template-columns: 1fr 3fr;
        padding-left: 0;
    }
}

@media (max-width: 1050px) {
    .capabilities .glyph-container {
        transform: scale(0.6);
    }

    .capabilities section.in .glyph-container {
        transform: scale(0.6) rotate(90deg);
    }
}

@media (max-width: 580px) {
    .capabilities section {
        display: block;
        padding-top: 0;
        margin-bottom: 70px;
    }

    .capabilities .glyph-container {
        transform: scale(0.4);
    }

    .capabilities section.in .glyph-container {
        transform: scale(0.4) rotate(90deg);
    }

    .capabilities h3 {
        font-size: 30px;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .capabilities p,
    .capabilities ul {
        font-size: 18px;
    }

    .capabilities p {
        margin-bottom: 10px;
    }

    .capabilities li {
        margin-bottom: 3px;
    }
}


/*------------------------------------------
 | Publications
 *------------------------------------------ */

#section-partnerships {
    top: -180px;
    position: relative;
}

.publications {
    margin-top: 120px;
    padding-bottom: 100px;
}

.publications h3 {
    padding-bottom: 30px;
    border-bottom: 1px solid black;
}

.publications a {
/*    pointer-events: none;*/
}

.publications article {
    margin-bottom: 50px;
}

.publications figure img {
    width: 100%;
}

@media (max-width: 900px) and (min-width: 600px) {
    .publications-content {
        margin-left: 12%;
    }
}

.publications .download-button-link {
    display: none;
}

.publications.terms-accepted .download-button-link {
    display: block;
}

.publications .download-button-link a:before {
    content: '';
    width: 20px;
    height: 20px;
    transform: translateY(2px);
    background-image: url(img/download.svg);
    background-size: contain;
    margin-right: 7px;
    display: inline-block;
}

.publications .download-button-link .button {
    margin-left: 0;
    width: 220px;
    height: 50px;
}

.publications.terms-accepted .data-capture-link {
    display: none;
}

@media (max-width: 900px) {
    .publications figure {
        margin-bottom: 40px;
    }

    .publications article {
        margin-bottom: 120px;
    }
}

/*------------------------------------------
 | Checkbox styling
 *------------------------------------------ */

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  --size: 20px;
  --brand: #2563eb;
}

/* Turn the input into the visual control (no hidden proxy elements needed) */
.checkbox input {
  appearance: none;
  inline-size: var(--size);
  block-size: var(--size);
  border: 2px solid currentColor;
  display: grid;
  place-content: center;
  background: white;
  color: black;
  cursor: pointer;
  transition: box-shadow 120ms, border-color 120ms, background 120ms;
}

/* Checkmark (pure CSS) */
.checkbox input::before {
  content: "";
  inline-size: .7em;
  block-size: .7em;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  background: black;
  /* a crisp check glyph via clip-path polygon */
  clip-path: polygon(14% 44%,0 62%,46% 100%,100% 16%,82% 0,44% 62%);
}

.checkbox input:checked::before { transform: scale(1); }

/* Indeterminate state (set via JS: el.indeterminate = true) */
.checkbox input:indeterminate::before {
  transform: scale(1);
  clip-path: inset(40% 12% 40% 12%); /* renders a dash */
}

/* Focus visibility (keyboard users) */
.checkbox input:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

/* Hover/active polish (optional) */
.checkbox input:hover { box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 20%, transparent); }
.checkbox input:active { background: color-mix(in oklab, currentColor 10%, Canvas); }

/* Disabled */
.checkbox input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Respect user motion prefs */
@media (prefers-reduced-motion: reduce) {
  .checkbox input, .checkbox input::before { transition: none; }
}


/*------------------------------------------
 | Download modal
 *------------------------------------------ */

.download-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    opacity: 0;
}

.download-modal.in {
    opacity: 1;
    transition: opacity 0.5s;
}

.download-modal .close-button {
    position: absolute;
    top: var(--site-padding);
    right: var(--site-padding);
    filter: invert();
    cursor: pointer;
    z-index: 1;
}

.download-modal .modal-window {
    display: flex;
    flex-direction: column;
    margin: 50px auto;
    width: 510px;
    height: calc(100svh - 100px);
    max-height: 844px;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
}

.download-modal.in .modal-window {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s 0.3s, transform 0.4s 0.3s ease;
}

.download-modal .modal-image {
    flex: 1;
    max-height: 300px;
    background-size: cover;
    background-position: center;
    background-image: url(img/article-walpole.jpg);
}

.download-modal .modal-image.places {
    background-image: url(img/article-places.jpg);
}

.download-modal .modal-content {
    color: black;
    padding: 30px;
}

.download-modal h3 {
    font-size: 30px;
    line-height: 130%;
    text-align: center;
}

/*.download-modal .modal-image:after {
    display: block;
    content: '';
    padding-top: 50%;
}*/

.download-modal .form-row {
    margin-bottom: 30px;
}

.download-modal input[type="text"],
.download-modal input[type="email"] {
    width: 100%;
    height: 45px;
    font-size: 20px;
    border: none;
    border-bottom: 2px solid #999;
    font-family: var(--font-strong);
}

.download-modal input[type="text"]:focus,
.download-modal input[type="email"]:focus,
.download-modal input[type="text"]:focus-visible,
.download-modal input[type="email"]:focus-visible {
    outline: none;
    border-bottom: 2px solid black;
}

.download-modal input[type="text"]::placeholder,
.download-modal input[type="email"]::placeholder {
    font-family: var(--font-body);
}

.download-modal .terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
}

.download-modal .terms p {
    font-size: 13px;
    line-height: 140%;
    color: #777;
}

.download-modal .terms p.checked {
    color: black;
}

.download-modal .terms input {
    margin-right: 20px;
}

.button,
input[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 320px;
    height: 55px;
    font-family: var(--font-strong);
    font-size: 20px;
    text-align: center;
    background: white;
    border: 1px solid black;
    color: black;
    cursor; pointer;
    transition: background 0.4s, color 0.4s;
}

.button.disabled,
input[type="submit"].disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover,
    input[type="submit"]:hover {
        background: black;
        color: white;
    }
}


@media (max-width: 780px) {
    .download-modal input[type="submit"] {
        width: 100%;
    }

    .download-modal .modal-content {
        padding: var(--site-padding) 0;
    }

    .download-modal .modal-window {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 60px 30px;
    }

    .download-modal h3 {
        font-size: 28px;
    }

    .download-modal .close-button {
        filter: none;
    }
}

/*------------------------------------------
 | Carousel
 *------------------------------------------ */

.client-quotes,
.people-quotes {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 100px - var(--site-padding));
}

.carousel {
    width: 100%;
    touch-action: pan-y;
}

.carousel .slide-container {
    position: relative;
}

.carousel .slide {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel .slide.current {
    opacity: 1;
    transition: opacity 1s 0.3s;
}

.carousel .nav {
    display: flex;
    gap: 20px;
    margin-top: 80px;
    justify-content: center;
}

.carousel .nav .dot {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    transform: rotate(45deg);
    cursor: pointer;
}

.carousel .nav .dot.current {
    background: white;
}

.section-light .carousel .nav .dot {
    border: 2px solid black;
}

.section-light .carousel .nav .dot.current {
    background: black;
}

@media (max-width: 850px) {
    .client-quotes,
    .people-quotes {
        min-height: calc(100svh - var(--site-padding));
    }
}


@media (hover: hover) and (pointer: fine) {
    .carousel .nav .dot {
        transition: transform 0.3s var(--easing);
    }

    .carousel .nav .dot:not(.current):hover {
        transform: rotate(135deg);
    }
}

/*------------------------------------------
 | Debug
 *------------------------------------------ */

/** { outline: 1px dashed rgba(0,255,0,0.2); }
.section-light * { outline: 1px dashed rgba(0,0,255,0.2); }*/
