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

:root {
  --bg: #000000;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #8b7340;
  --page-padding: clamp(1.25rem, 4vw, 2.5rem);
  --silk-texture: 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");
  --grain-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  color: var(--gold);
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  overflow: hidden;
  position: relative;
}

/* Silk fabric texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--silk-texture);
  background-size: 180px 180px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: var(--grain-texture);
  background-size: 200px 200px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: grainShift 8s steps(10) infinite;
  }
}

@keyframes grainShift {
  0%, 100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  30% {
    transform: translate(3%, 1%);
  }
  50% {
    transform: translate(-1%, 4%);
  }
  70% {
    transform: translate(4%, -2%);
  }
  90% {
    transform: translate(-3%, 2%);
  }
}

/* Subtle spotlight — kept very faint so logo black blends in */
.spotlight {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 40% at 50% 42%,
    rgba(20, 18, 14, 0.35) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .spotlight {
    animation: spotlightPulse 14s ease-in-out infinite;
  }
}

@keyframes spotlightPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

/* Gold particle field */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: var(--page-padding) 1.5rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
}

body.loaded .content {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-name-wrap {
  position: relative;
  display: inline-block;
}

.mark-r {
  position: absolute;
  top: 0.15em;
  right: -1.6em;
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-size: clamp(0.48rem, 1.6vw, 0.64rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.brand-name {
  font-family: "Bodoni Moda", "Didot", "Bodoni MT", serif;
  font-size: clamp(2.75rem, 11vw, 5rem);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    var(--gold-light) 0%,
    var(--gold) 42%,
    var(--gold-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  text-indent: 0.38em;
}

.coming-soon {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-indent: 0.35em;
  cursor: default;
}

.coming-soon .letter {
  display: inline-block;
  opacity: 0.5;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.coming-soon .letter.space {
  width: 0.35em;
}

.coming-soon:hover .letter {
  color: var(--gold-light);
  opacity: 1;
  transform: translateY(-1px);
  transition-delay: calc(var(--i) * 45ms);
}

.coming-soon:not(:hover) .letter {
  transition-delay: 0ms;
}

.footer {
  position: fixed;
  bottom: var(--page-padding);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  opacity: 0;
}

body.loaded .footer {
  animation: fadeIn 1.2s ease 0.4s forwards;
}

.footer p {
  font-size: clamp(0.55rem, 1.5vw, 0.7rem);
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.6;
}

@media (max-width: 480px) {
  .brand-name {
    letter-spacing: 0.04em;
  }

  .mark-r {
    right: -1.48em;
  }

  .brand-tagline {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .coming-soon {
    font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    letter-spacing: 0.25em;
    text-indent: 0.25em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .footer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .spotlight,
  body::after {
    animation: none;
  }

  .coming-soon:hover .letter {
    transition-delay: 0ms;
  }
}
