:root {
  --text: #ffffff;
  --line: rgba(255, 255, 255, .22);
  --serif: "Albert Sans", sans-serif;
  --sans: "Montserrat", Arial, sans-serif;
  --nav-top: 30px;
  --nav-h: 109px;
  --nav-gap: -20px;
   --glass: rgba(255, 255, 255, .2);
    --glass1: rgba(255, 255, 255, .16);
  --blur: blur(30px);
  
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: clip
}

@keyframes navIn {
  from {
    opacity: 0;
    translate: 0 14px
  }

  to {
    opacity: 1;
    translate: 0 0
  }
}

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

a:focus {
  outline: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

.container-wide {
  width: 100%;
}

.container {
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: 0px auto;
}

#about .container {
  max-width: 998px;
}

@keyframes navIn {
  from {
    opacity: 0;
    translate: 0 14px
  }

  to {
    opacity: 1;
    translate: 0 0
  }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  padding-bottom: 155px;
}
@keyframes zoom {
  to {
    transform: scale(1)
  }
}
body::before {content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  transform: scale(1.2);
  animation: zoom 2.4s cubic-bezier(.2, .7, .2, 1) forwards;
  background-image: url(../images/bg-image.jpg);
  background-size: cover;
  background-position: center
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, .4) */
}



.logo {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fade 1.4s ease 1.1s forwards
}

.logo img {
  display: block;
  width: clamp(240px, 49.5vw, 792px);
  /* 792 / 1600 = 49.5vw */
  height: auto;
  aspect-ratio: 792 / 203;
  margin: 0 auto;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* NAV: sits on the bottom edge of the hero, then sticks 30px from the top */
.nav {
  position: sticky;
  top: 30px;
  z-index: 50;
  height: 109px;
  margin: -155px auto 42px;
  display: flex; 
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
   backdrop-filter: var(--blur);
  border-radius: 80px;
  /* animation: navIn 1s ease 1.8s both */
  animation: none;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: clamp(24px, 4vw, 80px)
}

.nav a {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 23%;
  text-align: right;
  text-transform: uppercase;
  padding: 8px 2px;
  color: rgba(255, 255, 255);
  transition: color .3s;

}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform .35s;
  transform-origin: left;
}

.nav a:hover,
.nav a.active {
  color: var(--text)
}

.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1)
}

.nav a.nav-title img {
  display: block;
  width: 232px;
  /* 232 / 1600 = 14.5vw */
  height: auto;
  aspect-ratio: 232 / 78;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--text);
  transition: transform .3s, opacity .3s
}

.burger span:nth-child(1) {
  top: 16px
}

.burger span:nth-child(2) {
  top: 22px
}

.burger span:nth-child(3) {
  top: 28px
}

.nav.open .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

.nav.open .burger span:nth-child(2) {
  opacity: 0
}

.nav.open .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

.nav a.nav-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  padding: 0
}

.nav a.nav-title::after {
  display: none
}

/* SECTIONS */
.about {
  padding: clamp(115px, 11.82vw, 227px) 0 0;
}

.h2,
h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 100%;
  letter-spacing: 23%;
  text-transform: uppercase;
}

.about-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px
}

.about-head h2 {
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
  text-align: right;
}

.about-line {
  flex: 1;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.45, 0, .2, 1) .3s
}

#about h3 {
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease 1.4s, transform 1s ease 1.4s;
  font-family: var(--serif);
  font-weight: 300;
 font-size: 50px;
  line-height: 129%;
  letter-spacing: 0%;
  color: #ffffff;
}
#about p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease 1.4s, transform 1s ease 1.4s;
font-family: var(--serif);
font-weight: 300;
 font-size: 30px;
line-height: 140%;
letter-spacing: 0%;
  color: #ffffff;
  margin-top: 45px;
}
#about.in .about-head h2 {
  opacity: 1
}
#about.in h3 {
    opacity: 1;
    transform: none;
}

#about.in .about-line {
  transform: scaleX(1)
}

#about.in p {
  opacity: 1;
  transform: none
}

main,
footer {
  position: relative;
  z-index: 2
}
footer{
  margin-top: -1px;
}
.team {
  padding-top: clamp(145px, 10.44vw, 216px)
}

.team-list {
  list-style: none;
  margin-top: 55px;
}

.line-ul {
  height: 1px;
  background: rgba(255, 255, 255, .5);
}

.team-list li {
  position: relative;
  font-size: clamp(15px, 1.25vw, 18px)
}

.line {
  position: relative;
}

.team-list li .line::before,
.team-list li .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

.team-list li .line::before {
  background: rgba(255, 255, 255, .5);
  height: 1px;
}

.team-list li .line::after {
  background: #fff;
  transform: scaleX(.0005);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.45, 0, .2, 1);
  height: 2px
}

@media(hover:hover) {
  .team-list li:hover .line::after {
    transform: scaleX(1)
  }
}

.team-list li.open::after {
  transform: scaleX(1)
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 42px 0 55px;
}

.team-list li .row h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(32px, 2.6vw, 50px);
  line-height: 129%;
  letter-spacing: 0%;
  color: #fff;
}

.bio-btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 129%;
  letter-spacing: 0%;
  border-radius: 30px;
  padding: 20px;
  border: 1px solid #fff;
  color: #fff;
  background: linear-gradient(#31617F, #31617F) no-repeat left bottom/100% 0%;
  transition: background-size .4s cubic-bezier(.45, 0, .2, 1), color .3s, border-color .3s
}

.bio-btn:hover,
.team-list li.open .bio-btn,
.team-list li:hover .bio-btn {
  color: #fff;
  border-color: #fff;
  background-size: 100% 100%
}


.bio {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bio>div {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  backdrop-filter: blur(0);
  background: rgba(255, 255, 255, 0);
  transition:
    opacity 350ms ease,
    visibility 0s linear 650ms,
    backdrop-filter 500ms ease,
    background-color 500ms ease;
}

.bio p {
  max-width: 640px;
  margin: 0;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms ease,
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bio p:not(:last-of-type) {
  padding: 0 0 20px;
}

.team-list li.open .bio {
  grid-template-rows: 1fr;
  padding-top: 0px;
  padding-bottom: 72px;
  transition-delay: 0s;
}

.team-list li.open .bio>div {
  visibility: visible;
  opacity: 1;
background: var(--glass1);
  -webkit-backdrop-filter: var(--blur);
   backdrop-filter: var(--blur);
  transition:
    opacity 450ms ease,
    visibility 0s linear 0s,
    backdrop-filter 550ms ease,
    background-color 550ms ease;
}

.team-list li.open .bio p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

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

  .bio,
  .bio>div,
  .bio p {
    transition: none !important;
  }
}

.team {
  padding-bottom: 177px;
}

.bio-wrap {
  padding: 70px 0px;
  display: flex;
  gap: 66px;
}

.bio-left h5 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: 36px;
  line-height: 129%;
  letter-spacing: 0%;
  color: #fff;
}

.bio-left h5 span {
  font-size: 36px;
  font-weight: 500;
  font-family: var(--serif);
}

.bio-left {
  width: 651px;
}

.bio-right p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0%;
  color: #fff;
}

.contact-sec {
  background: var(--glass1);
  -webkit-backdrop-filter: var(--blur);
   backdrop-filter: var(--blur);
  padding: 50px 0px 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 674fr 691fr;
  align-items: center;
  column-gap: clamp(40px, 5.3vw, 85px);
  max-width: 1450px;
  margin-left: max(20px, calc(50% - 700px));
  margin-right: 0;
}

.contact-info>div {
  max-width: 431px;
}

.contact-info h2 {
  margin-bottom: 42px;
}

.contact-grid address {
  margin-bottom: 42px;
}

.contact-grid address,
.contact-email a,
footer p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 129%;
  letter-spacing: 0%;
  color: #fff;

}

.contact-grid p strong {
  display: block;
  color: var(--text);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 8px
}

.map {
  position: relative
}

.map img {
  aspect-ratio: 691/700;
  width: 100%;
}

.contact-email {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 33px;
}

footer {
  background-color: #1B090A;
  padding:  0;
}

footer p {
  text-align: center;
}

#contact .contact-info h2,
#contact .contact-address,
#contact .contact-divider,
#contact .contact-email,
#contact .map {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

#contact .contact-address {
  transition-delay: .15s
}

#contact .contact-divider {
  height: 1px;
  width: 0;
  border: none;
  outline: 0;
  background: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition:
    width .9s cubic-bezier(.22, 1, .36, 1),
    opacity .9s ease,
    transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: .3s;
}

#contact.in .contact-divider {
  width: 100%;
  opacity: 1;
  transform: none;
}

#contact .contact-email {
  transition-delay: .45s
}

#contact .map {
  transition-delay: .3s
}

#contact.in .contact-info h2,
#contact.in .contact-address,
#contact.in .contact-divider,
#contact.in .contact-email,
#contact.in .map {
  opacity: 1;
  transform: none;
}

#about,
#team,
#contact {
  scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + var(--nav-gap));
}

.error404{
  display: flex;
  flex-direction: column;height: 100vh;
}

.error404 .nav{
  top: var(--nav-top);margin-top: 0px;position: fixed;
    left: 50%;
    transform: translateX(-50%);animation: none;margin-bottom: 0px;
}
   .error404 .hero {
        display: none;
    }
    .error404 main{    
    display: flex;flex:1;
    flex-direction: column;
    justify-content: center;
  padding: calc(var(--nav-h) + var(--nav-top)) 0px 0;
    /* height: calc(100vh - 184px); */
    max-width: 100%;
    }
    .error-404-section > .container{
      text-align: center;
    }
    .error-wrap{max-width: 770px;margin: 0px auto;}
    .error-wrap h1{
      font-family: var(--serif);
font-weight: 300;
font-size: clamp(80px, 10vw, 180px);
line-height: 129%;
letter-spacing: 0%;
text-align: center;color:#fff;
    }
    .error-wrap p{    
font-weight: 300;
 font-size: clamp(32px, 2.6vw, 50px);
line-height: 129%;
letter-spacing: 0%;
text-align: center;
font-family: var(--serif);color:#fff;
   }
   .error-wrap a{
  font-family: var(--sans);
    font-weight: 400;
    font-size: 18px;
    line-height: 129%;
    letter-spacing: 0%;
    border-radius: 30px;
    padding: 20px;
    border: 1px solid #fff;
    color: #fff;
    background: linear-gradient(#31617F, #31617F) no-repeat left bottom / 100% 0%;
    transition: background-size .4s cubic-bezier(.45, 0, .2, 1), color .3s, border-color .3s;display: inline-block;margin-top: 50px;
}
.error-wrap a:hover,.error-wrap a:active,.error-wrap a:focus{
    color: #fff;
    border-color: #fff;
    background-size: 100% 100%;
}
.disclaimer{
  padding: 70px 0;margin:0px auto;
  border-bottom: 1px solid rgba(255, 255, 255,.3);
}
.disclaimer p{
text-align: left;
max-width: 992px;margin:0px auto;
}
.disclaimer + p{
  padding:30px 0
}
@media(max-width:1440px) {
  #about h3 {
font-size: clamp(32px, 2.6vw, 50px);
}
 #about p{
font-size: clamp(20px, 1.6vw, 30px);
 }
.team{
  padding-bottom: 135px;
}
}
@media(max-width:1368px) {
  .container {
    max-width: 1240px;
  }
  #about p{margin-top: 36px;}
   .error-wrap a{margin-top: 30px;}
.error-wrap{max-width: 550px;}

  :root {
    --nav-top: 20px;
    --nav-h: 70px;
    --nav-gap: 0px;
  }
.error-wrap h1{line-height: 100%;margin-bottom: 20px;}
  .hero {
    padding-bottom: 100px;
  }

  .nav a.nav-title img {
    width: 150px
  }

  .nav {
    height: var(--nav-h);
    margin-top: -98px;
    top: var(--nav-top)
  }

  .nav a {
    font-size: 14px;
  }

  #about .container {
            max-width: 710px;
  }

  .row {
    padding: 32px 0 45px;
  }

  .contact-grid {
    margin-left: max(20px, calc(50% - 620px));
    column-gap: 60px;
    margin-right: 20px;
  }
  .error-wrap{padding:120px 0}
}

@media (max-width:1040px) {
  .contact-sec {
    padding-top: 50px
  }

  .contact-grid {
    column-gap: 40px
  }
.disclaimer{
  padding: 60px 0;
}
    
}

@media(max-width:768px) {

  #contact .contact-info h2,
  #contact .contact-address,
  #contact .contact-divider,
  #contact .contact-email,
  #contact .map {
    opacity: 0;
    transform: translateY(18px);
  }

  .nav a.nav-title img {
    width: 110px;
  }

  .bio-wrap {
    flex-direction: column;
    gap: 30px
  }

  .bio-wrap>div {
    width: 100%
  }

  .bio-left h5,
  .bio-left h5 span {
    font-size: 24px;
  }

  .bio-right p {
    font-size: 16px;
  }

  .bio-wrap {
    padding: 50px 0
  }

  .bio-btn {
    padding: 16px
  }

  .team-list li.open .bio {
    padding-bottom: 50px;
  }

  .team {
    padding-bottom: 80px;
  }

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

  .em-icon {
    max-width: 32px;
    display: flex;
    align-items: center;
  }

  .em-icon img {
    width: 100%;
  }

  .contact-info>div {
    max-width: 100%
  }

  .contact-sec {
    padding-top: 150px;
  }

  #contact,
  #about,
  #team {
    scroll-margin-top: 0px;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  :root {
    --nav-top: 16px;
    --nav-h: 56px;
    --nav-gap: -40px;
  }

  .hero {
    padding-bottom: 0px;
    padding-top: 70px;
  }

  /* NAV: one glass (on ::before) covers the pill, the ul and every link */
  .nav {
    --glass: rgba(255, 255, 255, .16);
    --blur: blur(15px);
    --links: 3;
    /* number of menu links */
    --row: 48px;
    /* height of each link row */
margin-top: 0px;
    top: var(--nav-top);
    width: calc(100% - 32px);
    height: auto;
    min-height: var(--nav-h);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);animation: none;margin-bottom: 0px;
    padding: 0 8px 0 15px;
    border-radius: 16px;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    overflow: hidden;
    /* the nav's radius clips the links, so the ul needs no radius */
    transition: margin-bottom .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
  }

  /* the open menu overlays the page instead of pushing it down */
  .nav.open {
    margin-bottom: calc(42px - var(--links) * var(--row));
  }

  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    pointer-events: none;
  }

  /* first row: logo and burger centered */
  .nav a.nav-title {
    display: flex;
    align-items: center;
    height: var(--nav-h);
  }

  .burger {
    display: block;
    height: var(--nav-h);
  }

  .burger span:nth-child(1) {
    top: calc(50% - 6px);
  }

  .burger span:nth-child(2) {
    top: 50%;
  }

  .burger span:nth-child(3) {
    top: calc(50% + 6px);
  }

  /* ul: normal flow, no background, no radius, no blur */
  .nav ul {
    flex: 0 0 calc(100% + 23px);
    /* full pill width: cancels the 15px + 8px padding */
    margin: 0 -8px 0 -15px;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .4s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s linear .4s;
  }

  .nav.open ul {
    max-height: calc(var(--links) * var(--row));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease .05s, visibility 0s;
  }

  /* links: no background, only a tint on hover, press and active */
  .nav li a {
    display: flex;
    align-items: center;
    height: var(--row);
    padding: 0 15px;
    font-size: 12px;
    background: transparent;
    border-top: 1px solid var(--line);
    transition: background-color .25s ease;
  }

  .nav li a::after {
    display: none;
  }

  .nav li a:hover,
  .nav li a:active,
  .nav li a.active {
    background: rgba(255, 255, 255, .12);
  }

  /* layout */
  .contact-sec {
    padding: 80px 20px 50px;
    scroll-margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-left: 0;
    margin-right: 0;
  }

  #about,
  #team {
    scroll-margin-top: 0;
  }

  #contact {
    scroll-margin-top: 40px;
  }
  .error-wrap {
        padding: 100px 0;
    }
}

@media(prefers-reduced-motion:reduce) {
  /* .hero-bg{animation:none;transform:none}.logo{animation:none;opacity:1}html{scroll-behavior:auto}#about h2,#about p,.about-line,.bio,.bio p,.team-list li::after{transition:none} */
}

@media(max-width:600px) {

  .bio-btn,
  .contact-grid address,
  .contact-email a,
  footer p {
    font-size: 14px;
  }
#about p{
      margin-top: 20px;
}
  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-email>div {
    aspect-ratio: 44/32;
    width: 24px;
  }

  .contact-email>div img {
    width: 100%
  }


  .bio-btn,
  .contact-grid address,
  .contact-email a,
  footer p ,.error-wrap a{
    font-size: 14px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-email>div {
    aspect-ratio: 44/32;
    width: 24px;
  }

  .contact-email>div img {
    width: 100%
  }

  .contact-grid {
    gap: 60px
  }
.disclaimer{
  padding: 50px 0;
}
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media screen and (max-width: 600px) and (orientation: landscape) {
.error404 main{
  padding: 100px 0 80px;
}
}