/*
 * Chikit — coming-soon page.
 * The Ayurveda photo fills the screen and fades softly into the shop's cream around the middle, so the official
 * (plum) logo sits directly on the page, exactly as it does on the store: no badge, no box, no recolouring.
 * Brand tokens: plum #602460, turmeric gold, warm cream, Poppins. Gold is used as a fill, or as the darker
 * "gold ink" when it is text on cream.
 */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-normal.woff2") format("woff2"); }

:root {
  --plum: #602460;
  --plum-hover: #4E1C4E;
  --plum-deep: #431A43;
  --plum-tint: #F1E4F2;
  --plum-soft: #9A4F89;
  --gold: #C08A3E;
  --gold-light: #E9C58A;
  --gold-ink: #8A5A1E;
  --cream: #FDF9F4;
  --ink: #241720;
  --muted: #6B5D68;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- background: the photo, fading into cream where the words are ---------- */
.bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: var(--cream); }
.bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.03); }
.bg__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 58% at 50% 50%, rgba(253, 249, 244, 1) 0%, rgba(253, 249, 244, 0.97) 34%, rgba(253, 249, 244, 0.8) 66%, rgba(253, 249, 244, 0.64) 100%),
    radial-gradient(48rem 30rem at -6% -8%, rgba(96, 36, 96, 0.10), transparent 62%),
    radial-gradient(44rem 28rem at 108% 108%, rgba(192, 138, 62, 0.14), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#scene { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }

/* ---------- layout ---------- */
.stage {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 6vh 1.5rem; gap: clamp(1.6rem, 5vh, 3rem);
}
.status { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* ---------- the official logo, straight on the page ---------- */
.brand { display: inline-block; border-radius: 12px; }
.brand img { width: clamp(13rem, 46vw, 23rem); height: auto; aspect-ratio: 1000 / 305; }

/* ---------- words ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 1rem; margin: 0 0 1rem;
  font-size: clamp(0.72rem, 2.4vw, 0.85rem); font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before, .eyebrow::after { content: ""; width: clamp(1.4rem, 6vw, 2.6rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.headline {
  margin: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  font-size: clamp(1.6rem, 9vw, 5.6rem); font-weight: 600; line-height: 1.05; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.tagline { margin: clamp(1.4rem, 3.4vh, 2rem) 0 0; max-width: 28rem; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem); color: var(--muted); }

/* ---------- loader bar ---------- */
.progress { display: flex; align-items: center; gap: 1rem; width: min(32rem, 100%); }
.progress__track {
  position: relative; flex: 1; height: 0.5rem; border-radius: 999px;
  background: rgba(96, 36, 96, 0.13); box-shadow: inset 0 1px 2px rgba(67, 26, 67, 0.18);
}
.progress__fill {
  position: relative; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--plum), var(--plum-soft));
  box-shadow: 0 0 14px rgba(96, 36, 96, 0.32);
  transition: width 2.1s var(--ease);
}
.progress__fill::after { /* soft light travelling along the bar, so it always feels alive */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  background-size: 220% 100%; animation: sheen 2.8s linear infinite;
}
.progress__dot {
  position: absolute; right: -0.45rem; top: 50%; width: 0.95rem; height: 0.95rem; transform: translateY(-50%);
  border-radius: 50%; background: #fff; border: 3px solid var(--plum); box-shadow: 0 2px 8px rgba(96, 36, 96, 0.4); z-index: 1;
}
.progress__value { min-width: 3.2ch; text-align: right; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--plum); }

/* ---------- entrance (starts once the loading screen has gone) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.is-ready .reveal { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.13s + 0.1s); }
.is-ready .bg img { animation: settle 2.4s var(--ease) both; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1.03); } }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- small phones in landscape, and very short screens ---------- */
@media (max-height: 520px) {
  .stage { padding-block: 4vh; gap: 1rem; }
  .brand img { width: clamp(9rem, 26vh, 14rem); }
  .headline { margin-bottom: 1rem; font-size: clamp(1.8rem, 7vh, 3rem); }
  .tagline { margin-top: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .is-ready .bg img, .progress__fill::after { animation: none !important; }
  .progress__fill { transition: none; }
}
