:root {
  --container: 1240px;
  --gutter: 20px;
  --header-h: 75px;
  --blue: #1b75b7; /* rgb(27,117,183) */
  --red: #d52619;  /* rgb(213,38,25) */
  --text: #1e1e1c;
  --muted: rgba(30, 30, 28, 0.7);
  --paper: #ffffff;
  --soft: #f4f3f4;
  --radius: 50px;
  --radius-btn: 20px;
  --light-blue: #139ad6;
}



* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
  background: var(--paper);
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--gutter);
  width: 100%;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: var(--text);
  color: #fff;
  padding: 10px 12px;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgb(244 243 244 / 96%);
  backdrop-filter: blur(5px);
  z-index: 50;
  /* box-shadow: 0px 2px 5px 1px rgba(0,0,0,.1); */
  /* border-bottom: 1px solid rgba(30, 30, 28, 0.08); */
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.hero-content {
  border-radius: 15px;
  box-shadow: inset 0px 2px 25px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  border-width: 1px;
  border-style: solid;
  background-color: transparent;
  background-origin: border-box;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 36px; width: auto; }

.primary-nav { justify-self: center; }
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0px 0 0;
  display: flex;
  gap: 45px;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-link:hover {
  color: var(--blue);
}

.has-dropdown { position: relative; }

/* Invisible bridge so the cursor can reach the dropdown without losing :hover */
.has-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  background: var(--soft);
  border-radius: var(--radius-btn);
  box-shadow: rgba(0, 0, 0, 0.12) -2px 2px 18px;
  display: none;
  margin-left: -20px;
}
.dropdown a {
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  font-size: 15px;
}
.dropdown a:hover { color: var(--blue); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.header-cta {
  justify-self: end;
  width: fit-content;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 10px 12px;
  background-color: transparent;
  cursor: pointer;
}


.nav-toggle__icon::before, .nav-toggle__icon::after, .nav-toggle__icon, .nav-toggle__label {
  transition: all .2s linear;
}

.nav-toggle__icon::before {
  transform-origin: 0% 0px
}

.nav-toggle__icon::after {
  transform-origin: 0% 2px;
}


.nav-toggle[aria-expanded="true"] > .nav-toggle__icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > .nav-toggle__icon::after {
  transform: rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] > .nav-toggle__icon, .nav-toggle[aria-expanded="true"]:hover > .nav-toggle__icon {
  background-color: white;
}

.nav-toggle:hover > .nav-toggle__icon, .nav-toggle:hover > .nav-toggle__icon::before, .nav-toggle:hover > .nav-toggle__icon::after {
  background-color: var(--red);
}

.nav-toggle:hover > .nav-toggle__label {
  color: var(--red);
}


.nav-toggle__label { font-weight: 600; font-size: 13px; }
.nav-toggle__icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin-left: 10px;
  position: relative;
  background-color: black;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  padding: 10px 24px 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: fit-content;
}

.btn--menu {
  background: var(--red);
  border-color: var(--red);
  color: #f4f3f4;
  transition: background-color 180ms ease, color 180ms ease;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 1px;
  transition: all .15s linear;
  font-size:13px;
  padding: 5px 15px;
}
.btn--menu:hover {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #f4f3f4;
  transition: background-color 180ms ease, color 180ms ease;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 1px;
  transition: all .15s linear;
}
.btn--primary:hover {
  background: transparent;
  color: white;
  border-color: white;
}
.text-link {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  position: relative;
  display: block;
}
.text-link:hover {color: var(--blue);margin-right: 10px;}

.text-link::after {
  content: " →";
  color: var(--black);
  transition:all .15s linear;
  margin-left:3px;
}

.text-link:hover::after {
  margin-left:6px;
    color: var(--blue);

}




/* Hero */
.hero {
  height: 500px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  /* inset: 0; */
  background:
    linear-gradient(0deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url("../img/hero.jpg") center/cover no-repeat;
  /* transform: translateY(-35px); */
  width: 100%;
  height: 100%;
  top: 0;
  line-height: unset;
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-content {
  border-color: rgba(255, 255, 255, 1);
  border-width: 1px;
  border-style: solid;
  background-color: transparent;
  background-origin: border-box;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: inherit;
  box-shadow: inherit;
  padding: 25px;
  width: fit-content;
  border-radius: 15px;
  box-shadow: inset 0px 2px 25px rgba(255, 255, 255, 0.2);
}
.hero-kicker {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 36px;
  line-height: 1.5;
  font-weight: 600;
}


/* Triangles */

.triangle-up, .triangle-down {
    position: relative;
    opacity: 1;
    aspect-ratio: 1 / 1;
    float:right;
    height: fit-content;
    /* width: calc(30% + 7vw); */
    background-size: cover;
    background-repeat: no-repeat;
}


.triangle-up {
    clip-path: polygon(0% 50%, 100% 100%, 100% 0);
    shape-outside: polygon(0% 50%, 100% 100%, 100% 0);
    /* margin-top: unset; */
    /* margin-bottom: 0; */
    width: 400px;
    height: 800px;
    background-color: #5f9dcc;
    z-index: 2;
    shape-margin: 60px;
    margin-top: -90px;
    -moz-transform: scaleX(-1);
}

.triangle-up::after {
    position:absolute;
    width:100%;
    height:100%;
    content:'';
    z-index: 1;
    opacity: 0.5;
    filter: grayscale(1) brightness(1.2);
    mix-blend-mode: hard-light;
    background-image: url("../img/hero.jpg");
    background-size: cover;
    background-position: 61%;
}

.triangle-hidden {
  position: absolute;
  width: 400px;
  height: 800px;
  bottom: -400px;
  background-color: transparent;
  z-index: 2;
  right: 0;
  transform: unset !important;
  opacity: 0 !important;
}



.triangle-down {
    position:relative;
    clip-path: polygon(0 0, 100% 100% , 100% 0);
    shape-outside: polygon(0 0, 100% 0, 100% 80%, 80% 80%);
    background-color: #a8ccee;
    width: 400px;
    height: 100%;
    opacity: 0.6;
    aspect-ratio: 1/1 !important;
    shape-margin: 15px;
    z-index: 1;
}






/* Services tabs */
.services, .intro {
  position: relative;
  padding: 0;
  display: inline-block;
  width: 100%;
}

.services {}

.services-note {
  margin: auto;
  color: var(--text);
  /* display: block; */
  position: relative;
  padding: var(--gutter);
  padding-top: 40px;
}

.services-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}



.services-inner {position: relative;max-width: var(--container);padding: var(--gutter);padding-bottom: 40px;}

.tabs {}
.tabs-list {
  display: flex;
  gap: 75px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: relative;
}
.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 10px 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  transition: all .15s linear;
}

.tab span {
  white-space: nowrap;
}

.tab:hover {
  color: var(--blue);
}
.tabs-outer {
  width: 100%;
  margin: auto;
  padding: 40px 0px 55px 0;
  position: relative;
  height: 100%;
  background-color: #fafafa;
}
.tabs-panels {
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.tab.is-active {color: var(--blue);}
.tab-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: inline-block;
}
.tab-icon svg {width: 100%;height: 100%;display: block;border-width: 1.5px;border-radius: 100%;border-style: solid;}
.tab-icon svg path { fill: currentColor; }
.panel h2 {
  margin: 0px 0 14px;
  font-size: 33px;
  font-weight: 600;
}
.panel p { margin: 0 0 18px; color: var(--text); }
.panel {
    margin: auto;
    color: var(--text);
    /* padding: 40px 20px; */
    position: relative;
}



/* About / values */
.about {
  position: relative;
  padding: 100px 0 300px 0;
  /* overflow: hidden; */
  margin-top: -200px;
}

.triangle-down__mask {
  position: absolute;
  right: 0;
  top: 0;
  width: 400px;
  opacity: 1;
  aspect-ratio: 1/1;
  z-index: 1;
}
.about-card {
  position: relative;
  background: var(--soft);
  padding: 50px 0;
  overflow: visible;
  justify-content: center;
  z-index: 1;
}
.about-inner {
  max-width: var(--container);
  position: relative;
  display: grid;
  grid-template-columns: 33% 1fr;
  overflow: visible;
  grid-auto-flow: column;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  /* padding-right: 208px; */
}

.about-media { position: relative; }
.about-photo {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.12));
  position: absolute;
  bottom: -30px;
  right: 0;
  z-index: 2;
}
.about-content {padding-right: 40px;}
.about h2 {
  margin: 0 0 10px;
  font-size: 33px;
}
.about p {margin: 0 0 14px;max-width: unset;}

p {
    color: rgba(30, 30, 28, 1);
    line-height: 1.7;
    letter-spacing: 0em;
    font-size: 18px;
    text-align: left;
    font-family: 'Plus Jakarta Sans';
    font-weight: 400;
    font-style: normal;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--blue);
  color: #fff;
  height: 220px;
  display: flex;
  align-items: center;
  margin-top:200px;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "legal meta"
    "nav meta";
  gap: 16px 28px;
  align-items: start;
}
.footer-legal {
  color: rgba(30, 30, 28, 1);
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.15em;
  font-size: 11px;
  text-align: center;
  font-weight: 400;
  font-style: normal;
  padding: 10px 20px;
  background-color: white;
  position: relative;
}

.footer-meta {
  grid-area: meta;
  justify-self: end;
  text-align: right;
}
.footer-nav {
  grid-area: nav;
  justify-self: start;
}
.footer-legal a {
  text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }

.footer-meta {
  display: flex;
  grid-template-columns: 1fr;
  gap: 5px;
  justify-items: end;
  flex-direction: column;
  align-items: flex-end;
}
.footer-meta-item {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: center;
  align-items: center;
  gap: 15px;
}

.footer-meta-item a {
  text-decoration: none;
  text-align: right;
}

.footer-meta-item a:hover {
  text-decoration: underline;
}


.footer-meta__value:hover { text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 10px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}
.footer-nav a:hover { text-decoration: underline; }

.footer-bg {
  position: absolute;
  left: 0;
  width: 400px;
  height: 660px;
  bottom: 0;
  /* aspect-ratio: 1 /1.5; */
  clip-path: polygon(0 0, 100% 440px, 50% 100%, 0% 100%);
  background-color: #5f9dcc;
  overflow: hidden;
}

.footer-bg::before {
  /* clip-path: polygon(0 0, 100% 50%, 30% 100%, 0% 100%); */
  content:'';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url(../img/hero.jpg);
  background-size: 310%;
  background-repeat: no-repeat;
  background-position-x: left 62%;
  background-position-y: top;
  z-index: 1;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.2);
  mix-blend-mode: hard-light;
  overflow: hidden;
  transform: scaleX(-1);
}


.se-icon {
  width: 25px;
  fill: white;
}

/* Responsive */


/* @media (max-width: 1000px) {
  .triangle-up {
    right:0;
    bottom:0;
    width:300px;
    margin-top:unset;
  }
} */

@media screen and (max-width: 1000px) {

  .services {
      display: inline-block;
      /* flex-direction: row-reverse; */
      /* align-items: flex-end; */
      /* align-content: flex-end; */
  }
  
  /* .triangle-up {
    position: absolute;
    top:-40px;
    right: 0;
    bottom: -340px;
    margin-top:unset;
    height: 680px;
    width: 340px;
    background-position: 60%;
    aspect-ratio: 1/1 !important;
    overflow: hidden;
    background-size: 300%;
    background-color: #5f9dcc;
  } */

    .triangle-up {
    /* position: relative; */
    /* right: 0; */
    /* margin-bottom: -340px; */
    /* margin-top: -40px; */
    /* height: 680px; */
    /* width: 640px; */
    /* background-position: 60%; */
    /* aspect-ratio: 1/1 !important; */
    /* overflow: hidden; */
    /* background-size: 300%; */
    /* background-color: #5f9dcc; */
  }


  .tabs-outer {
  }

  .about {
    padding: 100px 0;
  }


}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .primary-nav { justify-self: end; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .primary-nav {
    display: block;
    position: absolute;
    right: -300px;
    top: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(30, 30, 28, 0.08);
    padding: 0 20px;
    overflow: scroll;
    z-index: 6;
    height: calc(100vh - 74px);
    background-color: #fafafa;
    width: 300px;
    transition:right .3s linear;
    border-left: 1px solid #e7e7e7;
  }
  .primary-nav.is-open {
    right:0;
  }
  .btn--menu {
    font-size: 12px;
  }
  .nav-list {flex-direction: column;align-items: flex-start;gap: 15px;}
  .has-dropdown::before { display: none; }
  .dropdown {position: static;display: block;box-shadow: none;padding: 0;margin: 0 0 10px 0;background: transparent;}
  .dropdown a {padding: 8px 0;}
  .services-note {/* padding-right: 20px; */}
  /* .services-bg__base, 
  .triangle-up { right: 0; width: 25; opacity: 0.55; } */

  /* .about { padding: 70px 0; } */
    
  .about-inner { grid-template-columns: 40% 1fr; }
  .triangle-down__mask { right: -220px; top: -140px; width: 560px; opacity: 1; }
  .about-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }
  .about-photo {
  }
  .about-content { max-width: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "legal"
      "meta"
      "nav";
  }

  .footer-bg {
    height: 330px;
  }

  .footer-meta { justify-self: start; text-align: left; justify-items: start; width:100%; }
  .footer-nav { justify-self: start; }

  .nav-link {
    background-color: white;
    width: calc(100% + 35px);
    display:block;
    padding: 10px 10px 10px 20px;
    margin-left: -20px;
    border-bottom:1px solid #eee;
  }

  .nav-link:hover {
    color: #1E1E1C;
  }

}


@media (max-width: 850px) {
  .about-inner {
    grid-template-columns: 50% 1fr;
  }
}

@media (max-width: 800px) {
  .triangle-down {
    /* width:375px; */
  }
}

@media (max-width: 750px) {


  .tabs-outer {
    position: relative;
  }

  .triangle-up {
    width: 300px;
    height: 600px;
    shape-margin: 20px;
  }

   .triangle-down {
     width: 300px;
   }

  
  .triangle-hidden {
    width: 300px;
    height: 600px;
    margin-bottom: 100px;
  }


}


@media screen and (max-width: 700px) {

  .about-card {
    padding:40px;
  }
  .about-inner {
    display:inline-block;
    grid-template-columns: unset;
  }

  .about-photo {
    transform: translateX(0);
    width: 100%;
    position: relative;
    margin: 0px auto 20px auto;
    bottom: 0;
    max-width: 430px;
  }

  .about-content {
    padding-right:0;
  }
  
  .about-content * {
    text-align:center;
  }
  
}

@media (max-width: 650px) {

  .tabs-outer {
  }
  
  .tabs-list {justify-content: space-around;}

  .triangle-up, .triangle-hidden {
    width: 250px;
    height: 500px;
  }

  .triangle-down {
    width: 250px;
    height: 250px;
  }

  .triangle-hidden {
    margin-bottom:150px;
  }
}


@media screen and (max-width:600px) {
      .footer-bg {
        width: 35vw;
        left:0;
        bottom: 0;
        aspect-ratio: 1/1;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
        background-size: cover;
        height: auto;
    }
}

@media (max-width: 575px) {

  .tabs-outer {
    padding-right:0;
  }
  
  .tabs-list {justify-content: space-around;}

  .about {
    margin-top: 0;
  }

  .triangle-up, .triangle-down {
    width:200px;
    height: 200px;
  }

  .triangle-up, .triangle-hidden {
    height: 400px;
  }

  .triangle-hidden {
    margin-bottom: 200px;
    width:200px;
  }
}


@media (max-width: 560px) {
  body { padding-top: 68px; }
  :root {--header-h: 74px;}
  .brand-logo { height: 32px; }
  .hero { height: 560px; }
  .hero-title { font-size: 28px; }
  .hero-kicker { font-size: 14px; }
  .tab {/* font-size: 12px; */}
  .panel h2, .about h2 { font-size: 28px; }
  .services-bg__base, .triangle-up {/* display: none; */}
}

@media (max-width:475px) {
  .triangle-up, .triangle-down, .triangle-up {
    display:none;
  }
}

@media (max-width: 450px) {
  .footer-bg {
    display:none;
  }


  .tabs-list {
    gap:unset;
    justify-content: space-between;
  }


}

@media (max-width: 350px) {
  .tab-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-block;
  }

  button.tab {
    font-size:11px !important
  }
}

/* 

@media screen and (max-width:750px) { .intro { max-height:unset;} }
@media screen and (min-width:750px) { .intro { max-height:360px;} }
@media screen and (min-width:1000px) { .intro { max-height:340px;} }
@media screen and (min-width:1100px) { .intro { max-height:320px;} } */

