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

:root {
  --edge: #ddd8ce;
  --ink: #141210;
  --warm: #8a7340;
  --font: "Cormorant Garamond", Georgia, serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--edge);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.fold {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.form {
  position: absolute;
  width: min(85vw, 640px);
  height: min(85vw, 640px);
  pointer-events: none;
}

.singularity {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 8%,
    rgba(255, 252, 245, 0.55) 22%,
    rgba(255, 248, 235, 0.2) 40%,
    transparent 65%
  );
  animation: radiate 6s ease-in-out infinite;
}

.arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.arc-1 {
  inset: 0;
  border-top-color: rgba(40, 35, 28, 0.1);
  border-right-color: rgba(40, 35, 28, 0.04);
  animation: turn 60s linear infinite;
}

.arc-2 {
  inset: 14%;
  border-bottom-color: rgba(40, 35, 28, 0.07);
  border-left-color: rgba(40, 35, 28, 0.03);
  animation: turn 42s linear infinite reverse;
}

.arc-3 {
  inset: 28%;
  border-top-color: rgba(40, 35, 28, 0.05);
  animation: turn 80s linear infinite;
}

.point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 20px 6px rgba(255, 255, 255, 1),
    0 0 60px 20px rgba(255, 252, 245, 0.9),
    0 0 120px 40px rgba(255, 248, 235, 0.5);
  animation: pulse 5s ease-in-out infinite;
}

.name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 2rem);
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: 0.32em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: appear 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.name span {
  display: inline-block;
  padding-left: 0.32em;
  white-space: nowrap;
}

.contact {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 1;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(10, 9, 8, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact:hover {
  color: var(--warm);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes radiate {
  0%,
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 48rem) {
  .name {
    flex-direction: column;
    gap: 0.2em;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }

  .name span {
    padding-left: 0.2em;
  }
}

@media (max-width: 30rem) {
  .name {
    font-size: 2.15rem;
    letter-spacing: 0.16em;
  }

  .name span {
    padding-left: 0.16em;
  }
}

@media (max-width: 22.5rem) {
  .name {
    font-size: 1.85rem;
    letter-spacing: 0.1em;
  }

  .name span {
    padding-left: 0.1em;
  }
}

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

  .name {
    opacity: 1;
  }
}
