/* ============================================================
   Auro Super Intelligence — Coming Soon
   Obsidian + liquid gold. One screen. No scroll.
   ============================================================ */

:root {
  --bg: #050403;
  --gold: #d4af6a;
  --gold-bright: #f0dcae;
  --gold-dim: #8a6f3f;
  --text: #f2efe8;
  --font: 'Michroma', 'Avenir Next', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --ease-out: cubic-bezier(0.19, 0.66, 0.22, 1);
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  /* static fallback ground — also what no-JS / no-WebGL visitors see */
  background:
    radial-gradient(120% 85% at 50% 38%, #16110a 0%, #0a0806 45%, #050403 78%, #020201 100%);
  color: var(--text);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-webgl #ribbons { display: none; }

/* ---------------- canvas ---------------- */

#ribbons {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* ---------------- stage ---------------- */

.stage {
  position: relative;
  z-index: 2;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

/* dark scrim behind the wordmark — keeps it readable over the ribbons */
.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 49%;
  width: min(90vw, 1040px);
  height: 62vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(4, 3, 2, 0.66), transparent 72%);
  pointer-events: none;
}

/* faint warm glow, just above the scrim */
.stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 47%;
  width: min(92vw, 1100px);
  height: 48vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 175, 106, 0.10), transparent 70%);
  pointer-events: none;
}

/* ---------------- title ---------------- */

.title { position: relative; z-index: 1; }

.title__auro {
  display: block;
  font-size: clamp(1.05rem, 3.1vw, 1.9rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em; /* balance the trailing tracking */
  line-height: 1.6;
  background: linear-gradient(180deg, #f6e8c4 0%, #d9bc7e 45%, #a07c3c 78%, #e8d3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title__main-wrap {
  position: relative;
  display: block;
}

.title__main {
  display: block;
  font-size: clamp(1.5rem, 6.3vw, 4.3rem);
  letter-spacing: 0.045em;
  line-height: 1.3;
  background-image: linear-gradient(180deg,
    #ffffff 0%, #f4f2ec 16%, #d8d6cf 32%, #918f88 46%,
    #55534e 50%, #b9b6ad 54%, #f1eee6 63%,
    #a5a29a 80%, #75736d 91%, #d3d0c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgba(255, 238, 200, 0.10));
}

/* moving sheen — a ghost copy of the line, clipped to its glyphs */
.title__sheen {
  position: absolute;
  inset: 0;
  display: block;
  font-size: clamp(1.5rem, 6.3vw, 4.3rem);
  letter-spacing: 0.045em;
  line-height: 1.3;
  background-image: linear-gradient(100deg,
    transparent 34%, rgba(255, 255, 255, 0.75) 46%,
    rgba(255, 243, 214, 0.95) 50%,
    rgba(255, 255, 255, 0.75) 54%, transparent 66%);
  background-size: 260% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

/* ---------------- tagline ---------------- */

.tagline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: clamp(26px, 4.6vh, 46px);
}

.tagline__rule {
  width: clamp(44px, 9vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.85));
}

.tagline__rule--r {
  background: linear-gradient(90deg, rgba(212, 175, 106, 0.85), transparent);
}

.tagline__text {
  font-size: clamp(0.55rem, 1.5vw, 0.78rem);
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  color: #c9ab6d;
  white-space: nowrap;
}

/* ---------------- glints (4-point stars) ---------------- */

.glint {
  position: fixed;
  z-index: 3;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 250, 235, 0.95) 0%, rgba(255, 240, 200, 0.30) 35%, transparent 68%);
  pointer-events: none;
}

.glint::before,
.glint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
}

.glint::before {
  width: var(--len, 90px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 225, 0.85) 50%, transparent);
}

.glint::after {
  width: 1px;
  height: var(--len, 90px);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, rgba(255, 248, 225, 0.85) 50%, transparent);
}

.glint--1 { top: 21%; right: 13%; --len: 120px; }
.glint--2 { top: 56%; left: 9%;  --len: 64px; }
.glint--3 { bottom: 22%; right: 21%; --len: 84px; }

/* ============================================================
   Motion — only when JS is on AND the user allows motion
   ============================================================ */

.js.motion-ok .title__auro {
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.25s forwards;
}

.js.motion-ok .title__main {
  opacity: 0;
  animation: fade-up 1.1s var(--ease-out) 0.5s forwards;
}

.js.motion-ok .title__sheen {
  opacity: 0;
  animation:
    sheen-in 0.6s linear 1.9s forwards,
    sheen-sweep 7s var(--ease-out) 2.5s infinite;
}

.js.motion-ok .tagline {
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.5s forwards;
}

.js.motion-ok .tagline__rule {
  transform: scaleX(0);
  animation: rule-in 1s var(--ease-out) 1.7s forwards;
}
.js.motion-ok .tagline__rule--r { transform-origin: left center; }
.js.motion-ok .tagline__rule:not(.tagline__rule--r) { transform-origin: right center; }

.js.motion-ok .glint {
  opacity: 0;
  animation:
    glint-in 1.2s ease-out 2.1s forwards,
    glint-twinkle 5.5s ease-in-out 3.2s infinite;
}
.js.motion-ok .glint--2 { animation-delay: 2.3s, 3.9s; }
.js.motion-ok .glint--3 { animation-delay: 2.5s, 4.6s; }

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

@keyframes rule-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes sheen-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sheen-sweep {
  0%   { background-position: 200% 0; }
  42%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}

@keyframes glint-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glint-twinkle {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.72); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
}

/* ---------------- reduced motion: everything stands still ---------------- */

@media (prefers-reduced-motion: reduce) {
  .glint { opacity: 0.8; }
}

/* ---------------- small screens ---------------- */

@media (max-width: 640px) {
  .glint--1 { top: 16%; right: 8%; --len: 84px; }
  .glint--2 { top: 62%; left: 7%;  --len: 48px; }
  .glint--3 { bottom: 16%; right: 12%; --len: 60px; }
}