/* ==========================================================================
   Camelato — Coming Soon
   Palette + type are the brand's locked tokens. Signature move: the video
   sits inside a circular "medallion" frame that echoes the tube packaging's
   silver lid and the camel character's palm medallion, rather than a generic
   rounded rectangle. Background is a quiet dawn-to-dusk gradient, a nod to
   the desert-to-Miami story, without illustrating it literally.
   ========================================================================== */

:root {
  /* Locked Camelato brand palette */
  --color-cream:      #F5EDD8; /* Warm Cream */
  --color-cream-deep: #DECFB5; /* Warm Cream, blended toward Saddle for the base gradient */
  --color-gold:        #C8922A; /* Amber Gold */
  --color-brown:       #1A0F00; /* Deep Desert Brown */
  --color-saddle:      #8B6339; /* Burnished Saddle */

  --font-display: 'Fraunces', Georgia, 'Liberation Serif', serif;

  --ring-width: clamp(320px, 55vw, 760px);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Some engines don't reliably apply the UA default for [hidden] to inline
   SVG — set it explicitly so the sound-icon swap is never ambiguous. */
[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

/* ==========================================================================
   Stage
   ========================================================================== */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.25rem);
  padding: clamp(1.75rem, 6vw, 4rem) clamp(1.25rem, 6vw, 3rem);
  padding-top: max(clamp(1.75rem, 6vw, 4rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1.75rem, 6vw, 4rem), env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-deep) 100%);
}

/* whisper-quiet grain, keeps the gradient from feeling flat/digital */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 220px 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  width: clamp(200px, 26vw, 420px);
  height: auto;
  opacity: 0;
  animation: rise 0.9s ease-out 0.1s forwards;
}

/* ==========================================================================
   Medallion (video)
   ========================================================================== */

.medallion {
  position: relative;
  width: var(--ring-width);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  opacity: 0;
  animation: rise 0.9s ease-out 0.32s forwards;
}

.medallion::after {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: 1;
  border-radius: 26px;
  border: 2px solid var(--color-gold);
  box-shadow:
    0 0 0 1px rgba(200, 146, 42, 0.22),
    0 18px 40px rgba(26, 15, 0, 0.18);
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}

.video {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  background: var(--color-saddle);
}

.sound-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  background: var(--color-cream);
  color: var(--color-brown);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sound-toggle:hover {
  transform: scale(1.08);
  background: var(--color-gold);
  color: var(--color-cream);
}

.sound-toggle:focus-visible {
  outline: 2px solid var(--color-brown);
  outline-offset: 3px;
}

.sound-toggle .icon {
  width: 7px;
  height: 7px;
}

/* ==========================================================================
   Coming soon
   ========================================================================== */

.coming-soon {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 4vw, 2.25rem);
  letter-spacing: 0.32em;
  color: var(--color-brown);
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.9s ease-out 0.56s forwards;
}

/* ==========================================================================
   Social
   ========================================================================== */

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(-2.5rem, -6vw, -1.25rem);
  opacity: 0;
  animation: rise 0.9s ease-out 0.72s forwards;
}

.copyright {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-saddle);
  line-height: 1;
}

.social-link {
  color: var(--color-saddle);
  display: grid;
  place-items: center;
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-gold);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-brown);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(200, 146, 42, 0.20),
      0 18px 40px rgba(26, 15, 0, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(200, 146, 42, 0.12),
      0 22px 48px rgba(26, 15, 0, 0.20);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .medallion, .coming-soon, .social {
    animation: none;
    opacity: 1;
  }
  .medallion::after {
    animation: none;
  }
}

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 480px) {
  .coming-soon {
    letter-spacing: 0.2em;
  }
}

@media (max-width: 340px) {
  .coming-soon {
    letter-spacing: 0.12em;
  }
}
