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

:root {
  --ink: #363636;
  --paper: #fbfaf8;
  --line: #d8d6d1;
  --slot: #e5e4e0;
  --muted: #363636
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  overflow-x: clip
}

.portfolio {
  width: min(100%, 1449px);
  margin: auto;
  overflow: visible
}

.page-section {
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 10vh, 9rem) 5.5%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 5px;
  padding: 0;
  min-height: 0;
  display: flex;
  justify-content: center
}

.banner-image {
  min-height: 0;
  flex: 0 0 calc(100vw - 240px);
  background: #fff;
  aspect-ratio: 1920 / 1080;
}

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

.banner-image::after {
  display: none;
}

.photo-slot {
  background: linear-gradient(135deg, #efeeeb, #d7d5d0);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden
}

.photo-slot::after {
  content: "PHOTO";
  font: 600 .75rem "Roboto", Arial, sans-serif;
  letter-spacing: .1em;
  color: #7a7873;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.intro {
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 4.5rem
}

.intro h1,
.logo-mark,
.page-section h2 {
  margin: 0;
  font-weight: 700
}

.intro h1 {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  letter-spacing: -.07em
}

.logo-mark {
  font: 600 clamp(1rem, 1.7vw, 1.7rem) "Roboto", Arial, sans-serif;
  width: clamp(260px, 26vw, 420px);
  aspect-ratio: 1;
  padding: 1rem;
  display: grid;
  place-items: center
}

.logo-mark img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.team-section h2,
.project h2 {
  display: table;
  margin: 0 auto clamp(3.5rem, 7vh, 5.5rem);
  font: 600 clamp(1.2rem, 1.6vw, 1.65rem) "Roboto", Arial, sans-serif;
  letter-spacing: -.05em
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1300px;
  margin: auto;
  width: 100%
}

.profile {
  text-align: center
}

.portrait {
  width: clamp(165px, 15vw, 240px);
  aspect-ratio: 2 / 3;
  height: auto;
  background: #fff;
  margin: 0 auto 2rem
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom
}

.portrait::after {
  display: none
}

.profile p,
.project-description {
  margin: 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  letter-spacing: -.015em
}

.profile p {
  max-width: 100%;
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  text-align: justify
}

.profile p + p {
  margin-top: 1.75rem
}

.project {
  text-align: center
}

.duo-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1000px;
  width: 100%;
  aspect-ratio: 32 / 9;
  margin: auto
}

.duo-images .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.duo-images .photo-slot::after {
  display: none
}

.project-description {
  max-width: 520px;
  margin-top: 2.25rem;
  color: var(--muted)
}

.six-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1050px;
  width: 100%;
  aspect-ratio: 8 / 3;
  margin: auto;
  gap: 4px
}

.six-grid .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.six-grid .photo-slot::after {
  display: none
}

.developer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  max-width: 980px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
  gap: 4px
}

.dev-a {
  grid-column: 1;
  grid-row: 1
}

.dev-b {
  grid-column: 1;
  grid-row: 2
}

.dev-e {
  grid-column: 2;
  grid-row: 1
}

.dev-f {
  grid-column: 2;
  grid-row: 2
}

.developer-grid .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.developer-grid .photo-slot::after {
  display: none
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.125fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  max-width: 1030px;
  width: 100%;
  aspect-ratio: 25 / 9;
  gap: 4px;
  margin: auto
}

.studio-grid .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.studio-grid .photo-slot::after {
  display: none
}

.studio-a {
  grid-column: 1;
  grid-row: 1
}

.studio-b {
  grid-column: 1;
  grid-row: 2
}

.studio-c {
  grid-column: 2;
  grid-row: 1 / span 2
}

.studio-d {
  grid-column: 3;
  grid-row: 1
}

.studio-e {
  grid-column: 3;
  grid-row: 2
}

.closing-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem)
}

.closing-section .project-description {
  margin: 0
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 9fr 6fr 12fr;
  gap: 4px;
  aspect-ratio: 16 / 27
}

.contact-section {
  align-items: center;
  text-align: center
}

.contact-section h2 {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  font: 600 clamp(1.2rem, 1.6vw, 1.65rem) "Roboto", Arial, sans-serif;
  letter-spacing: -.05em
}

.contact-details {
  display: grid;
  gap: .85rem;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 500
}

.contact-details a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  margin: auto;
  transition: border-color .2s ease, color .2s ease
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #5275dc;
  border-bottom-color: currentColor
}

.closing-grid .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.closing-grid .photo-slot::after {
  display: none
}

.close-a {
  grid-column: 1 / 3
}

.close-b {
  grid-column: 1
}

.close-c {
  grid-column: 2
}

.close-d {
  grid-column: 1 / 3
}

.animations-ready .banner,
.animations-ready .page-section {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2, .65, .3, 1)
}

.animations-ready .banner.section-visible,
.animations-ready .page-section.section-visible {
  opacity: 1;
  transform: translateY(0)
}

.photo-slot {
  transition: transform .7s ease, filter .7s ease
}

.section-visible .photo-slot {
  animation: photo-in .85s cubic-bezier(.2, .65, .3, 1) both
}

.section-visible .photo-slot:nth-child(2) {
  animation-delay: .1s
}

.section-visible .photo-slot:nth-child(3) {
  animation-delay: .18s
}

.section-visible .photo-slot:nth-child(4) {
  animation-delay: .24s
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(.94)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@media(hover:hover) {
  .photo-slot:hover {
    filter: brightness(.94);
    transform: scale(1.015)
  }
}

@media(max-width:600px) {
  .page-section {
    min-height: auto;
    padding: 5rem 1.25rem
  }

  .banner {
    min-height: 0;
    padding: 0
  }

  .banner-image {
    min-height: 0;
    flex-basis: calc(100vw - 40px)
  }

  .intro {
    min-height: 55svh;
    gap: 1.5rem
  }

  .intro h1 {
    font-size: 2rem
  }

  .logo-mark {
    font-size: .85rem;
    width: 220px;
    padding: .75rem
  }

  .team-grid {
    gap: 3rem
  }

  .portrait {
    width: 128px;
    aspect-ratio: 2 / 3;
    height: auto;
    margin-bottom: 1.2rem
  }

  .profile p,
  .project-description {
    font-size: .98rem
  }

  .project h2,
  .team-section h2 {
    margin-bottom: 2.5rem;
    font-size: 1rem
  }

  .duo-images {
    aspect-ratio: 32 / 9
  }

  .six-grid {
    aspect-ratio: 8 / 3
  }

  .developer-grid {
    aspect-ratio: 16 / 9
  }

  .studio-grid {
    aspect-ratio: 25 / 9
  }

  .closing-section {
    display: flex;
    gap: 3rem
  }

  .closing-grid {
    width: 100%;
    max-width: 420px;
    align-self: center;
    grid-template-rows: 9fr 6fr 12fr;
    aspect-ratio: 16 / 27
  }

  .animations-ready .banner,
  .animations-ready .page-section {
    transform: translateY(20px)
  }
}
