/** Normalize **/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-height: 100vh;
  font-family: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

textarea {
  resize: vertical;
}

/** End Normalize **/

/** Fonts **/

@font-face {
  font-family: "Franie";
  src: url("/assets/franie-font-family/FranieVariableTest-Regular.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Franie";
  src: url("/assets/franie-font-family/FranieVariableTest-Bold.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Franie";
  src: url("/assets/franie-font-family/FranieVariableTest-ExtraBold.otf")
    format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KG Dark Side";
  src: url("/assets/kg_dark_side/KGDarkSide.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/** End Fonts **/

:root {
  --text-color: rgba(0, 44, 105, 1);
  --accent: rgba(81, 209, 255, 1);
  --accent-light: rgba(181, 229, 255, 1);
  --highlight: rgba(255, 92, 92, 1);
  --highlight-alt: rgba(253, 106, 0, 1);
  --text-title: 2.5rem;
  --text-subtitle: 2rem;
  --text-normal: 1.5rem;
  --text-medium: 1.25rem;
  --text-small: 1rem;
}

html {
  font-size: 20px;
}

body {
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  align-items: center;

  font-family: "Franie", sans-serif;
  font-weight: 500;
  color: var(--text-color);
}

body > div {
  position: relative;
}

.sine {
  transform: translateY(calc(sin(var(--degree) * var(--i)) * var(--distance)));
  display: inline-block;
}

.capped-container {
  max-width: 1440px;
  width: 100%;
  position: relative;
}

.capped-container-md {
  max-width: 1100px;
  width: 100%;
}

#header {
  padding: 52px 49px 0 25px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 68px;
}

#header > a {
  line-height: 120%;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: -2%;
  position: relative;
}

a.link-underscored::before {
  content: "";
  position: absolute;
  bottom: -8px;
  height: 4px;
  left: 0;
  width: 32px;
  background: var(--accent);
  border-radius: 3px;

  transition: 0.2s all;
}

a.link-underscored:hover::before {
  width: 100%;
}

#logo {
  z-index: 2;
}

#logo,
#logo {
  max-width: 898px;
  width: 70vw;
}

#logo h2 {
  margin-top: 19px;
  text-align: center;
  font-size: var(--text-title);
  line-height: 100%;

  padding: 29px 0;
}

#clouds {
  height: 391px;
  margin-top: 11px;
  margin-bottom: 155px;
  background-color: var(--accent-light);
  width: 100%;
  font-size: var(--text-subtitle);
  letter-spacing: 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.clouds {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  overflow: hidden;
  height: 100%;
}

.clouds .cloud {
  position: absolute;
  width: 100%;
  height: 100%;

  box-shadow: 0 0 0 150px white;
}

.clouds .cloud:first-child svg {
  position: absolute;
  top: -50px;
  left: 0;
  transform: rotate(180deg);
}

.clouds .cloud:last-child svg {
  position: absolute;
  bottom: 0;
  left: 0;
  bottom: -50px;
}

#clouds .capped-container {
  padding-left: 80px;
}

#clouds .butterfly {
  position: relative;
  z-index: 2;
}

#clouds .butterfly-cloud {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#clouds .butterfly-cloud p {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: var(--text-subtitle);
  text-indent: calc(var(--text-subtitle) * -1);
  font-family: "KG Dark Side", sans-serif;
  font-size: var(--text-medium);

  transform: translate(-50%, -50%);
}

#clouds .butterfly-cloud .cloud-text-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.highlight {
  font-weight: 800;
  color: var(--highlight);
}

#form {
  margin-top: 20px;
  text-align: center;
}

#form h1 {
  font-weight: 700;
  font-size: var(--text-title);
  padding: 8px 0;
}

#form p {
  margin-top: 5px;
  font-size: var(--text-normal);
  line-height: 1.74;
  padding: 0 41px;
}

#form form .inputs {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 70px 20px;
}

.input input {
  width: 100%;
  font-size: var(--text-small);
  padding: 15px 26px;
  box-shadow: 0 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
}

.input button {
  margin-top: 74px;
  padding: 26px 27px;
  color: white;
  background-color: var(--highlight);
  box-shadow: 0 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: var(--text-normal);
  font-weight: 800;
  line-height: 100%;
}

#caterpillar {
  font-family: "KG Dark Side", sans-serif;
  margin-top: 100px;
  letter-spacing: 6%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#caterpillar .text {
  padding-bottom: 15px;
  padding-right: 50px;
}

#caterpillar > .capped-container-md {
  display: flex;
  align-items: center;
  justify-content: center;
}

#caterpillar > div > div:last-child {
  max-width: 646px;
  width: 100%;
}

#caterpillar .caterpillar-separator {
  width: 100%;
  position: absolute;
  bottom: 39.4%;
  transform: translateY(50%);
  left: 0%;
}

.flower-text {
  font-size: var(--text-title);
  text-align: center;
  line-height: 80px;
  margin-top: 38px;
}

#flower {
  display: flex;
  margin-top: 90px;
}

#flower > img {
  max-width: 60%;
  rotate: 90deg;
}

#flower .separator {
  font-size: var(--text-normal);
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
}

#flower .separator p {
  z-index: 2;
  position: absolute;
  right: 0;
  top: 35%;
  letter-spacing: 26%;
  font-family: "KG Dark Side", sans-serif;
  font-size: var(--text-normal);
  right: 13%;
}

#flower .highlight {
  color: var(--highlight-alt);
}

#planet {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#planet h1 {
  font-size: var(--text-title);
  text-align: center;
  margin-top: 100px;
}

#planet .capped-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 49px;
  text-align: center;
  justify-content: space-between;
  padding-left: 132px;
}

#planet .earth-container {
  max-width: 570px;
  width: 100%;
}

#planet .earth-container img {
  rotate: -90deg;
}

#planet .earth-container svg {
  position: absolute;
  top: 0;
  transform: translate(-30%, -15%);
}

#planet p {
  line-height: 200%;
  transform: translateY(-100%);
  font-size: var(--text-normal);
}

#footer {
  width: 100%;
}

#footer .links {
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: 100%;
  padding: 0 36px;

  font-size: var(--text-normal);
  font-weight: 700;
}

#footer .logo {
  max-width: 380px;
}

#footer .copyright {
  line-height: 120%;
  letter-spacing: -2%;
  font-size: var(--text-small);
  text-align: center;
  display: flex;
  justify-content: center;
  max-height: 427px;
  overflow: hidden;
  margin-top: 80px;
}

#footer .copyright p {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 44px;
}

#footer .copyright img {
  max-width: 1150px;
  height: 100%;
}

#clouds img {
  position: absolute;
  right: 0;
  max-width: 460px;
  z-index: 2;
  transform: translate(-50%, -35%) rotate(16.17deg);
}

.scroll-scene {
  position: relative;
  width: 100%;
}

.scroll-scene__inner {
  position: sticky;
  top: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

body > .scroll-scene {
  scroll-snap-type: y proximity;
}