@font-face {
  font-family: "GT EEsti Pro Text";
  src: url("../fonts/GTEP Text/GTEestiProText-Regular.otf");
}
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTS Standard/GTSectra-Bold.otf");
}
@-webkit-keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  70% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  70% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}
@-webkit-keyframes text-clip-in {
  from {
    -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
            clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  to {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
@keyframes text-clip-in {
  from {
    -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
            clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  to {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
@-webkit-keyframes text-clip-out {
  from {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  to {
    -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
            clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
}
@keyframes text-clip-out {
  from {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  to {
    -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
            clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
}
*,
*::before,
*::after,
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
}

a {
  text-decoration: none;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 7rem 1fr 1fr;
  background-color: black;
  height: 100vh;
  min-height: 650px;
  background-image: url("../assetimages/index/tuscany.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
header .langSelector {
  grid-row: 1;
  grid-column: 1/span 3;
  margin: 1rem;
  font-family: "GT Eesti Pro Text";
  white-space: nowrap;
  font-size: 1.4rem;
}
header .langSelector a {
  color: white;
  text-decoration: none;
  opacity: 100%;
  transition: opacity;
}
header .langSelector a:hover {
  opacity: 50%;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition-duration: 200ms;
}
header .name {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  font-family: "GT Sectra";
  font-size: 3rem;
  white-space: nowrap;
}
@media only screen and (max-width: 760px) {
  header {
    background-position: 35% center;
  }
  header .name {
    width: auto;
    font-size: 2rem !important;
  }
  header .langSelector {
    grid-row: 3;
    grid-column: 1/span 3;
    align-self: flex-end;
    justify-self: end;
  }
}
header .logo {
  grid-column: 2;
  grid-row: 1/span 3;
  justify-self: center;
  align-self: center;
}
header .logo img {
  min-width: 13rem;
  filter: drop-shadow(0px 0px 9px rgba(0, 0, 0, 0.45));
}
header .indicator {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  align-self: center;
  -webkit-animation-name: bounce;
          animation-name: bounce;
  -webkit-animation-duration: 4s;
          animation-duration: 4s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.s1 {
  background-color: #231D13;
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 80vw 1fr;
}
@media only screen and (max-width: 1500px) {
  .s1 {
    grid-template-columns: 1fr 90vw 1fr;
  }
}
@media only screen and (max-width: 650px) {
  .s1 {
    padding-bottom: 2rem;
  }
}
.s1 .s11 {
  grid-column: 2;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.s1 .s11 .photoLogo {
  display: flex;
  align-items: center;
}
.s1 .s11 .photoLogo img {
  margin-right: 1.5rem;
  width: 7rem;
}
.s1 .s11 .photoLogo p {
  font-family: "GT Sectra";
  font-size: 5rem;
  margin-top: 1rem;
}
.s1 .s11 nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  margin-right: 4rem;
  margin-top: 1rem;
  font-family: "GT Eesti Pro Text";
  font-size: 2rem;
}
.s1 .s11 nav a {
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.s1 .s11 nav a:after {
  content: "";
  position: absolute;
  width: 130%;
  transform: scaleX(0);
  height: 4px;
  bottom: -10px;
  left: 0;
  margin-left: -13%;
  background-color: #ffffff;
  transform-origin: bottom right;
  transition: transform 1s ease-out;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
.s1 .s11 nav a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
@media only screen and (max-width: 1250px) {
  .s1 .s11 {
    flex-direction: column;
    align-items: center;
  }
  .s1 .s11 nav {
    margin-top: 3rem;
    margin-right: 0;
  }
  .s1 .s11 .photoLogo img {
    width: min(15vw, 7rem);
  }
  .s1 .s11 .photoLogo p {
    font-size: min(10vw, 5rem);
  }
}
@media only screen and (max-width: 650px) {
  .s1 .s11 {
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }
  .s1 .s11 nav {
    margin-top: 3rem;
    margin-right: 0;
    font-size: max(1.5rem, 6vw);
    width: 80%;
  }
}

.s12 {
  display: grid;
  grid-template-columns: 1fr 80vw 1fr;
  width: 100%;
  margin-top: 3.2rem;
  justify-content: space-between;
  font-family: "GT Eesti Pro Text";
}
@media only screen and (max-width: 1500px) {
  .s12 {
    grid-template-columns: 1fr 90vw 1fr;
  }
}
.s12 .title {
  grid-column: 2;
  font-size: 4rem;
}
@media only screen and (max-width: 1250px) {
  .s12 .title {
    font-size: 6vw;
  }
}
@media only screen and (max-width: 650px) {
  .s12 {
    flex-direction: column;
    align-items: center;
  }
  .s12 .title {
    align-self: center;
    margin: 0;
    font-size: min(10vw, 5rem);
  }
}

.s2 {
  background-color: black;
  display: grid;
  row-gap: 3.2rem;
  -moz-column-gap: 3rem;
       column-gap: 3rem;
  padding: 2.5rem 2rem 4rem 2rem;
  grid-template-columns: repeat(6, 1fr);
}
.s2 a {
  text-decoration: none;
  position: relative;
}
.s2 img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: ease-in-out 300ms;
  outline-offset: -15px;
  outline: #ffffff00 1px solid;
  position: relative;
  z-index: 2;
}
.s2 img:hover {
  outline: #ffffff 15px solid;
}
.s2 .title-small {
  text-align: end;
  font-family: "GT Eesti Pro Text";
  font-size: 1.5rem;
  margin-right: 2rem;
  margin-top: 0.5rem;
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition: 300ms ease-in-out;
  transform-origin: right bottom;
}
.s2 img:hover ~ .title-small {
  transform: translateY(-3rem);
}
.s2 .title-big {
  position: absolute;
  z-index: 3;
  right: 3rem;
  bottom: 1rem;
  pointer-events: none;
  font-family: "GT Eesti Pro Text";
  font-size: 4rem;
  text-align: end;
  filter: drop-shadow(0 1px 0.75rem rgba(0, 0, 0, 0));
  visibility: hidden;
  -webkit-animation: text-clip-out 300ms ease-in-out;
          animation: text-clip-out 300ms ease-in-out;
  transform-origin: bottom right;
  transition: all 300ms ease-in-out;
}
@media only screen and (max-width: 920px) {
  .s2 .title-big {
    font-size: 2rem;
  }
}
.s2 img:hover ~ .title-big {
  visibility: visible;
  opacity: 100%;
  -webkit-animation: text-clip-in 300ms ease-in-out;
          animation: text-clip-in 300ms ease-in-out;
  transform: translateY(-1rem);
}
.s2 .kep {
  grid-column: span 2;
}
.s2 .kep1,
.s2 .kep4,
.s2 .kep6,
.s2 .kep9 {
  grid-column: span 4;
}
.s2 .kep7 {
  grid-column: span 6;
  height: auto;
}
.s2 .kep7 img {
  -o-object-fit: unset;
     object-fit: unset;
  aspect-ratio: 1920/882;
  max-height: inherit;
}
.s2 .kep10 {
  grid-column: span 6;
  height: auto;
}
.s2 .kep10 img {
  -o-object-fit: unset;
     object-fit: unset;
  aspect-ratio: 1920/1032;
  max-height: inherit;
}
@media only screen and (max-width: 650px) {
  .s2 {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    padding: 2.5rem 0 4rem 0;
  }
  .s2 .title-small {
    font-size: 1.5rem;
  }
  .s2 .title-big {
    font-size: 3.5rem;
  }
  .s2 .kep {
    grid-column: 1;
  }
}

footer {
  background-color: #A44000;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  justify-content: center;
}
footer .info {
  align-self: center;
  justify-self: center;
  width: auto;
}
footer .info h1 {
  font-size: 3.5rem;
  font-family: "GT Sectra";
}
footer .info p {
  font-family: "GT EEsti Pro Text";
  font-size: 2rem;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "GT Eesti Pro Text";
  font-size: 2rem;
}
footer nav a {
  text-decoration: none;
}
@media only screen and (max-width: 650px) {
  footer {
    padding: 1rem;
  }
  footer .info {
    align-self: center;
    justify-self: start;
    width: auto;
  }
  footer .info h1 {
    font-size: 2rem;
  }
  footer .info p {
    font-size: 1.2rem;
  }
  footer nav {
    font-size: 1.8rem;
    justify-self: end;
  }
}