/* ==========================================
   FONTS
========================================== */
@font-face{
  font-family:'Monument Grotesk';
  src:url('fonts/MonumentGrotesk-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Monument Grotesk';
  src:url('fonts/MonumentGrotesk-Medium.ttf') format('truetype');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Monument Grotesk';
  src:url('fonts/MonumentGrotesk-Bold.ttf') format('truetype');
  font-weight:600;
  font-style:normal;
  font-display:swap;
}



/* ==========================================
   COLORS
========================================== */
:root{
  --pink:#8dd1f9;
  --gray:#e7e4dd;
  --terracotta:#009BFF;
  --olive:#877542;

  --paper:#ebebeb;
  --ink:#1c1a15;
  --ink-soft:#4a463d;
  --line:rgba(28,26,21,0.14);
}


/* ==========================================
   BASE
========================================== */
*{
  box-sizing:border-box;
}
html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Monument Grotesk', sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
}


/* ==========================================
   HEADER
========================================== */

header{
  display:grid;
  grid-template-columns:
    1fr
    0.2fr
    0.3fr;
  align-items:start;
  padding:38px 40px 6px;
  gap:5px;
  flex-wrap:wrap;
  background:var(--paper);
  position:relative;
  z-index:200;
}


/* ---------- Logo ---------- */

.logo{
  display:flex;
  align-items:center;
  gap:2px;
}

.logo svg{
  height:52px;
  width:auto;
  display:block;
}


/* ---------- About button ---------- */

.about-btn{
  display:inline-block;

  font-family:'Monument Grotesk', sans-serif;
  font-size:22px;
  font-weight:600;
  line-height:1.5;

  text-decoration:none;

  color:#9C9C9C;

  cursor:pointer;
  align-self:flex-start;

  transition:
    transform .25s cubic-bezier(.4,0,.2,1),
    background .25s ease,
    color .25s ease;
}

.about-btn:hover{
  transform:translateY(-2px);
  color:var(--ink);
}

.about-btn:active{
  transform:translateY(0);
}

/* ---------- Team button ---------- */

.team-btn{
  display:inline-block;

  font-family:'Monument Grotesk', sans-serif;
  font-size:22px;
  font-weight:600;
  line-height:1.5;

  text-decoration:none;

  color:#9C9C9C;

  cursor:pointer;
  align-self:flex-start;

  transition:
    transform .25s cubic-bezier(.4,0,.2,1),
    background .25s ease,
    color .25s ease;
}

.team-btn:hover{
  transform:translateY(-2px);
  color:var(--ink);
}

.team-btn:active{
  transform:translateY(0);
}

/* ==========================================
   ABOUT PAGE
========================================== */

.about-main{
  display:grid;
  grid-template-columns:1fr 0.9fr;
  column-gap:60px;

  margin:0 auto;
  padding:36px 40px 20px;
}


/* ---------- Main About Text ---------- */

.about-hero{
  margin:0;
  padding:30px 0 0;

  font-family:'Monument Grotesk', sans-serif;
  font-size:35px;
  font-weight:600;
  line-height:1.2;

  color:#00000C;
}

.about-hero .eyebrow{
  font-family:'Monument Grotesk', sans-serif;
  font-size:20px;
  font-weight:600;

  color:#9C9C9C;
}


/* ---------- Contact / Info ---------- */

.about-section{
  display:grid;
  grid-template-columns:.65fr 1.8fr;
  column-gap:0;
  row-gap:70px;
  margin-top:54px;

  align-self:start;
  align-content:start;
}

.about-section h2{
  margin:0;
  padding:0;

  font-family:'Monument Grotesk', sans-serif;
  font-size:20px;
  font-weight:600;
  line-height:1.2;

  color:#9C9C9C;
}

.about-section > div{
  margin:0;
  padding:0;
}

.about-section p{
  margin:0;
  padding:0;

  font-family:'Monument Grotesk', sans-serif;
  font-size:20px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;

  color:#000;
}


.site-footer{
  width:100%;
  margin-top:60px;
  padding:0;
  overflow:hidden;
}

.site-footer img{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
}


/* ==========================================
   MEET THE TEAM
========================================== */

.team-main{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:40px;

  padding:60px 40px 80px;
  min-height:700px;
}


/* ==========================================
   LEFT COLUMN
========================================== */

.team-intro{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  margin:0;
  padding:30px 0 0;

  font-family:'Monument Grotesk', sans-serif;
  font-size:35px;
  font-weight:600;
  line-height:1.2;

  color:#00000C;
}

.eyebrow{
  font-family:'Monument Grotesk', sans-serif;
  font-size:20px;
  font-weight:600;

  color:#9C9C9C;
}

.team-footer-image{
  display:block;

  width:100%;
  max-width:500px;
  height:auto;

  margin-top:auto;
  align-self:flex-start;
}


/* ==========================================
   RIGHT COLUMN
========================================== */

.team-stage{
  position:relative;
  width:100%;
  min-height:760px;
  cursor:pointer;
}


/* ==========================================
   TEAM CARDS
========================================== */

.team-card{
  position:absolute;

  width:160px;

  left:50%;
  top:180px;

  transform:
    translate(-50%, -50%)
    translate(var(--x, 0px), var(--y, 0px))
    rotate(var(--r, 0deg));

  transition:
    left .8s cubic-bezier(.16,1,.3,1),
    top .8s cubic-bezier(.16,1,.3,1),
    transform .8s cubic-bezier(.16,1,.3,1);

  cursor:pointer;
}


/* ==========================================
   PLACEHOLDER
========================================== */

.team-square{
  width:160px;
  height:160px;
  background:#d9d9d9;
}

.team-square img{
  display:block;
  width:100%;
  height: 160px;;


  object-fit:cover;
}


/* ==========================================
   STARTING PILE
========================================== */

.team-card:nth-child(1){
  --x:-18px;
  --y:5px;
  --r:-8deg;
  z-index:10;
}

.team-card:nth-child(2){
  --x:15px;
  --y:-10px;
  --r:6deg;
  z-index:9;
}

.team-card:nth-child(3){
  --x:-5px;
  --y:15px;
  --r:-3deg;
  z-index:8;
}

.team-card:nth-child(4){
  --x:20px;
  --y:8px;
  --r:9deg;
  z-index:7;
}

.team-card:nth-child(5){
  --x:-22px;
  --y:-15px;
  --r:4deg;
  z-index:6;
}

.team-card:nth-child(6){
  --x:8px;
  --y:-5px;
  --r:-6deg;
  z-index:5;
}

.team-card:nth-child(7){
  --x:-10px;
  --y:20px;
  --r:7deg;
  z-index:4;
}

.team-card:nth-child(8){
  --x:25px;
  --y:-18px;
  --r:-4deg;
  z-index:3;
}

.team-card:nth-child(9){
  --x:-25px;
  --y:0px;
  --r:10deg;
  z-index:2;
}

.team-card:nth-child(10){
  --x:5px;
  --y:12px;
  --r:-2deg;
  z-index:1;
}


/* ==========================================
   NAMES
========================================== */

.team-info{
  margin-top:6px;

  font-family:'Monument Grotesk', sans-serif;

  opacity:0;

  transition:opacity .3s ease;
}

.team-info h2{
  margin:0;

  font-size:14px;
  font-weight:600;
  line-height:1.2;

  color:#828282;
}

.team-info h3{
  margin:0;

  font-size:20px;
  font-weight:600;
  line-height:1.2;

  color:#000;
}


/* ==========================================
   OPEN — 3 COLUMN GRID
========================================== */

.team-stage.open .team-card{
  --x:0px;
  --y:0px;
  --r:0deg;
}


/* ROW 1 */

.team-stage.open .team-card:nth-child(1){
  left:17%;
  top:120px;
}

.team-stage.open .team-card:nth-child(2){
  left:50%;
  top:120px;
}

.team-stage.open .team-card:nth-child(3){
  left:83%;
  top:120px;
}


/* ROW 2 */

.team-stage.open .team-card:nth-child(4){
  left:17%;
  top:420px;
}

.team-stage.open .team-card:nth-child(5){
  left:50%;
  top:420px;
}

.team-stage.open .team-card:nth-child(6){
  left:83%;
  top:420px;
}


/* show names */

.team-stage.open .team-info{
  opacity:1;
}


/* ==========================================
   SLIGHT ANIMATION STAGGER
========================================== */

.team-card:nth-child(1){ transition-delay:0s; }
.team-card:nth-child(2){ transition-delay:.025s; }
.team-card:nth-child(3){ transition-delay:.05s; }
.team-card:nth-child(4){ transition-delay:.075s; }
.team-card:nth-child(5){ transition-delay:.1s; }
.team-card:nth-child(6){ transition-delay:.125s; }
.team-card:nth-child(7){ transition-delay:.15s; }
.team-card:nth-child(8){ transition-delay:.175s; }
.team-card:nth-child(9){ transition-delay:.2s; }
.team-card:nth-child(10){ transition-delay:.225s; }


/* ==========================================
   MOBILE
========================================== */

@media(max-width:760px){


  /* ---------- About Page ---------- */

  .about-main{
    display:flex;
    flex-direction:column;
    gap:50px;

    padding:24px 40px 40px;
    margin:0;
  }


  /* ---------- Main About Text ---------- */

  .about-hero{
    margin:0;
    padding:0;

    font-size:26px;
    font-weight:600;
    line-height:1.2;
  }

  .about-hero .eyebrow{
    font-size:16px;
  }


  /* ---------- Contact / Info ---------- */

  .about-section{
    display:flex;
    flex-direction:column;
    gap:12px;

    width:100%;
    margin:0;
    padding:0;
  }

  .about-section h2{
    margin:24px 0 0;
    font-size:16px;
    line-height:1.2;
  }

  .about-section h2:first-child{
    margin-top:0;
  }

  .about-section > div{
    width:100%;
    margin:0 0 16px;
    padding:0;
  }

  .about-section p{
    font-size:18px;
    line-height:1.4;
  }


  /* ---------- Footer ---------- */

  .site-footer{
    width:100%;
    margin-top:30px;
    padding:0;
  }

  .site-footer img{
    display:block;
    width:100%;
    height:auto;
  }

  .team-main{
    grid-template-columns:1fr;
    gap:40px;

    padding:40px 40px 40px 40px;
  }

  .team-stage{
    min-height:700px;
  }

  .team-card{
    width:140px;
  }

  .team-square{
    width:140px;
    height:140px;
  }

  .team-stage.open .team-card:nth-child(1){
    left:25%;
    top:90px;
  }

  .team-stage.open .team-card:nth-child(2){
    left:75%;
    top:90px;
  }

  .team-stage.open .team-card:nth-child(3){
    left:25%;
    top:320px;
  }

  .team-stage.open .team-card:nth-child(4){
    left:75%;
    top:320px;
  }

  .team-stage.open .team-card:nth-child(5){
    left:25%;
    top:550px;
  }

  .team-stage.open .team-card:nth-child(6){
    left:75%;
    top:550px;
  }
}