/* Brivaya coming-soon page (brivaya.com until the store launches).
   Brand: brand/kit/README.txt (Pearl #FDFCFA, Rose Gold #E3AA94, Navy 200 #C2C2D6; Marcellus + Jost, SIL OFL in /fonts).
   The velvet ground is the storefront's (components/brivaya/VoidBackdrop.tsx POOLS, styles/experiences.css
   .void-velvet and .void-vignette), redone in CSS: the page runs no script, so its CSP allows none. */

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #050b22;
  --pearl: #fdfcfa;
  --rose: #e3aa94;
  --navy-200: #c2c2d6;
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ground);
  color: var(--pearl);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: rgb(227 170 148 / 0.35);
}

/* Ground: sheen light under the velvet pile, then a navy-black vignette. The fixed layer is its own blend group,
   so it carries the navy itself: with a transparent backdrop the overlay pile shows unblended, as grey. */
.ground {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ground);
}
.ground__light,
.ground__sheen,
.ground__velvet,
.ground__vignette {
  position: absolute;
}
.ground__light {
  inset: -12%;
  background:
    radial-gradient(circle 56vmax at 78% 22%, rgb(62 134 205 / 0.18), rgb(62 134 205 / 0.063) 45%, rgb(62 134 205 / 0) 100%),
    radial-gradient(circle 52vmax at 24% 30%, rgb(28 72 215 / 0.16), rgb(28 72 215 / 0.056) 45%, rgb(28 72 215 / 0) 100%),
    radial-gradient(circle 42vmax at 8% 68%, rgb(34 62 196 / 0.1), rgb(34 62 196 / 0.035) 45%, rgb(34 62 196 / 0) 100%),
    radial-gradient(circle 38vmax at 62% 80%, rgb(24 100 180 / 0.1), rgb(24 100 180 / 0.035) 45%, rgb(24 100 180 / 0) 100%);
  animation: drift 34s ease-in-out infinite alternate;
}
/* Wide, soft bands of sheen, as light lies across folds of pile. */
.ground__sheen {
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgb(70 130 215 / 0.05) 46%,
    rgb(80 140 220 / 0.075) 50%,
    rgb(70 130 215 / 0.05) 54%,
    transparent 60%
  );
  animation: sheen 26s ease-in-out infinite alternate;
}
.ground__velvet {
  inset: 0;
  background: url("/img/velvet-pile.webp") 0 0 / 250px 250px repeat;
  mix-blend-mode: overlay;
  opacity: 0.85;
}
.ground__vignette {
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, transparent 20%, rgb(2 5 17 / 0.55) 100%);
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2.5%, 0) scale(1.06);
  }
}
@keyframes sheen {
  from {
    transform: translate3d(-16%, 0, 0);
  }
  to {
    transform: translate3d(16%, 0, 0);
  }
}

/* Diamond fire: brief four-point glints in the storefront's fire colours, never over the copy. */
.glint {
  --s: 14px;
  --c: 247 214 200;
  position: absolute;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background:
    radial-gradient(circle, rgb(var(--c) / 0.95) 0 9%, rgb(var(--c) / 0) 34%),
    linear-gradient(to right, transparent 46%, rgb(var(--c) / 0.9) 50%, transparent 54%),
    linear-gradient(to bottom, transparent 46%, rgb(var(--c) / 0.9) 50%, transparent 54%);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 70%);
  mask: radial-gradient(circle, #000 0, transparent 70%);
  opacity: 0;
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  7% {
    opacity: 1;
    transform: scale(1) rotate(18deg);
  }
  15% {
    opacity: 0;
    transform: scale(0.3) rotate(40deg);
  }
}
/* On the seal: corners measured from the logo's viewBox (763.61 x 457.16). */
.glint--s1 {
  --s: 22px;
  left: 62.3%;
  top: 9.2%;
  animation-delay: 1.6s;
}
.glint--s2 {
  --s: 13px;
  --c: 215 233 251;
  left: 37.6%;
  top: 47.5%;
  animation-delay: 4.4s;
  animation-duration: 8s;
}
.glint--s3 {
  --s: 16px;
  --c: 196 181 253;
  left: 98.5%;
  top: 74%;
  animation-delay: 6.1s;
  animation-duration: 9s;
}
.glint--f1 {
  --s: 10px;
  --c: 215 233 251;
  left: 14%;
  top: 20%;
  animation-delay: 2.8s;
  animation-duration: 10s;
}
.glint--f2 {
  --s: 9px;
  --c: 253 230 138;
  left: 86%;
  top: 66%;
  animation-delay: 5.3s;
  animation-duration: 11s;
}
.glint--f3 {
  --s: 8px;
  --c: 167 243 208;
  left: 21%;
  top: 82%;
  animation-delay: 8.2s;
  animation-duration: 12s;
}

/* Stage */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 24px max(56px, env(safe-area-inset-bottom));
  text-align: center;
}
.stage > * {
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stage > :nth-child(2) {
  animation-delay: 0.2s;
}
.stage > :nth-child(3) {
  animation-delay: 0.38s;
}
.stage > :nth-child(4) {
  animation-delay: 0.54s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lockup {
  position: relative;
  width: clamp(220px, 34vw, 420px);
}
.lockup__title {
  margin: 0;
  line-height: 0;
}
.lockup__title img {
  display: block;
  width: 100%;
  height: auto;
}
.tagline {
  margin: clamp(28px, 5.5vh, 52px) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--pearl);
}
.meta {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
}
/* Tracking adds space after the last letter; pull it back so each phrase centres on its own text. */
.meta > span:not(.meta__gem) {
  margin-right: -0.3em;
}
.meta__gem {
  width: 5px;
  height: 5px;
  background: var(--rose);
  transform: rotate(45deg);
  opacity: 0.85;
}
.social {
  margin-top: clamp(36px, 7vh, 64px);
  display: flex;
  gap: 32px;
}
.social a {
  padding: 12px 0 8px;
  border-bottom: 1px solid rgb(194 194 214 / 0.35);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-200);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.social a:hover {
  color: var(--pearl);
  border-color: var(--rose);
}
.social a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .meta {
    flex-direction: column;
    gap: 12px;
  }
  .meta > span:not(.meta__gem) {
    margin-right: 0;
    padding-left: 0.3em;
  }
  .glint--f2,
  .glint--f3 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ground__light,
  .ground__sheen,
  .stage > * {
    animation: none;
  }
  .glint {
    display: none;
  }
}
