@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');




/* CORE STYLES */
:root {
    --white: #fff;
    --writing: #555;
    --black: #000; 

    --grey: #bab5b0;
    --yellow: #f7d105;
    --green: #26ad4f;
    --blue: #99c2ff; 
    --turquoise: #40b59e;
    --softyellow: #fae826;
    --softgreen: #38cc61; 
    --softblue: #bdd9ff;
    --softturquoise: #bdd9ff;
    --cottonwhite: #f7f7f7; 
  }



body{
    background-color: var(--white);
    font-family: Inter;
}
img{
    max-width: 100%;
    display: block;
}
h1{
    font-size: 2.6rem;
    line-height: 3rem;
}
h1,h2,h3{
    font-weight: 800;
}
.main p a, 
.whitefull p a{
    color: var(--black); 
    text-decoration: none;
    border-bottom: 2px solid var(--blue); 
}
.main p a:hover, 
.whitefull p a:hover{
    color: var(--black); 
    text-decoration: none;
    border-bottom: 2px solid var(--black); 
}





/* different page colours */


body#front{
    background-color: var(--yellow);
}
#front .yellow{
    background-color: var(--blue);
}
#front .blue{
    background-color: var(--white);
}
#front .blue a{
    color: var(--white);
}
#team .blue,
#contact .blue,
#content .blue{
    background-color: var(--yellow);
}
#team .blue a,
#contact .blue a{
    color: var(--yellow);
}

#contact .blue a,
#content .blue a{
    color: var(--yellow);
}
body#clients, 
body#content{
    background-color: var(--blue);
}
#clients .blue{ 
    background-color: var(--yellow);
}
#clients .blue a{ 
    color: var(--yellow);
}
#clients .teamgrid > div:not(.networks) > div{
    background-color: var(--white);
}
#clients .teamgrid > div:not(.networks) > .extra{
    background-color: var(--cottonwhite);
}
body#contact{
    background-color: var(--green); 
}
#clients .iw a,
#contact .iw a{
    color: var(--white); 
}
.blue .links a{
    color: var(--blue); 
}
.cardcontainer .green input[type="checkbox"]:before{
    color: var(--green);
}
#team .teamgrid input[type="checkbox"]:before{
    color: var(--blue);
}



.container{
    margin: auto;
    max-width: 1200px; 
    width: 100%;
}
.blue{
    display: flex;
    flex-wrap: wrap;
    background-color: var(--blue);
    padding: 2rem;
    border-radius: 50px;
    margin: auto; 
    align-items: center;
}
.social,
.good,
.network{
    font-size: 1.2rem; 
    font-weight: 600;
}
.social a,
.good a{
    color: var(--white);
    text-decoration: none;
}
.network a{
    color: var(--black);
    text-decoration: none;
}
.social{
    background-color: var(--black);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
}
.good{
    padding: 0.5rem;
    background-color: var(--black);
    color: var(--white);
}
.network{
    padding: 0.5rem; 
}
.links{
    margin-left: auto;
    /* padding: 0.5rem; */
}
.links a{
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.5rem; 
    background-color: var(--black);
    transition: 0.3s;

}
.links a:hover{
    background-color: var(--white);
    color: var(--black); 
}
.main{
    display: grid;
    perspective: 1000px;
}
.main > div{
    color: var(--black); 
}

.yellow{
    background-color: var(--yellow);
    border-radius: 50px;
    padding: 2rem;
}
.yellow p{
    line-height: 1.7;
}
.green{
    border-radius: 50px;
    background-color: var(--green); 
    min-height: 250px; 
    border-radius: 50px;
    padding: 2rem;
}
.story{
    border-bottom: 2px solid var(--black);
    padding-block-end: 2rem;
    margin-block-end: 2rem;
}

.story h4{
    font-size: 1rem;
}
.story h4,
.story h2,
.story p{
    margin-block: 0.5rem; 
}
.story p{
    font-size: 0.9rem; 
}
.people{
    background-image: url('images/SGN-square-green.jpg');
    background-position: center center;
    background-size: cover;
}
.arrow{
    margin-block: 2rem;
    font-size: 1.5rem; 
    line-height: 2.3rem;
    /* padding: 0.5rem; */
    border-radius: 50%;
    background-color: var(--black);
    font-family: Material Symbols Rounded;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    height: 2rem;
    width: 2rem; 
    height: 2.3rem; 
    width: 2.3rem; 
}
.arrow a{
    color: var(--blue); 
    text-decoration: none;
}
.arrow a:hover{
    color: var(--white);
}
/* .arrow img{
    height: 50px; 
    transition: 0.3s;
}
.arrow img:hover{
    filter: invert(1);
} */
.teamgrid{
    display: grid;
}
.teamgrid > div:not(.networks) > div{
    background-color: var(--blue);
    color: var(--black); 
    border-radius: 50px;
    padding: 2rem;
    border-collapse: collapse;
    backface-visibility: hidden;
}
.teamgrid .networks{
    background-color: var(--green);
    color: var(--black); 
    border-radius: 50px;
    padding: 2rem;
}
.teamgrid h3{
    font-size: 1rem;
}
.teamgrid .networks .larger{
    font-size: 2rem;
    font-weight: 800;
}
#clients .teamgrid > div:not(.networks):last-of-type > div{
    background-color: var(--cottonwhite);
}
blockquote{
    font-size: 1rem;
    margin: 1rem;
    font-weight: 800; 
}
.whitefull{
    background-color: var(--white);
    border-radius: 50px;
    padding: 2rem;
    gap: 4rem;
    display: grid;
}
.logos {
    display: grid; 
    gap: 2rem;
    margin: 2rem; 
    justify-content: center;
    align-items: center;
}
.logos img{
    max-width: 150px; 
    max-height: 100px; 
}

.button-two {
    --button-color: #000;
        background: transparent;
        border: 0;
        margin-left: auto; 
        height: 80px;
        width: 80px; 
  }
  
  .button-two[data-state="closed"] :is(.top, .bottom) {
    animation: to-open-icon 1s forwards;
  }
  
  .button-two[data-state="opened"] :is(.top, .bottom) {
    animation: to-close-icon 1s forwards;
  }
  .button-two .hamburger {
    transition: rotate 800ms 100ms;
  }
  .button-two[data-state="opened"] .hamburger {
    rotate: 1turn;
  }
  
  .button-two .line.top {
    --rotation: -45deg;
    transform-origin: 65px 45px;
  }
  .button-two .line.bottom {
    --rotation: 45deg;
    transform-origin: 60px 55px;
  }
  
  @keyframes to-close-icon {
    0% {
      stroke-dashoffset: 0;
    }
    40% {
      stroke-dashoffset: 79.9;
    }
    60% {
      stroke-dashoffset: 79.9;
      rotate: calc(var(--rotation));
    }
    100% {
      stroke-dashoffset: 0;
      rotate: var(--rotation);
    }
  }
  @keyframes to-open-icon {
    0% {
      stroke-dashoffset: 0;
      rotate: var(--rotation);
    }
    40% {
      stroke-dashoffset: 79.9;
      rotate: var(--rotation);
    }
    60% {
      stroke-dashoffset: 79.9;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }
  .iw{
    text-align: right;
    padding: 2rem;
    font-size: 0.8rem;
}
.iw a{
    color: #999;
    text-decoration: none; 
}
picture,
.sgn img{
    max-width: 400px; 
}
.privacy{
    align-self: flex-end;
    font-size: 0.7rem;
}
.whitefull .privacy p a{
    border: 0;
    color: var(--writing); 
}




@media only screen and ( min-width: 800px ) {
body{
    margin: 2rem; 
}
#front .yellow{
    display: grid;
    min-height:550px; 
}
.button-two{
    display: none;
}
.sgn{
    display: flex;
    flex: 1 1 300px;
}
.main{
    grid-template-columns: 1fr 1fr;
}
.links{
    font-size: 0.8rem;
}
.links a{
    /* color: var(--white); */
    text-decoration: none;
    padding: 0.5rem 1.5rem; 
    border-radius: 2rem;
    transition: background-color 0.3s;
    background-color: var(--black);
}
.links a:hover{
    background-color: rgba(0,0,0,0.3);
    color: var(--black) !important; 
}
.links a:first-of-type{
    display: none;
}
.whitefull{
    padding: 2rem 10vw;
}
.whitefull > div:nth-of-type(2){
    display: grid;
    gap: 2rem; 
}
.whitefull.contactus{
    grid-template-columns: 1fr 1fr;
}
.whitefull.contactus > div{
    display: grid;
    gap: 2rem; 
}
.logos{
    grid-template-columns: 1fr 1fr;
}
.story .titlegrid{
    display: grid;
    grid-template-columns: auto 50px;
    gap: 1rem;
}
.more{
    align-self:flex-end;
}
.teamgrid{
    grid-template-columns: 1fr 1fr 1fr ;
    position: relative;
}
.teamgrid > div{
    min-height: 500px;
}
.teamgrid img{
    animation: fadein 1s;
}

body:not(#clients) .teamgrid .networks{
    border-radius: 50px 0 0 50px;
}
body:not(#clients) .teamgrid .networks ~ .networks{
    border-radius: 0 0 0 0;
}
body:not(#clients) .teamgrid .networks:last-of-type{
    border-radius: 0 50px 50px 0;
}
.teamgrid > div:not(.networks){
    position: relative;
    perspective: 1000px;
    height: 100%;
    display: grid;
}
@supports selector(:has(*)) {

strong {
    display: inline;
}
.teamgrid > div:not(.networks) > div{
    backface-visibility: hidden;   
    transition: transform 0.6s;
	transform-style: preserve-3d;
}
.teamgrid > div:not(.networks) .extra{
    position: absolute;
    /* inset: 0; */
    transform: rotateY(180deg);
    z-index: 10;
    background-color: var(--softblue);
    display: grid;
    min-height: calc(100% - 4rem); 
}
.teamgrid > div:not(.networks) > div:not(.extra){
    padding-bottom: 4rem;
}


.teamgrid > div:not(.networks) > div:nth-child(1){
    position: relative;
    transform: rotateY(0deg);
    z-index: 2;
}
.teamgrid > div:has( .more input[type="checkbox"]:checked) > div:nth-child(1){
    transform: rotateY(180deg);
}

.teamgrid > div:has( .more input[type="checkbox"]:checked) .extra{
    transform: rotateY(360deg);
}

.teamgrid .nomore *{
    transition: none !important;
    transform: none !important;
}
.teamgrid .more{
    position: absolute;
    right: 2rem;
    bottom: 2rem;
}

.cardcontainer .green{
    display: grid;
}
.cardcontainer{
    position: relative;
    transition: transform 0.6s;
	transform-style: preserve-3d;
}
.green:has(.story .titlegrid input[type="checkbox"]:checked){
    transform: rotateY(180deg);
}
.cardcontainer .green,
.storytext{
    backface-visibility: hidden;
    transition: transform 0.6s;
	transform-style: preserve-3d;
}
.storytext{
    position: absolute;
    inset: 0;
    padding: 2rem;
    background-color: var(--softgreen);
    transform: rotateY(180deg);
    border-radius: 50px;
    display: grid;
}
.cardcontainer:has(.story .titlegrid .id1 input[type="checkbox"]:checked) .storytext.id1,
.cardcontainer:has(.story .titlegrid .id2 input[type="checkbox"]:checked) .storytext.id2,
.cardcontainer:has(.story .titlegrid .id3 input[type="checkbox"]:checked) .storytext.id3,
.cardcontainer:has(.story .titlegrid .id4 input[type="checkbox"]:checked) .storytext.id4,
.cardcontainer:has(.story .titlegrid .id5 input[type="checkbox"]:checked) .storytext.id5,
.cardcontainer:has(.story .titlegrid .id6 input[type="checkbox"]:checked) .storytext.id6
{
    transform: rotateY(360deg);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}
.cardcontainer input[type="checkbox"],
.teamgrid input[type="checkbox"] {
    visibility: hidden;
    position: relative;
    height: 2.3rem; 
    width: 2.3rem; 
    align-self: flex-end;
}

.cardcontainer input[type="checkbox"]:before,
.teamgrid input[type="checkbox"]:before{
    content: "arrow_forward"; 
    position: absolute;
    inset: 0;
    font-size: 1.5rem; 
    line-height: 2.3rem;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white); 
    font-family: Material Symbols Rounded;
    z-index: 1;
    visibility: visible;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}
.storytext,
.extra
{
    z-index: 0;
    animation: fadein 3s;
}
.story p, 
.quote
{
    display: none;
}
.teamgrid button, 
.storytext button{
    margin-top: 2rem;
    align-self: end;
    display: block;
    visibility: hidden;
    position: relative;
    height: 2.4rem; 
    width: 2.4rem; 
}
.teamgrid button:before,
.storytext button:before{
    content: "close"; 
    position: absolute;
    inset: 0;
    font-size: 1.5rem; 
    line-height: 2.2rem;
    /* padding: 0.5rem; */
    border-radius: 50%;
    background-color: var(--black);
    color: var(--cottonwhite); 
    font-family: Material Symbols Rounded;
    /* background-position: center;
    background-size: cover;
    background-image: url('/images/arrow.png'); */
    z-index: 1;
    visibility: visible;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}
.storytext button:before{
    color: var(--softgreen); 
}
#team .teamgrid .extra button:before{
    color: var(--softblue); 
}
.story{
    margin-bottom: 1rem;
}
.storytext p{
    line-height: 1.7;
}
.teamgrid button, 
.storytext button,
.cardcontainer input[type="checkbox"]:before{
    transition: 0.3s;
}
.teamgrid button:hover
.storytext button:hover,
.cardcontainer input[type="checkbox"]:hover::before
{
   filter: invert(1); 
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
/* .cardcontainer:has(.story .titlegrid input[type="checkbox"]:checked) input[type="checkbox"]:checked {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    transform: scaleX(2000%) translate3d( 0, 0, 0);
    width: 100px; 
    visibility: visible;
    
} */
}

@supports not selector(:has(*)) {
    .storytext,
    .cardcontainer input[type="checkbox"],
    .teamgrid input[type="checkbox"],
    .teamgrid > div:not(.networks) > div:nth-child(2) {
        display: none;
    }
}
input, textarea, select {
	font-family:"Open Sans", Calibri, "Trebuchet MS", Arial, Helvetica, sans-serif, Sans;
	font-size: 15px;
	padding: 7px;
	background-color: #fff;
	background-color: var(--blue);
	border: 2px solid var(--black);
	max-width: 100%;
}
table {
	width: 100%;
	border-collapse: collapse;
}
td {
	padding: 5px 1vw 5px 5px;
	vertical-align: top;
}
tr:nth-child(odd){
    background-color: #f0f0f0 !important;
}
tr:nth-child(even) {
    background-color: #fff !important;

}
td {
	vertical-align: top;
}
}

@media only screen and ( max-width: 799px ) {
body {
    margin: 8px;
}
.social,
.good,
.network{
    display: block;
    max-width: 100px; 
    text-align: center;
    padding: 0.5rem;
}
.social{
    margin-bottom: 0.5rem; 
}
.links{
    flex-basis: 100%;
    visibility: hidden;
    transform: scale(0);
    transition: 0.5s;
    opacity: 0;
    padding: 1rem 0;
    position: absolute;
    top: 184px;
    left: 8px;
    right: 8px; 
    z-index: 50;
    animation: fadein 1s;
    border-radius: 50px;
    text-align: center;
}
.links a{
    display: block;
    width: auto;
    border-radius: 0;
    padding: 1rem;
    background-color: var(--black); 
    color: var(--white) !important; 
}
.links a:first-of-type{
    border-radius: 50px 50px 0 0;
}
.links a:last-of-type{
    border-radius: 0 0 50px 50px;
}
.links a:hover{
    background-color: var(--softblue);
}
.storytext,
.cardcontainer input[type="checkbox"],
.teamgrid input[type="checkbox"],
.teamgrid > div:not(.networks) > div:nth-child(2) {
    display: none;
}

.button-two[data-state="opened"]+.links,
.button-two[aria-expanded="true"]+.links{
    transform: scale(1);
    visibility: visible;
    opacity: 1;
}
.webdesigner{
    display: none;
}
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0){ 
    .links{
        display: block;
        position: relative;
        visibility: visible;
        opacity: 1;
        transform: scale(1);
        top: 0;
    }
    .button-two{
        display: none;
    }

}
picture, 
.sgn img{
    max-width: 120px; 
}
}



@media only screen and ( max-width: 360px ) {
    body {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-all;
        word-break: break-word;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

}