/* .inter-secondary {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
      "slnt" 0;
  }
  
  .playfair-display-primary {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
  } */

/*? Reset css */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Initial Set-up */

html,
body {
  width: 100%;
  height: 500vh;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --primary: #f0f0f0;
    --secondary: #212529;
}

::-webkit-scrollbar {
    display: none;
}

html {
    font-size: calc(100vw / 1920 * 10);
}

body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
}

a {
    color: #ca3233;
    text-decoration: none;
    transition: 0.25s;
}

h1 {
    font-size: 12rem;
}

h2 {
    font-size: 8rem;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "slnt" 0;
}

h3 {
    font-size: 6.4rem;
}

p {
    font-size: 3.2rem;
    line-height: 1;
}

span {
    font-size: 3.2rem;
    line-height: 1;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "slnt" 0;
}

/* Lenis CSS Settings */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}


/* End Lenis CSS Settings */

.app {
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
}

/* Intro */

.intro {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro_one {
    position: relative;
    height: 100vh;
    z-index: 1;
}

.intro_two {
    position: relative;
    height: 100%;
    z-index: 1;
}

.intro_card {
    width: 96rem;
    height: 100%;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.5);
    padding: 16rem;
}

.intro_card_title h2 {
    font-size: 23rem;
}

.intro_two .intro_card {
    height: 200rem;
}

.intro_card_inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15rem;
    height: inherit;
    padding: 3.2rem 6.4rem;
    text-align: center;
}

.intro_card_caption span {
    display: block;
    font-size: 4.5rem;
}

.intro_media {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.intro_media_image {
    width: 100%;
    height: 67%;
    object-fit: cover;
}

/* intro end */

/* cards */

section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: rgb(19, 21, 21);
  }

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 450px;
    perspective: 1000px;
  }

  .card h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    font-size: 5vw;
    font-weight: lighter;
    line-height: 100%;
  }
  
  .card a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 24px;
    font-weight: 500;
  }

  .card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .card-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    animation: floating 3s infinite ease-in-out;
  }
  
  #card-1 .card-wrapper {
    animation-delay: 0;
  }
  
  #card-2 .card-wrapper {
    animation-delay: 0.2s;
  }
  
  #card-3 .card-wrapper {
    animation-delay: 0.4s;
  }
  
  #card-4 .card-wrapper {
    animation-delay: 0.6s;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
  }
  
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.8em;
    overflow: hidden;
  }
  
  .flip-card-back {
    padding: 4em;
    background-color: rgba(196, 199, 207, 0.5);
    transform: rotateY(180deg);
  }

  .flip-card-back a {
    color: rgb(19, 21, 21);
    font-family: sans-serif;
    font-weight: 600;
  }
  
  @keyframes floating {
    0% {
      transform: translate(-50%, -50%);
    }
    50% {
      transform: translate(-50%, -60%);
    }
    100% {
      transform: translate(-50%, -50%);
    }
  }

/* outro */

.outro {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary);
    color: var(--primary);
}

.outro_wrapper {
    display: flex;
    flex-direction: column;
    width: inherit;
    height: inherit;
    gap: 8rem;
    justify-content: center;
    align-items: center;
    padding: 6.4rem;
}

.outro_titles,
.outro_description,
.outro_caption {
    text-align: center;
    line-height: 20rem;
}

.outro_caption span {
    display: block;
}

/* responsive CSS */
@media screen and (max-wdith: 768px) {
    html {
        font-size: calc(100vw / 768 * 10);
    }

    h2 {
        font-size: 6rem;
    }

    p,
    span {
        font-size: 3.2rem;
        line-height: 1;
    }

    /* intro */

    .intro {
        padding-top: 25rem;
    }

    .intro_card {
        width: 64rem;
        padding: 0 2rem;
    }

    .intro_one {
        height: 100%;
    }

    /* horizontal scroll */

    .horizontal {
        width: 100%;
        height: 100%;
    }

    .horizontal_wrapper {
        flex-direction: column;
    }

    .horizontal_box {
        width: 100%;
        height: 60rem;
    }

    .horizontal_box.horizontal_box--full {
        width: inherit;
        height: 100rem;
    }

    .horizontal_box.horizontal_box--vertical {
        width: inherit;
        height: 100%;
    }
}