/* ---------------------------------------------------------------------------
   Louise — launch landing page
--------------------------------------------------------------------------- */

:root {
  --ink: #ffffff;
  --pan-range: 22px;          /* how far the bg drifts with the cursor */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100svh;
  overflow: hidden;
  background: #6b4530;        /* warm fallback while the image loads */
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----------------------------- Background ------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Wrapper that receives the subtle mouse parallax. Oversized so the
   translation never reveals an edge. */
.bg__pan {
  position: absolute;
  inset: calc(-1 * var(--pan-range) - 12px);
  transform: translate3d(
    calc(var(--mx, 0) * var(--pan-range)),
    calc(var(--my, 0) * var(--pan-range)),
    0
  );
  will-change: transform;
}

/* The image itself slowly drifts/zooms (Ken Burns). */
.bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 44s var(--ease) infinite alternate;
  will-change: transform;
}

/* Gentle vignette so the white logo always has contrast. */
.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 38%, rgba(40, 20, 12, 0.34) 100%),
    linear-gradient(180deg, rgba(40, 20, 12, 0.06), rgba(40, 20, 12, 0.16));
}

@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.13) translate3d(-1.6%, -1.2%, 0); }
  100% { transform: scale(1.07) translate3d(1.2%, 0.6%, 0); }
}

/* -------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.25rem, 6vh, 3.5rem);
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem
           max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3.2vh, 1.9rem);
  color: var(--ink);
  filter: drop-shadow(0 2px 22px rgba(40, 18, 8, 0.28));
  animation: rise 1.1s var(--ease) both;
}

.brand__mark {
  width: clamp(64px, 11vw, 96px);
  height: auto;
}

.brand__wordmark {
  width: clamp(184px, 30vw, 268px);
  height: auto;
}

/* ----------------------------- Countdown ------------------------------- */

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.3rem, 1.4vw, 0.75rem);
  animation: rise 1.1s var(--ease) 0.18s both;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: clamp(1.9rem, 5vw, 2.6rem);
}

.countdown__num {
  font-size: clamp(1.2rem, 3.6vw, 1.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 24px rgba(40, 18, 8, 0.30);
}

.countdown__label {
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
}

.countdown__sep {
  font-size: clamp(0.8rem, 2.4vw, 1.25rem);
  font-weight: 200;
  line-height: 1;
  opacity: 0.4;
  transform: translateY(0.05em);
}

/* When launched, the countdown is swapped for a short message. */
.countdown.is-live {
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

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

/* ------------------------------ Text CTA ------------------------------- */

@property --shimmer-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.text-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.95rem;
  border-radius: 999px;
  color: #42251f;
  font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;

  /* Frosted glass: film-grain noise blended over a translucent white
     tint, with the warm gradient blurred through it. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.38));
  background-size: 150px 150px, auto;
  background-blend-mode: overlay, normal;
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);

  /* Warm inner shade + soft drop shadow (the rim is the shimmer below). */
  box-shadow:
    inset 0 -7px 16px rgba(120, 70, 40, 0.1),
    0 10px 30px rgba(40, 18, 8, 0.28);

  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: rise 1.1s var(--ease) 0.3s both;
}

/* A highlight that travels around the pill's border ring. The conic
   gradient is masked to just the 1.5px rim so the frosted centre shows. */
.text-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--shimmer-angle),
    rgba(255, 255, 255, 0.12) 0deg,
    rgba(255, 255, 255, 0.12) 62deg,
    rgba(255, 255, 255, 1) 90deg,
    rgba(255, 255, 255, 0.12) 118deg,
    rgba(255, 255, 255, 0.12) 242deg,
    rgba(255, 255, 255, 1) 270deg,
    rgba(255, 255, 255, 0.12) 298deg,
    rgba(255, 255, 255, 0.12) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
  pointer-events: none;
  animation: shimmer-spin 3s linear infinite;
}

.text-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 -7px 16px rgba(120, 70, 40, 0.12),
    0 14px 38px rgba(40, 18, 8, 0.34);
}

.text-cta:hover::before { animation-duration: 2s; }

.text-cta:active { transform: translateY(0) scale(0.99); }

@keyframes shimmer-spin {
  to { --shimmer-angle: 360deg; }
}

.text-cta__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* --------------------------- Reduced motion ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bg__img { animation: none; transform: scale(1.06); }
  .bg__pan { transform: none; }
  .brand,
  .countdown,
  .text-cta,
  .text-cta::before { animation: none; }
}
