@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

:root{
  --navy:#082c5a;
  --blue:#1472c3;
  --ink:#111821;
  --muted:#66717f;
  --paper:#f3f4f6;
  --white:#fff;
  --line:#d9dde3;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
}

h1,
h2,
h3{
  margin:0;
  font-family:Manrope,Arial,sans-serif;
  line-height:1.02;
  letter-spacing:-.04em;
}

h1{
  font-size:clamp(3.2rem,7vw,7.5rem);
}

h2{
  font-size:clamp(2.2rem,4.6vw,4.6rem);
}

p{
  margin:0;
  line-height:1.7;
}

/* Header */

.header{
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1260px;
  margin:0 auto;
  padding:0 28px;
}

.logo {
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.logo img {
 display: block;
    height: 58px;
    width: auto;
}

.header nav{
  display:flex;
  align-items:center;
  gap:30px;
  margin-left:auto;
}

.header a{
  text-decoration:none;
  font-weight:600;
}

.contact-link{
  border:1px solid var(--navy);
  padding:11px 18px;
  border-radius:999px;
}

.menu{
  display:none;
}

/* Hero */

.hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:620px;
  height:calc(100vh - 84px);
  max-height:760px;
  overflow:hidden;
  background:var(--navy);
}

.hero-image{
  position:absolute;
  inset:0;
}

.hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 38%;
  display:block;
}

.overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(4,22,45,.68) 0%,
      rgba(4,22,45,.46) 42%,
      rgba(4,22,45,.08) 78%,
      rgba(4,22,45,0) 100%
    );
} 

.hero-copy{
  position:relative;
  z-index:2;
  color:#fff;
  max-width:760px;
  margin-left:max(28px,calc((100vw - 1260px)/2 + 28px));
  padding:80px 0;
}

.kicker,
.section-label{
  margin-bottom:22px;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:.74rem;
  font-weight:700;
  color:var(--blue);
}

.lead{
  max-width:650px;
  margin-top:28px;
  font-size:1.16rem;
  color:#dce6f1;
}

.actions{
  display:flex;
  gap:14px;
  margin-top:34px;
}

.btn{
  padding:14px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
}

.primary{
  background:var(--blue);
  color:#fff;
}

.ghost{
  border:1px solid rgba(255,255,255,.55);
  color:#fff;
}

.hero-stat{
  position:absolute;
  right:28px;
  bottom:26px;
  z-index:2;
  display:flex;
  flex-direction:column;
  padding:18px 22px;
  border-radius:14px;
  background:rgba(255,255,255,.92);
}

.hero-stat span{
  color:var(--muted);
  font-size:.9rem;
}

/* General sections */

.section{
  max-width:1260px;
  margin:0 auto;
  padding:110px 28px;
}

.intro{
  display:grid;
  grid-template-columns:.35fr 1fr;
  gap:80px;
}

.intro p:last-child{
  margin-top:28px;
  font-size:1.16rem;
  color:var(--muted);
}

.dark{
  max-width:none;
  padding-left:max(28px,calc((100vw - 1260px)/2 + 28px));
  padding-right:max(28px,calc((100vw - 1260px)/2 + 28px));
  background:var(--navy);
  color:#fff;
}

.light{
  color:#83b9eb;
}

.section-head{
  max-width:760px;
  margin-bottom:48px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.cards article{
  min-height:280px;
  padding:28px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
}

.cards h3{
  margin-top:60px;
  font-size:1.55rem;
}

.cards p{
  margin-top:16px;
  color:#cbd8e5;
}

.split{
  max-width:none;
  display:grid;
  grid-template-columns:1fr .5fr;
  gap:60px;
  align-items:end;
}

.split > p{
  color:var(--muted);
}
.section.projects{
    padding-bottom:30px;
}
.contact{
    padding-top:50px;
}

/* Projects */

.project-list {
  display: grid;
  gap: 64px;
}

.project-card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  height: 630px;
  overflow: hidden;
  border-radius: 24px;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
   padding-bottom: 70px;
  color: #ffffff;
  background:
    linear-gradient(
      to top,
      rgba(8, 25, 47, 0.88) 0%,
      rgba(8, 25, 47, 0.25) 42%,
      transparent 68%
    );
}

.project-credit-box {
  width: 100%;
  max-width: 360px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #d7dde5;
}

.project-credit-label,
.project-credit,
.instagram-credit {
  margin: 0;
}

.project-credit-label {
  margin-bottom: 6px;
  font-size: 13px;
  color: #667085;
}

.project-credit {
  margin-bottom: 6px;
  font-size: 14px;
  color: #101828;
}

.instagram-credit {
  font-size: 14px;
  color: #1769c2;
  text-decoration: none;
}

/* Contact */

.contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  margin-top: -30px;
  
}

.contact-box{
  padding:42px;
  border-radius:22px;
  background:var(--paper);
}

.contact-box a{
  display:inline-block;
  margin-top:18px;
  font-size:1.3rem;
  font-weight:600;
  color:var(--navy);
}
.contact-box p {
    margin-bottom:24px;
}

/* Footer */

footer{
  max-width:1260px;
  margin:0 auto;
  padding:32px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
}

footer img{
  width:260px;
  height:auto;
  max-height:54px;
  object-fit:contain;
  object-position:left center;
  display:block;
}

/* Responsive */

@media(max-width:800px){

  .header{
    height:72px;
    padding:0 18px;
  }

  .logo img{
    width:190px;
    max-width:62vw;
    max-height:46px;
  }

  .menu{
    display:block;
    border:1px solid var(--line);
    border-radius:999px;
    padding:8px 13px;
    background:#fff;
  }

  .header nav{
    display:none;
    position:absolute;
    top:72px;
    left:16px;
    right:16px;
    z-index:20;
    padding:20px;
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    flex-direction:column;
  }

  .header nav.open{
    display:flex;
  }

  .hero{
    min-height:740px;
  }

  .hero-copy{
    margin-left:0;
    padding:80px 22px;
  }

  .hero-stat{
    left:22px;
    right:22px;
  }

  .section{
    padding:80px 22px;
  }

  .intro,
  .split,
  .contact{
    grid-template-columns:1fr;
    padding-top: 70px;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .project-media{
     height: 420px;
  min-height: 0;
    border-radius:18px;
  }
   .project-overlay{
    padding:24px;
      padding-bottom: 70px;
  }

  .project-credit-box{
    max-width:100%;
  }

  footer{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    
  }
} 

/* Project alignment fix */

.project-list > .project-card {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  margin-inline: auto;
}

.project-list > .project-card > .project-media {
  width: 100%;
  flex: 0 0 auto;
}

.project-list > .project-card > .project-credit-box {
  position: static;
  display: block;
  align-self: flex-start;

  width: 100%;
  max-width: 360px;

  margin: 28px 0 0;
  padding-top: 16px;

  transform: none;
}
