* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, Helvetica;
  font-weight: 500;
}

.wrap{
  margin: 0 auto;
  padding: 24px 24px 40px; 
} 

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 16px;
  border-bottom: 2px solid rgba(176, 175, 174);
}

.nav-right{
  display: flex;
  gap: 22px;
}

.nav a{
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  opacity: .85;
}

.nav a:hover,
.nav a.active{
  opacity: 1;
}

.nav-left a{
  letter-spacing: .02em;
  opacity: .95; 
}

.content {
  margin-top: 270px;
  margin-bottom: 160px;
  max-width: 720px;
  font-size: 40px;
  line-height: 1.25;
  overflow: visible;
}

.typing {
  position: relative;
}

.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 6px;
  background: rgba(255,255,255,.9);
  vertical-align: -0.12em;
  animation: blink .8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typing::after { animation: none; }
}

.grid-container{
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 24px 40px; 
  border-radius: 8px;

  border-top: 2px solid rgba(176, 175, 174);
  background-clip: padding-box;

  display: grid;
  align-items: flex-start;
  grid-template-columns: repeat(3, 400px);
  gap: 16px;
}

.bottom-nav{
  margin-top: 24px;
  padding: 14px 0 0;
  border-top: 2px solid rgba(176, 175, 174, .9);

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  font-size: 18px;
}

.bottom-left{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bottom-name{
  opacity: .95;
}

.bottom-location{
  opacity: .7;
  font-size: 14px;
}

.bottom-right{
  display: flex;
  gap: 26px;
}

.bottom-right a{
  color: #fff;
  text-decoration: none;
  opacity: .85;
}

.bottom-right a:hover{
  opacity: 1;
}

.content-about{
  margin: 150px 0;
  font-size: 24px;
  margin-right: 350px;

}

.work-page{
  margin-top: 80px;
}

.work-section{
  margin-bottom: 140px;
}

.work-section-header{
  max-width: 640px;
  margin-bottom: 32px;
}

.work-section-title{
  font-size: 48px;
  margin: 0 0 8px;
}

.work-section-desc{
  font-size: 18px;
  opacity: .8;
  margin: 0;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.work-item h3{
  margin: 0 0 6px;
  font-size: 22px;
}

.work-item p{
  margin: 0;
  font-size: 16px;
  opacity: .85;
}

@media (max-width: 800px){
  .work-grid{
    grid-template-columns: 1fr;
  }
}


.content-contact{
  margin: 230px 0;
  font-size: 24px;
  margin-right: 350px;
}

.footer-contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 120px; 

  margin-top: 120px;
  margin-bottom: 60px;
  margin-left: 490px;
}

.contact-item{
  max-width: 420px;
}

.contact-item h4{
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}

.contact-item a,
.contact-item span{
  display: inline-block;
  font-size: 18px;
  color: #fff;
  opacity: .9;
}

.contact-item a{
  text-decoration: underline;
  text-underline-offset: 6px;
}

.contact-item span + span{
  margin-top: 6px;
  display: block;
}

.content-archive{
  font-size: 140px;
  text-align: center;
}

.content-archive h1{
  margin-top: -35px;
  margin-bottom: 16px; 
  letter-spacing: 0.5cm;
}

.archive-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.archive-tile{
  position: relative;
  aspect-ratio: 1 / 1;  
  overflow: hidden; 
  display: block;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
}

.archive-tile iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;

  transform: scale(1);
  transform-origin: top left;
  pointer-events: none;
}

.tile-label{
  position: absolute;
  left: 10px;
  bottom: 10px;

  font-size: 12px;
  color: #000;
  background: rgba(255,255,255,.85);
  padding: 4px 6px;
}

.tile-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-grid-container{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 70px;
  margin-top: 35px;
  margin-right: 70px;
  margin-left: 70px;
}

.recent-tile{
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.recent-tile img,
.recent-tile iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.recent-image,
.tile-image{
  object-fit: cover;
}

.recent-tile iframe{
  border: 0;
  transform: scale(1);
  transform-origin: top left;
  pointer-events: none;
}

.recent-label{
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  color: #000;
  background: rgba(255,255,255,.85);
  padding: 4px 6px;
}

.recent{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid rgba(176, 175, 174, 0.9);
}

.recent-title{
  font-size: 36px;
  margin: 0;
}

.type-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  margin-top: 16px;
}

.archive-tile{
  position: relative;
}

.tile-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
