/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
  .visual .inner .mainText {
    font-size: 70px;
  }

  /* con1 */
  .con1 .box .subText h2 {
    font-size: 2.9rem;
  }

  /* con3 */
  .con3 .textBox h4 {
    font-size: 4rem;
  }
  .con3 .textBox h4 span {
    font-size: 0.8rem;
  }

  /* con2 */
  .con2 .mainTextBox .title {
    font-size: 7rem;
  }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
  .visual .inner .mainText {
    font-size: 62px;
  }

  /* con1 */
  .con1 .box .subText h2 {
    font-size: 2.6rem;
  }
  .con1 .box .imgBox .image {
    width: 72%;
    border-radius: 200px 200px 0 0;
    filter: contrast();
  }

  /* con2 */
  .con2 .mainTextBox .in .box {
    max-width: 35%;
  }

  /* con3 */
  .con3 .textBox h4 span {
    font-size: 10px;
  }

  /* con4 */
  .con4 .mainTextBox .title.b {
    text-align: center;
  }
  .con4 .mainTextBox .in .box {
    width: 400px;
    margin-right: 20px;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  .visual .inner .mainText {
    max-width: fit-content;
    font-weight: normal;
    font-size: 2.8rem;
    margin-left: auto;
    letter-spacing: -2px;
  }

  .arr {
    font-size: 1rem;
  }

  /* con1 */
  .con1 .textAni::before {
    width: 70px;
    height: 70px;

    top: -76px;
  }
  .con1 .box .subText h2 {
    font-size: 1.6rem;
  }
  .con1 .box .imgBox .image {
    width: 100%;
    border-radius: 200px 200px 0 0;
    filter: contrast();
  }
  .con1 .box .imgBox .image {
    max-width: 80%;
  }
  .con1 .box {
    row-gap: 20px;
  }
  .con1 .textAni ul li {
    font-size: 2.8rem;
  }
  /* con2 */
  .con2 .mainTextBox span {
    font-size: 12px;
    top: -30px;
  }
  .con2 .mainTextBox .in .box {
    width: 280px;
    margin-right: auto;
  }
  .con2 .mainTextBox .title {
    font-size: 4.6rem;
    line-height: 1;
    letter-spacing: -5px;
    text-align: right;
    overflow: hidden;
  }
  .con2 .mainTextBox .title.b {
    margin-right: 18.7rem;
  }
  .con2 .subTextBox .subText {
    width: 450px;
    font-size: 1rem;
  }

  /* con3 */
  .con3 .inner {
    grid-template-columns: 1fr 2fr;
  }
  .con3 .textBox h4 {
    font-size: 3rem;
    padding-right: 20px;
  }
  .con3 .textBox h4 span {
    font-size: 0.9rem;
    display: block;
  }
  .con3 .listProject {
    flex-direction: column;
  }
  .con3 .listProject li {
    width: 100%;
  }
  .con3 .listProject .none {
    display: none;
  }

  /* con4 */
  .con4 .mainTextBox .title {
    font-size: 3.7rem;
    line-height: 1;
    letter-spacing: -5px;
    overflow: hidden;
  }
  .con4 .mainTextBox .in .box {
    width: 40%;
    margin-right: 1.25rem;
  }

  .con4 .listBox .box {
    padding: 28px 30px 35px;
  }

  .con4 .listBox .box h3 {
    line-height: 1.2;
  }

  /* con5 */
  .con5 .listBox li h3 {
    font-size: 1.5rem;
  }

  /* footer */
  footer .inner .box .mainTextBox h2 {
    font-size: 3.25rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: normal;
    margin-bottom: 20px;
  }
  footer .inner .box .talkBtn a {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    box-shadow: 0 0 0 13px #1c1c1c, 0 0 50px rgba(255, 255, 255, 0.3);
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .visual .inner .mainText {
    max-width: fit-content;
    font-weight: normal;
    font-size: 2.4rem;
    margin-left: auto;
    letter-spacing: -2px;
  }

  .wrap {
    overflow: hidden;
  }

  /* con1 */
  .con1 .box .subText h2 {
    font-size: 1.2rem;
  }
  .con1 .box .subText p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .con1 .box {
    row-gap: 1.25rem;
  }
  .con1 .textAni::before {
    width: 60px;
    height: 60px;

    top: -70px;
  }

  /* con2 */
  .con2 .mainTextBox .in {
    display: block;
  }
  .con2 .subTextBox {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  /* con3 */
  .con3 .inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
  }
  .con3 .listBox {
    width: 100%;
  }
  .con3 .textBox p {
    transform: translateY(-19%);
  }

  /* con4 */
  .con4 .mainTextBox .title {
    font-size: 3.25rem;
  }
  .con4 .mainTextBox .in .box {
    width: 250px;
  }
  .con4 .listBox .box {
    grid-template-columns: 50% auto;
  }

  /* con5 */
  .con5 .mainTextBox h2 {
    font-size: 4.62rem;
  }
  .con5 .listBox {
    margin-top: 100px;
  }
  .con5 .listBox li h3 {
    font-size: 1.5rem;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/
@media (max-width: 34em) {
  header .gnb .menuBox {
    top: -1050px;
  }
  .wrap {
    overflow: hidden;
  }
  .btn {
    font-size: 12px;
    padding: 8px 16px;
  }
  .popup {
    padding-top: 250px;
  }
  .inner {
    padding: 0 20px;
  }

  header .inner .logo {
    display: none;
  }
  .visual .inner .mainText {
    align-self: center;
  }
  .visual .inner {
    grid-template-rows: 1fr 1fr 17%;
    padding: 25px 20px 25px;
  }

  /* con1  */
  .con1 .box .imgBox .image {
    max-width: 100%;
  }
  .con1 .box {
    display: block;
  }
  .con1 .box .mainText {
    display: none;
  }
  .con1 .box .imgBox {
    margin-bottom: 48px;
  }
  .con1 .textAni ul li {
    font-size: 2.25rem;
  }
  .con1 .box .subText .front-end {
    letter-spacing: -1px;
  }

  /* con2 */
  .con2 .inner {
    position: relative;
    padding: 40px 21px;
  }
  .con2 .mainTextBox .title.b {
    margin-right: 5.3rem;
  }
  .con2 .mainTextBox .title {
    font-size: 3.8rem;
  }
  .con2 .mainTextBox span {
    top: -30px;
  }
  .con2 .subTextBox .subText p {
    font-size: 12px;
    width: 50%;
  }
  .con2 .subTextBox .iconbox li {
    width: 16px;
  }
  .con2 .subTextBox .iconbox li:nth-child(3) {
    width: 22px;
  }
  .con2 .subTextBox .iconbox li:nth-child(4) {
    width: 22px;
  }

  /* con3 */
  .con3 .textBox {
    width: 100%;
  }
  .con3 .listProject {
    flex-direction: column;
  }
  .con3 .listProject li {
    width: 100%;
  }
  .con3 .textBox h4 {
    transform: translateY(-10%);
  }

  /* con4 */
  .con4 .mainTextBox span {
    padding: 15px;
  }
  .con4 .mainTextBox .in .box {
    display: none;
  }
  .con4 .listBox .box {
    display: block;
    padding: 50px 30px 60px;
  }
  .con4 .listBox .box h3 {
    font-size: 12.5rem;
  }
  .con4 .listBox .box h2 {
    margin-bottom: 0;
  }
  .con4 .listBox .box h3 {
    line-height: 1.2;
  }
  .con4 .listBox .box .text p {
    opacity: 0.5;
    font-size: 12px;
  }
  .con4 .listBox .box.a h3 {
    font-size: 7rem;
  }
  .con4 .listBox .box.b h3 {
    font-size: 7rem;
  }
  .con4 .listBox .box.c h3 {
    font-size: 7rem;
  }
  .con4 .subTextBox .subText p {
    font-size: 1rem;
  }
  .con4 .subTextBox {
    grid-template-columns: 1fr;
  }
  .con4 .mainTextBox .title {
    font-size: 2.8rem;
  }
  .con4 .listBox .box .text h4 {
    font-size: 2rem;
  }

  /* con5 */
  .con5 .mainTextBox h2 {
    font-size: 3.62rem;
  }
  .con5 .listBox li h3 {
    font-size: 14px;
  }
  .con5 .listBox li p {
    font-size: 10px;
  }
  .con5 .inner {
    padding: 1.8rem;
  }

  /* footer */
  footer .inner .box .mainTextBox p {
    font-size: 14px;
  }
  footer .inner .box .btnBox .btn {
    margin: 15px;
    padding: 1px;
  }
  footer .inner {
    height: 100vh;
    padding: 95px 24px 25px;
  }
}

/* 
- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/
