:root{
  --bg:#252525;
  --text:#f5f5f5;
  --muted:#d8d8d8;
  --line:rgba(255,255,255,.4);
  --white:#fff;
  --black:#111;
  --text-soft:rgba(255,255,255,.7);
}

/* ========================================
   RESET
======================================== */

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

html{
  scroll-behavior:smooth;
}

/* ========================================
   BASE
======================================== */

body{
  background:var(--bg);
  background-image:url('img/epi-bkgnd.png');
  background-repeat:repeat;
  color:var(--text);
  font-family:"rigid-square","Space Grotesk",sans-serif;
  font-weight:400;
  font-style:normal;
  min-height:100vh;
  overflow-x:hidden;
  padding: 0;
}

.Rigid-Square-Italic {
  font-family: "rigid-square", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.Rigid-Square-Bold {
  font-family: "rigid-square", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.Rigid-Square-Bold-Italic {
  font-family: "rigid-square", sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* ========================================
   NAVIGATION
======================================== */

.container {
  margin: 0;
  padding: 72px 0;
}

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0 0 4em;
  padding: 0;
}

.e-badge {
  justify-self: start;
}

.top-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-logo img {
  display: block;
  width: 288px;
  height: auto;
}

.nav-link {
  justify-self: end;
}

.login-trigger{
  background:none;
  color:var(--white);
  border:1px solid rgba(255,255,255,.75);
  padding:.45rem .95rem;
  font-family:inherit;
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.08em;
  cursor:pointer;
  min-width:92px;
  text-align:center;
  transition:
    opacity .375s ease,
    background .375s ease,
    color .375s ease;
}

.login-trigger:hover{
  background:rgba(0,0,0,.8);
}

.login-trigger.active{
  background:rgba(255,255,255,.06);
}

.login-trigger.fade{
  opacity:0;
}

.nav-link{
  display:inline-block;
  text-decoration:none;
  color:var(--white);
}

/* ========================================
   PAGE LAYOUT
======================================== */

.container{
  width:min(1200px,92%);
  margin:auto;
}

.hero{
  max-width:1100px;
}

.intro{
  /*font-size:clamp(1.5rem,4vw,3.2rem); */
  font-size: 2.5em;
  line-height:1.2;
  font-weight:300;
  letter-spacing:.02em;
  text-wrap: pretty;
}

.home .logo-tag{
  display:inline-flex;
  align-items:center;
  margin:0 .1em;
  vertical-align:middle;
  position:relative;
  bottom:4px;
}

.home .logo-tag img{
  height:1em;
  width:auto;
  display:block;
}

/* ========================================
   SERVICES
======================================== */

.services{
  margin-top:40px;
}

.service-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 0;
  border-top:1px solid var(--line);
}

.service-row:last-child{
  border-bottom:1px solid var(--line);
}

.service-title{
  min-width:140px;
  font-weight:700;
}

.service-items{
  flex:1;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.service-items span::after{
  content:"•";
  padding:0 12px 0 24px;
  opacity:.6;
}

.service-items span:last-child::after{
  display:none;
}

/* ========================================
   FOOTER
======================================== */

.footer-grid{
  margin-top:55px;
  display:grid;
  grid-template-columns:
    minmax(180px,250px)
    1fr;
  gap:40px;
}

.links{
  display:flex;
  flex-direction:column;
  gap:18px;
  color:var(--white);
  font-weight:700;
  letter-spacing:.04em;
}

.links a,
.link{
  color:var(--white);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.04em;
}

.links a:hover,
.link:hover{
  opacity:.7;
}

.location, .links {
  font-size:clamp(1rem,1.3vw,1.35rem);
  line-height:1.5;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  width: 100%;
}

.locations {
  display: contents;
}

.location,
.links {
  flex: 1;
}

.location:first-of-type {
  order: 1;
}

.links {
  order: 2;
}

.location:last-of-type {
  order: 3;
}

.location p { 
  font-weight: 100; font-size: .8em; 
}


/* ========================================
   PORTFOLIO PAGE
======================================== */

#nda,
#portfolios{
  margin-top:55px;
}

#nda {
  display:block;
  opacity:1;
  transition:opacity .35s ease;
  text-align: center;
}

#nda.fade-out {
  opacity:0;
}

#nda h3,
#portfolios h3 {
  padding-bottom: .75em;
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px white;
}

#nda p {
  text-align: left;
  line-height:1.8em;
  opacity:.8;
  font-weight:200;
  text-wrap: pretty;
}

.submit-btn{
  width: 100%;
  background:var(--black);
  color:var(--white);
  border:1px solid var(--white);
  padding:14px 24px;
  font-family:inherit;
  font-weight:700;
  letter-spacing:.05em;
  cursor:pointer;
  margin-top:25px;
  transition:
    opacity .375s ease,
    background .375s ease,
    color .375s ease;
}

.submit-btn:hover{
  background:var(--white);
  color:var(--black);
}

#portfolios{
  display:none;
  opacity:0;
  transition:opacity .35s ease;
}

#portfolios.active{
  display:block;
  opacity:1;
}

#portfolios ul{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:48px;
  padding:0;
  margin:0;
}

#portfolios li{
  text-align:center;
}

#portfolios a{
  color:var(--white);
  text-decoration:none;
  display:block;
}

#portfolios img{
  width:100%;
  max-width:340px;
  height: auto;
  display:block;
  margin:0 auto 7px;
  border:1px solid var(--line);
}

#portfolios h4 {
  font-size:1.2rem;
  padding: .5em 0 .25em;
}

#portfolios h5{
  font-size:.95rem;
  font-weight:400;
  opacity:.8;
}

.portfolio .footer-grid{
  border-top:1px solid var(--line);
  padding-top:55px;
}

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

@media (max-width:768px){
  .top-logo img {
    width: 144px;
  }

  .intro{
  /*font-size:clamp(1.5rem,4vw,3.2rem); */
  font-size: 1.75em;
  line-height:1.2;
  font-weight:300;
  letter-spacing:.02em;
 }

 .home .logo-tag{
  bottom:3px;
}

  .footer-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .service-row{
    flex-direction:column; 
    align-items: flex-start;
  }

  .service-title{
    min-width:auto;
  }

  .intro{
    line-height:1.25;
  }

  .service-items{
    flex-direction:column;
    gap:0;
  }
  .service-items span{
    display:block;
    padding-left:24px;
    line-height:1.8em;
    align-self: flex-start;
  }

  .service-items span::after{
    content:"";
  }

  .service-items span::before{
    content:"• ";
  }

   .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  /* Order */
  .location:first-of-type {
    order: 1;
  }

  .location:last-of-type {
    order: 2;
  }

  .links {
    order: 3;

    /* Put the two <p> elements next to each other */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 2rem;
  }

  .location,
  .links {
    width: 100%;
    text-align: center;
  }

  .links p {
    margin: 0;
  }

  #portfolios ul{
    grid-template-columns:1fr;
    gap:32px;
  }

  #portfolios h5{
  padding-bottom: 1.5em;
}
}