/* Avatar Studio Pro — public entry screen. EMBER tokens only (styles.css :root); no hard-coded colours.
   Default styles are the settled final state; animations only describe how each part arrives, so
   prefers-reduced-motion simply removes them and shows the same composition, still. */

.entry-body{margin:0;min-height:100vh;min-height:100svh;background:var(--cinema);color:var(--cream);overflow:hidden;font-family:var(--font-body);color-scheme:dark}
.entry{position:fixed;inset:0;display:grid;place-items:center;overflow:hidden;isolation:isolate;background:var(--cinema);animation:entry-fade 1.4s var(--ease) both}

/* atmosphere: warm core glow, cool teal haze, deep charcoal edges */
.entry-atmosphere{position:absolute;inset:-20%;z-index:0;pointer-events:none;
  background:
    radial-gradient(38% 34% at 50% 48%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 70%),
    radial-gradient(46% 40% at 18% 82%,color-mix(in srgb,var(--teal) 16%,transparent),transparent 72%),
    radial-gradient(40% 36% at 86% 14%,color-mix(in srgb,var(--accent-deep) 14%,transparent),transparent 70%),
    linear-gradient(180deg,var(--dk-1),var(--cinema) 55%,var(--dk-1));
  animation:entry-breathe 14s ease-in-out infinite alternate}

/* faint perspective grid (the studio floor) */
.entry-grid{position:absolute;left:-50%;right:-50%;bottom:-8%;height:58%;z-index:0;pointer-events:none;opacity:.55;
  background-image:
    linear-gradient(color-mix(in srgb,var(--cream) 9%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--cream) 9%,transparent) 1px,transparent 1px);
  background-size:64px 64px;transform:perspective(520px) rotateX(64deg);transform-origin:50% 100%;
  -webkit-mask-image:radial-gradient(60% 90% at 50% 100%,#000 25%,transparent 75%);mask-image:radial-gradient(60% 90% at 50% 100%,#000 25%,transparent 75%);
  animation:entry-grid 9s linear infinite}

.entry-canvas{position:absolute;inset:0;z-index:1;width:100%;height:100%;display:block;pointer-events:none}

/* the digital core: three rings forming behind the name */
.entry-core{position:absolute;z-index:1;width:min(76vmin,700px);aspect-ratio:1;border-radius:50%;pointer-events:none;animation:entry-core-in 2.2s .3s var(--ease) both}
.entry-core span{position:absolute;border-radius:50%}
.entry-core span:nth-child(1){inset:0;
  background:conic-gradient(from 0deg,transparent 0 8%,color-mix(in srgb,var(--accent) 85%,transparent) 18%,transparent 34%,color-mix(in srgb,var(--teal) 70%,transparent) 58%,transparent 72%,color-mix(in srgb,var(--accent-soft) 60%,transparent) 88%,transparent);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));
  filter:drop-shadow(0 0 10px color-mix(in srgb,var(--accent) 45%,transparent));animation:entry-spin 26s linear infinite}
.entry-core span:nth-child(2){inset:9%;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--cream) 34%,transparent) 0 .6deg,transparent .6deg 6deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));
  opacity:.55;animation:entry-spin 70s linear infinite reverse}
.entry-core span:nth-child(3){inset:21%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 16%,transparent),color-mix(in srgb,var(--accent) 4%,transparent) 55%,transparent 70%);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-soft) 18%,transparent);animation:entry-pulse 7s ease-in-out infinite}

.entry-vignette{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(120% 90% at 50% 50%,transparent 55%,color-mix(in srgb,var(--cinema) 92%,transparent))}

/* the name */
.entry-brand{position:relative;z-index:3;display:grid;justify-items:center;gap:clamp(12px,2.2vh,22px);padding:0 16px;text-align:center;max-width:100%}
.entry-title{margin:0;display:flex;flex-wrap:wrap;justify-content:center;column-gap:.42em;row-gap:.06em;
  font-family:var(--font-display);font-weight:800;font-size:clamp(2.3rem,8.4vw,7.4rem);line-height:.98;letter-spacing:.12em;color:var(--cream)}
.entry-word{display:inline-flex;margin-right:-.12em}
.entry-word>span{display:inline-block;color:var(--cream);text-shadow:0 0 28px color-mix(in srgb,var(--accent) 22%,transparent);
  animation:entry-letter 1.05s var(--ease) both,entry-wave 9s ease-in-out 3.4s infinite}
.entry-word>span:nth-child(1){animation-delay:1.00s,3.40s}.entry-word>span:nth-child(2){animation-delay:1.06s,3.52s}
.entry-word>span:nth-child(3){animation-delay:1.12s,3.64s}.entry-word>span:nth-child(4){animation-delay:1.18s,3.76s}
.entry-word>span:nth-child(5){animation-delay:1.24s,3.88s}.entry-word>span:nth-child(6){animation-delay:1.30s,4.00s}
.entry-word-2>span:nth-child(1){animation-delay:1.36s,4.12s}.entry-word-2>span:nth-child(2){animation-delay:1.42s,4.24s}
.entry-word-2>span:nth-child(3){animation-delay:1.48s,4.36s}.entry-word-2>span:nth-child(4){animation-delay:1.54s,4.48s}
.entry-word-2>span:nth-child(5){animation-delay:1.60s,4.60s}.entry-word-2>span:nth-child(6){animation-delay:1.66s,4.72s}

.entry-pro{margin:0;display:flex;align-items:center;gap:clamp(12px,2vw,22px)}
.entry-pro-word{font-family:var(--font-display);font-weight:700;font-size:clamp(1rem,2.4vw,1.55rem);letter-spacing:.62em;margin-right:-.62em;
  background:linear-gradient(90deg,var(--accent-soft),var(--accent),var(--accent-soft));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:entry-rise 1s 2s var(--ease) both,entry-sheen 6s 3s ease-in-out infinite}
.entry-rule{display:block;width:clamp(36px,9vw,110px);height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 75%,transparent));animation:entry-rule 1.2s 2.1s var(--ease) both}
.entry-rule:last-child{transform:scaleX(-1);animation-name:entry-rule-r}

.entry-tagline{margin:0;font-family:var(--font-body);font-weight:500;font-size:clamp(.62rem,1.25vw,.8rem);letter-spacing:.42em;margin-right:-.42em;text-transform:uppercase;color:var(--cream-3);
  animation:entry-rise 1.2s 2.5s var(--ease) both}

@keyframes entry-fade{from{opacity:0}}
@keyframes entry-breathe{to{transform:scale(1.06) translate3d(1%,-1%,0)}}
@keyframes entry-grid{to{background-position:0 64px,0 0}}
@keyframes entry-core-in{from{opacity:0;transform:scale(.55) rotate(-40deg);filter:blur(12px)}}
@keyframes entry-spin{to{transform:rotate(1turn)}}
@keyframes entry-pulse{50%{transform:scale(1.05);opacity:.75}}
@keyframes entry-letter{from{opacity:0;transform:translateY(.42em) scale(.96);filter:blur(10px)}}
@keyframes entry-wave{0%,86%,100%{color:var(--cream);text-shadow:0 0 28px color-mix(in srgb,var(--accent) 22%,transparent)}
  92%{color:var(--surface);text-shadow:0 0 22px color-mix(in srgb,var(--accent) 70%,transparent),0 0 2px color-mix(in srgb,var(--accent-soft) 80%,transparent)}}
@keyframes entry-rise{from{opacity:0;transform:translateY(10px);letter-spacing:.9em}}
@keyframes entry-sheen{50%{background-position:100% 0}}
@keyframes entry-rule{from{opacity:0;transform:scaleX(0)}}
@keyframes entry-rule-r{from{opacity:0;transform:scaleX(0)}to{transform:scaleX(-1)}}

@media (max-width:640px){
  .entry-title{letter-spacing:.1em;flex-direction:column;align-items:center}
  .entry-word{margin-right:-.1em}
  .entry-grid{opacity:.35;background-size:44px 44px}
  .entry-core{width:min(92vmin,460px)}
  .entry-core span:nth-child(1){filter:none}
  .entry-tagline{letter-spacing:.28em;margin-right:-.28em}
}
@media (prefers-reduced-motion:reduce){
  .entry,.entry *{animation:none !important}
}
