
/* ==========================================
   CUSTOM FONT
========================================== */

@font-face {
  font-family: "Karumbi";
  src: url("./fonts/Karumbi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ==========================================
   VARIABLES
========================================== */

:root {
  --cream: #f6e9d6;
  --paper: #fffaf2;
  --pink: #d4acb4;
  --wine: #490f16;
  --dark-wine: #390b13;
  --black: #1b1b1b;
}

/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--cream);
  color: var(--black);
  font-family: "Lexend Deca", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

/* ==========================================
   MAIN PAGE
========================================== */

.coming-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: 95px 5% 75px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(212,172,180,.25),
      transparent 38%
    ),
    radial-gradient(
      circle at 12% 85%,
      rgba(212,172,180,.22),
      transparent 35%
    ),
    var(--cream);
}

/* Paper texture */

.coming-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .38;

  background-image:
    radial-gradient(
      rgba(73,15,22,.18) .5px,
      transparent .9px
    ),
    radial-gradient(
      rgba(73,15,22,.10) .45px,
      transparent .9px
    );

  background-size: 7px 7px, 13px 13px;
}

/* ==========================================
   FLOATING NAVIGATION
========================================== */

.project-nav {
  position: fixed;
  top: 20px;
  left: 5%;
  right: 5%;
  z-index: 1200;

  display: flex;
  justify-content: space-between;
  align-items: center;

  pointer-events: none;
}

.project-logo,
.project-burger {
  pointer-events: auto;
}

.project-logo {
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 8px 25px rgba(73,15,22,.08);
  transition: transform .35s ease;
}

.project-logo:hover {
  transform: rotate(-8deg) scale(1.08);
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Burger */

.project-burger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  gap: 6px;
  border: none;
  border-radius: 50%;

  background: var(--wine);
  box-shadow: 0 9px 25px rgba(73,15,22,.15);
  cursor: pointer;

  transition: transform .3s, background .3s;
}

.project-burger:hover {
  transform: scale(1.08);
  background: #6b1725;
}

.project-burger span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 20px;

  transition:
    transform .35s ease,
    opacity .25s ease;
}

.project-burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.project-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.project-burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   MENU OVERLAY
========================================== */

.project-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;

  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 92px 5% 20px;

  background: rgba(27,27,27,.23);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .3s, visibility .3s;
}

.project-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-menu-card {
  position: relative;
  width: min(360px, 90vw);
  overflow: hidden;
  padding: 25px 21px 23px;

  background: linear-gradient(145deg, #591019, var(--wine));
  border: 1px solid rgba(246,233,214,.13);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(27,27,27,.24);

  opacity: 0;
  transform: translateY(-20px) scale(.96);
  transition: transform .4s ease, opacity .3s;
}

.project-menu-overlay.is-open .project-menu-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(rgba(246,233,214,.3) .5px, transparent .9px);
  background-size: 8px 8px;
}

.project-menu-top,
.project-menu-links,
.project-menu-note {
  position: relative;
  z-index: 2;
}

.project-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.project-menu-top p {
  color: var(--pink);
  font-family: "Karumbi", cursive;
  font-size: 42px;
  line-height: .9;
}

.project-menu-top > span {
  color: rgba(246,233,214,.6);
  font-size: 8px;
  letter-spacing: .15em;
}

.project-menu-links a {
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  align-items: center;
  gap: 7px;

  padding: 17px 2px;
  border-top: 1px solid rgba(246,233,214,.15);
  color: var(--cream);
  transition: padding .25s, background .25s;
}

.project-menu-links a:last-child {
  border-bottom: 1px solid rgba(246,233,214,.15);
}

.project-menu-links a:hover {
  padding-left: 9px;
  background: rgba(246,233,214,.045);
}

.project-menu-links small {
  color: var(--pink);
  font-size: 9px;
}

.project-menu-links strong {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.05em;
}

.project-menu-links a > span {
  color: var(--pink);
  font-size: 20px;
}

.project-menu-note {
  margin-top: 22px;
  color: var(--pink);
  font-family: "Karumbi", cursive;
  font-size: 26px;
  text-align: right;
}

/* ==========================================
   AMBIENT BACKGROUND
========================================== */

.background-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .5;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.glow-one {
  top: 14%;
  right: -10%;
  width: 390px;
  height: 390px;
  background: var(--pink);
}

.glow-two {
  bottom: 0;
  left: -12%;
  width: 380px;
  height: 380px;
  background: rgba(212,172,180,.7);
  animation-delay: -4s;
}

.glow-three {
  top: 35%;
  left: 34%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.6);
  animation-delay: -8s;
}

.ambient-circle {
  position: absolute;
  border: 1px solid rgba(73,15,22,.08);
  border-radius: 50%;
  animation: circleFloat 13s ease-in-out infinite;
}

.circle-one {
  width: 280px;
  height: 280px;
  right: -100px;
  top: 23%;
}

.circle-two {
  width: 190px;
  height: 190px;
  left: -70px;
  bottom: 15%;
  animation-delay: -5s;
}

.decorative-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.orbit-path {
  fill: none;
  stroke: rgba(73,15,22,.48);
  stroke-width: 1.2;
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: drawOrbit 3.4s 1s ease forwards;
}

.orbit-right {
  animation-delay: 1.5s;
}

/* ==========================================
   SPARKLES
========================================== */

.sparkle {
  position: absolute;
  z-index: 3;
  color: var(--wine);
  pointer-events: none;
  animation: sparkleFloat 5s ease-in-out infinite;
}

.sparkle-one {
  top: 44%;
  left: 18%;
  font-size: 53px;
}

.sparkle-two {
  top: 28%;
  right: 17%;
  font-size: 29px;
  animation-delay: -2s;
}

.sparkle-three {
  bottom: 26%;
  right: 18%;
  font-size: 44px;
  animation-delay: -3s;
}

.sparkle-four {
  bottom: 23%;
  left: 15%;
  font-size: 23px;
  animation-delay: -1s;
}

/* ==========================================
   MAIN CONTENT
========================================== */

.coming-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

/* Entrance effects */

.entrance {
  opacity: 0;
  transform: translateY(40px);
  animation: entranceReveal .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.entrance-one { animation-delay: .15s; }
.entrance-two { animation-delay: .3s; }
.entrance-three { animation-delay: .55s; }
.entrance-four { animation-delay: .8s; }
.entrance-five { animation-delay: 1.05s; }

/* ==========================================
   HANDWRITTEN PROJECTS HEADING
========================================== */

.script-heading {
  position: relative;
  width: fit-content;
  margin: 0 auto 25px;
}

.script-heading span {
  display: block;
  color: var(--wine);
  font-family: "Karumbi", cursive;
  font-size: clamp(55px, 6.3vw, 95px);
  line-height: .9;
  transform: rotate(-3deg);
}

.script-heading svg {
  display: block;
  width: 110%;
  height: 32px;
  margin-top: -1px;
}

.script-heading path {
  fill: none;
  stroke: var(--wine);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  animation: drawUnderline 1.3s 1.1s ease forwards;
}

/* ==========================================
   BIG COMING SOON TEXT
========================================== */

.main-heading {
  position: relative;
  width: fit-content;
  margin: auto;
}

.main-heading h1 {
  color: var(--wine);
  font-family: "Poppins", sans-serif;
  font-size: clamp(100px, 12.5vw, 185px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .71;
}

.heading-line {
  display: block;
}

.heading-line:nth-child(2) {
  margin-top: 15px;
}

.heading-burst {
  position: absolute;
  top: -20px;
  right: -50px;
  width: 60px;
  height: 70px;
  animation: burstWiggle 4s ease-in-out infinite;
}

.heading-burst i {
  position: absolute;
  display: block;
  width: 7px;
  height: 34px;
  background: var(--wine);
  border-radius: 99px;
}

.heading-burst i:nth-child(1) {
  top: 0;
  left: 9px;
  transform: rotate(15deg);
}

.heading-burst i:nth-child(2) {
  top: 30px;
  left: 37px;
  transform: rotate(65deg);
}

.heading-burst i:nth-child(3) {
  top: 9px;
  left: 40px;
  transform: rotate(47deg);
}

/* ==========================================
   SUBTITLE
========================================== */

.coming-subtitle {
  margin: 38px auto 0;
  color: var(--wine);
  font-family: "Karumbi", cursive;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.05;
  transform-origin: center;
}

.coming-subtitle span {
  display: inline-block;
  transition: transform .3s;
}

.coming-subtitle:hover span {
  transform: scale(1.3) rotate(15deg);
}

/* ==========================================
   FOLDER CARD
========================================== */

.folder-wrapper {
  position: relative;
  width: min(760px, 90%);
  margin: 52px auto 0;
  perspective: 1100px;
}

.folder-card {
  --rx: 0deg;
  --ry: 0deg;

  position: relative;
  display: flex;
  align-items: center;
  gap: 35px;

  min-height: 200px;
  padding: 34px 48px;

  border: 1.5px solid rgba(73,15,22,.3);
  border-radius: 30px;
  background: rgba(255,250,242,.38);

  box-shadow: 0 14px 50px rgba(73,15,22,.045);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;

  transition:
    transform .25s ease,
    box-shadow .35s ease,
    background .35s ease;
}

.folder-card:hover {
  background: rgba(255,250,242,.65);
  box-shadow: 0 25px 60px rgba(73,15,22,.1);
}

/* Tape */

.tape {
  position: absolute;
  background:
    repeating-linear-gradient(
      30deg,
      rgba(255,255,255,.15) 0 2px,
      transparent 2px 9px
    ),
    rgba(212,172,180,.85);

  clip-path: polygon(0 5%,100% 0,97% 100%,3% 95%);
}

.tape-main {
  top: -17px;
  right: 25px;
  width: 120px;
  height: 34px;
  transform: rotate(15deg);
  box-shadow: 0 3px 8px rgba(73,15,22,.1);
  animation: tapeWiggle 7s ease-in-out infinite;
}

/* Folder illustration */

.folder-illustration {
  position: relative;
  flex: 0 0 170px;
  width: 170px;
  height: 140px;
  display: grid;
  place-items: center;
}

.folder-svg {
  width: 160px;
  height: 140px;
  overflow: visible;
  transition: transform .5s ease;
}

.folder-back,
.folder-front {
  fill: rgba(255,250,242,.2);
  stroke: var(--wine);
  stroke-width: 3;
  stroke-linejoin: round;
}

.folder-paper {
  fill: var(--paper);
  stroke: var(--wine);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}

.folder-front {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform .5s ease;
}

.folder-heart {
  fill: none;
  stroke: var(--wine);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .4s ease;
}

.folder-card:hover .folder-svg {
  transform: rotate(-5deg) translateY(-4px);
}

.folder-card:hover .folder-paper {
  transform: translateY(-18px);
}

.folder-card:hover .folder-front {
  transform: rotateX(-9deg);
}

.folder-card:hover .folder-heart {
  transform: scale(1.2);
}

.folder-spark {
  position: absolute;
  color: var(--wine);
  opacity: 0;
  transition: opacity .3s, transform .5s;
}

.folder-spark-one {
  top: 0;
  right: 0;
  font-size: 23px;
  transform: translateY(10px);
}

.folder-spark-two {
  bottom: 4px;
  left: 5px;
  font-size: 28px;
  transform: translateY(10px);
}

.folder-card:hover .folder-spark {
  opacity: 1;
  transform: translateY(-5px);
}

.folder-divider {
  flex: 0 0 1px;
  height: 130px;
  background: rgba(73,15,22,.4);
}

.folder-copy {
  text-align: left;
}

.folder-copy h2 {
  margin-bottom: 15px;
  color: var(--wine);
  font-family: "Poppins", sans-serif;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.folder-copy p {
  color: rgba(73,15,22,.85);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
}

/* ==========================================
   BACK HOME BUTTON
========================================== */

.back-wrapper {
  margin-top: 45px;
}

.back-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-width: 275px;
  min-height: 58px;
  padding: 12px 34px;
  overflow: hidden;

  border: 1px solid rgba(73,15,22,.2);
  border-radius: 999px;

  background: var(--wine);
  box-shadow: 0 9px 24px rgba(73,15,22,.12);

  color: var(--cream);
  font-family: "Karumbi", cursive;
  font-size: 31px;
  line-height: 1;

  transition:
    background .3s,
    transform .3s,
    box-shadow .3s;
}

.back-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.14),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .65s;
}

.back-home:hover::before {
  left: 150%;
}

.back-home:hover {
  background: #681723;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(73,15,22,.2);
}

.back-arrow {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  transition: transform .3s;
}

.back-home:hover .back-arrow {
  transform: translateX(-7px);
}

.button-sparkle {
  position: absolute;
  top: 5px;
  right: 14px;
  color: var(--pink);
  font-size: 19px;
  opacity: 0;
  transform: scale(.4);
  transition: .3s;
}

.back-home:hover .button-sparkle {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   BOTTOM DECORATIONS
========================================== */

.heart-line {
  position: absolute;
  z-index: 2;
  right: -50px;
  bottom: -15px;
  width: 500px;
  height: 180px;
  pointer-events: none;
}

.heart-line path {
  stroke: var(--wine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: drawHeart 3s 1.7s ease forwards;
}

.bottom-signature {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1200px;
  margin-top: 65px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: rgba(73,15,22,.55);
}

.bottom-signature span:first-child {
  font-family: "Karumbi", cursive;
  font-size: 24px;
}

.bottom-signature span:last-child {
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

/* ==========================================
   KEYFRAME ANIMATIONS
========================================== */

@keyframes entranceReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawUnderline {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawOrbit {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawHeart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glowDrift {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(35px,-30px) scale(1.1);
  }
  100% {
    transform: translate(-20px,25px) scale(.95);
  }
}

@keyframes circleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(12deg);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: .65;
  }
  50% {
    transform: translateY(-15px) rotate(20deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes tapeWiggle {
  0%, 100% {
    transform: rotate(15deg) translateY(0);
  }
  50% {
    transform: rotate(12deg) translateY(-3px);
  }
}

@keyframes burstWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* ==========================================
   SMALLER DESKTOP / TABLET
========================================== */

@media (max-width: 1000px) {
  .coming-page {
    padding-top: 120px;
  }

  .main-heading h1 {
    font-size: clamp(90px, 13vw, 135px);
  }

  .folder-wrapper {
    width: min(680px, 94%);
  }

  .sparkle-one {
    left: 5%;
  }

  .sparkle-three {
    right: 5%;
  }
}

@media (max-width: 650px) {
  .project-nav {
    top: 12px;
    left: 18px;
    right: 18px;
  }

  .project-logo,
  .project-burger {
    width: 50px;
    height: 50px;
  }

  .project-menu-overlay {
    padding: 75px 18px 20px;
  }

  .coming-page {
    padding: 140px 18px 55px;
  }

  .script-heading span {
    font-size: 58px;
  }

  .main-heading h1 {
    font-size: clamp(58px, 15vw, 90px);
  }

  .heading-burst {
    transform: scale(.6);
    right: -35px;
  }

  .coming-subtitle {
    font-size: 29px;
  }

  .folder-wrapper {
    width: 100%;
    margin-top: 45px;
  }

  .folder-card {
    flex-direction: column;
    gap: 15px;
    padding: 38px 22px;
  }

  .folder-divider {
    display: none;
  }

  .folder-copy {
    text-align: center;
  }

  .folder-copy h2 {
    font-size: 25px;
  }

  .folder-copy p {
    font-size: 14px;
  }

  .bottom-signature {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .heart-line {
    width: 280px;
    opacity: .45;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.project-menu-overlay:not(.is-open) {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .entrance {
    opacity: 1;
    transform: none;
  }

  .script-heading path,
  .orbit-path,
  .heart-line path {
    stroke-dashoffset: 0;
  }
}
