/* Chichu | Coming soon
   Dark, centred, calm. Teal dots gather into rings of the logo's outline.
   Rules: no dashes in copy, square edges only, we never I. The logo only fades in. */

:root {
  --bg: #0F1211;
  --fg: #EDEBE6;
  --muted: #8A9592;
  --teal: #4FC1B6;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
svg, img { display: block; }

/* Focus: 2px teal, square */
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 0; }

#dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.stage {
  position: relative; z-index: 3;
  height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
}
.mark { width: clamp(96px, 8vw, 120px); height: auto; margin-bottom: 20px; }
.word { width: clamp(180px, 15vw, 230px); height: auto; color: var(--fg); }
h1 { margin-top: 40px; font-weight: 400; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.sub { margin-top: 10px; font-size: 15px; color: var(--muted); }

footer {
  position: fixed; z-index: 5;
  left: 40px; right: 40px; bottom: 32px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
footer a {
  color: inherit; text-decoration: none;
  background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
footer a:hover, footer a:focus-visible { color: var(--fg); background-size: 100% 1px; }

/* Load: logo fades (opacity only), text fades up */
.fade { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.logo-fade { opacity: 0; transition: opacity 1s var(--ease); }
.is-in .fade, .is-in .logo-fade { opacity: 1; transform: none; }
.is-in .mark { transition-delay: .1s; }
.is-in .word { transition-delay: .25s; }
.is-in h1 { transition-delay: .5s; }
.is-in .sub { transition-delay: .62s; }

/* ---------- Website progress ---------- */
.progress { margin-top: 44px; width: min(380px, 86vw); }
.is-in .progress { transition-delay: .8s; }
.progress__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.progress__pct { font-size: 15px; letter-spacing: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.progress__pct b { font-weight: 500; color: var(--teal); }
.progress__track { position: relative; height: 3px; background: rgba(237, 235, 230, .1); }
.progress__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; overflow: visible;
  background: linear-gradient(90deg, #0F7774, #239F97 55%, #4FC1B6);
  box-shadow: 0 0 14px rgba(79, 193, 182, .45);
}
.progress__fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.progress__head-dot {
  position: absolute; right: -4px; top: 50%;
  width: 9px; height: 9px; transform: translateY(-50%);
  background: #A5D3CE;
  box-shadow: 0 0 0 4px rgba(79, 193, 182, .18), 0 0 16px rgba(79, 193, 182, .8);
}
.progress__head-dot::after { content: ""; position: absolute; inset: 0; background: #4FC1B6; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.steps { list-style: none; display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 7px; transition: color .6s; }
.steps li::before { content: ""; width: 6px; height: 6px; border: 1px solid rgba(237, 235, 230, .35); flex: none; transition: background .6s, border-color .6s; }
.steps li.done { color: var(--fg); }
.steps li.done::before { background: var(--teal); border-color: var(--teal); }
.steps li.now { color: var(--teal); }
.steps li.now::before { border-color: var(--teal); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { background: var(--teal); } }

@media (max-width: 640px) {
  footer { left: 24px; right: 24px; bottom: 24px; flex-direction: column; align-items: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade, .logo-fade { opacity: 1; transform: none; }
}
