:root {
  --pink: #fd0054;
  --cream: #fcf8db;
  --green: #39e346;
  --ink: #373b45;
}

@font-face {
  font-family: "Barbra";
  src: url("font/Barbra-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

body::selection {
  color: var(--pink);
  background: var(--green);
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 2.6rem 1rem 3.2rem;
  background: var(--pink);
  clip-path: polygon(
    0 -38%,
    100% -38%,
    100% -18%,
    91% -15%,
    84% -26%,
    72% -14%,
    63% -21%,
    50% -12%,
    38% -23%,
    29% -16%,
    20% -27%,
    10% -15%,
    0 -20%
  );
  animation: revealBackground 1.75s cubic-bezier(0.76, 0, 0.13, 1) 0.16s both;
  will-change: clip-path;
}

.text-pattern {
  position: fixed;
  z-index: 0;
  inset: -46vmax -62vmax;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.6rem, 8vw, 4.8rem);
  overflow: hidden;
  color: #ff83aa;
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
  transform: rotate(-31deg);
  transform-origin: center;
}

.pattern-row {
  display: flex;
  justify-content: center;
  gap: clamp(2.8rem, 9vw, 5.4rem);
  white-space: nowrap;
}

.pattern-row:nth-child(even) {
  transform: translateX(clamp(-6rem, -12vw, -3rem));
}

.pattern-word {
  flex: 0 0 auto;
  font-family: "Barbra", "Barlow", Arial, sans-serif;
  font-size: clamp(3.1rem, 13.5vw, 5.6rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.coming-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(78vw, 32rem);
  min-height: min(67svh, 47rem);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 1.65rem 2.1rem;
  border-radius: 3.3rem;
  background: var(--cream);
  box-shadow: 0.9rem 0.85rem 0 var(--ink);
  text-align: center;
  transform-origin: center;
  animation: cardPop 0.72s cubic-bezier(0.22, 1.35, 0.36, 1) 2.08s both;
}

.brand-block {
  display: grid;
  width: 100%;
  justify-items: center;
  animation-delay: 2.6s;
}

.brand-logo {
  width: min(100%, 16.9rem);
  height: 6.1rem;
  background: var(--pink);
  -webkit-mask-image: url("img/logo.png");
  mask-image: url("img/logo.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-block p {
  margin: 0.25rem 0 0;
  color: var(--pink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  display: grid;
  gap: 0.32rem;
  margin: 1.35rem 0 1.4rem;
  font-size: 2.28rem;
  font-weight: 800;
  line-height: 1.22;
}

h1 span {
  display: block;
}

h1 span:nth-child(1) {
  animation-delay: 2.86s;
}

h1 span:nth-child(2) {
  animation-delay: 3s;
}

h1 span:nth-child(3) {
  animation-delay: 3.14s;
}

.soon-block {
  display: grid;
  width: 100%;
  justify-items: center;
}

.soon {
  width: 100%;
  max-width: 100%;
  margin: 0.8rem 0 0;
  font-family: "Barbra", "Barlow", Arial, sans-serif;
  font-size: clamp(1.4rem, 9.5vw, 2.35rem);
  line-height: 0.9;
  white-space: nowrap;
  animation-delay: 3.36s;
}

.soon-dots {
  display: flex;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  margin: 0 0 1.15rem;
  font-family: "Barbra", "Barlow", Arial, sans-serif;
  font-size: 2.1rem;
  line-height: 0.7;
  animation-delay: 3.5s;
}

.soon-dots span {
  display: inline-block;
  animation: dotWave 1.1s ease-in-out 4.05s infinite;
}

.soon-dots span:nth-child(2) {
  animation-delay: 4.18s;
}

.soon-dots span:nth-child(3) {
  animation-delay: 4.31s;
}

.social {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  color: var(--ink);
}

.social p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;
  animation-delay: 3.58s;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--pink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
  animation-delay: 3.74s;
}

.brand-block,
h1 span,
.soon,
.soon-dots,
.social p,
.social a {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-0.75rem);
  animation-name: textSweep;
  animation-duration: 0.72s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.22, 1);
  animation-fill-mode: both;
}

.social a:hover {
  color: #000;
  transform: translateY(-0.08rem);
}

.social a:focus-visible {
  outline: 0.2rem solid var(--green);
  outline-offset: 0.35rem;
  border-radius: 0.8rem;
}

.social i {
  width: 1.9rem;
  font-size: 1.9rem;
  line-height: 1;
}

@media (min-width: 48rem) {
  .page-shell {
    padding: 4rem 2rem;
  }

  .text-pattern {
    inset: -44vmax -52vmax;
    gap: clamp(3.3rem, 5.2vw, 5.6rem);
  }

  .pattern-row {
    gap: clamp(4rem, 5.8vw, 7rem);
  }

  .pattern-word {
    font-size: clamp(4.2rem, 5.2vw, 6.6rem);
  }

  .coming-card {
    width: min(62vw, 54rem);
    min-height: 43rem;
    padding: 3.8rem 4.5rem 3.1rem;
    border-radius: 4.3rem;
    box-shadow: 1.25rem 1.15rem 0 var(--ink);
  }

  .brand-logo {
    width: 29rem;
    height: 10rem;
  }

  .brand-block p {
    margin-top: 0.45rem;
    font-size: 1.75rem;
  }

  h1 {
    gap: 0.45rem;
    margin: 2rem 0 1.55rem;
    font-size: 3.55rem;
    line-height: 1.17;
  }

  .soon {
    margin: 1.2rem 0 0;
    font-size: clamp(2.7rem, 5vw, 3.7rem);
  }

  .soon-dots {
    height: 2.2rem;
    margin-bottom: 1.35rem;
    gap: 0.42rem;
    font-size: 2.9rem;
  }

  .social {
    gap: 0.85rem;
  }

  .social p {
    font-size: 1.75rem;
  }

  .social a {
    gap: 0.9rem;
    font-size: 1.85rem;
  }

  .social i {
    width: 2.7rem;
    font-size: 2.7rem;
  }
}

@media (min-width: 75rem) {
  .coming-card {
    width: min(48vw, 58rem);
    min-height: 45rem;
  }
}

@media (max-width: 23rem) {
  .coming-card {
    width: min(84vw, 22rem);
    padding: 2rem 1.25rem 1.8rem;
    border-radius: 2.55rem;
  }

  .brand-logo {
    height: 5.2rem;
  }

  .brand-block p {
    font-size: 0.92rem;
  }

  h1 {
    font-size: 1.95rem;
  }

  .soon {
    font-size: clamp(1.1rem, 8.2vw, 1.8rem);
  }

  .social p,
  .social a {
    font-size: 1rem;
  }
}

@media (max-height: 43rem) {
  .page-shell {
    overflow: auto;
  }

  .coming-card {
    min-height: 35rem;
  }
}

@keyframes revealBackground {
  0% {
    clip-path: polygon(
      0 -38%,
      100% -38%,
      100% -18%,
      91% -15%,
      84% -26%,
      72% -14%,
      63% -21%,
      50% -12%,
      38% -23%,
      29% -16%,
      20% -27%,
      10% -15%,
      0 -20%
    );
  }

  100% {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 123%,
      91% 119%,
      84% 132%,
      72% 118%,
      63% 126%,
      50% 116%,
      38% 129%,
      29% 121%,
      20% 134%,
      10% 120%,
      0 125%
    );
  }
}

@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.84);
  }

  62% {
    opacity: 1;
    transform: translateY(-0.28rem) scale(1.035);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textSweep {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-0.75rem);
  }

  100% {
    opacity: 1;
    clip-path: inset(0);
    transform: translateX(0);
  }
}

@keyframes dotWave {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  35% {
    transform: translateY(-0.32rem);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .page-shell,
  .text-pattern,
  .coming-card,
  .brand-block,
  h1 span,
  .soon,
  .soon-dots,
  .social p,
  .social a {
    animation: none !important;
    opacity: 1;
    clip-path: none;
  }

  .coming-card,
  .brand-block,
  h1 span,
  .soon,
  .soon-dots,
  .social p,
  .social a {
    transform: none;
  }

  .soon-dots span {
    animation: none !important;
    opacity: 1;
  }
}
