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

html {
  color-scheme: dark;
  background: #080808;
}

body {
  margin: 0;
  background: #080808;
  color: #efefeb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  max-width: 100%;
  padding-bottom: 4vh;
  animation: arrive 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: block;
  width: 86px;
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}

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

/* A fixed-width punctuation slot keeps the composition perfectly still. */
.ellipsis {
  display: inline-flex;
  justify-content: space-between;
  width: 0.69em;
  letter-spacing: 0;
}

.ellipsis > span {
  display: block;
  width: 0.19em;
  opacity: 0;
  animation: dot-appear 2.4s ease-in-out infinite;
}

.ellipsis > span:nth-child(2) { animation-delay: 220ms; }
.ellipsis > span:nth-child(3) { animation-delay: 440ms; }

@keyframes dot-appear {
  0%, 8% { opacity: 0; }
  22%, 63% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .identity { animation: none; }
  .ellipsis > span { animation: none; opacity: 1; }
}

.logo-scene { position:relative; width:86px; aspect-ratio:216 / 192; flex:none; }
.logo-scene img { position:absolute; inset:0; display:block; width:100%; height:100%; transform-origin:center; }
.motion-control { position:absolute; z-index:2; top:22px; right:28px; display:flex; align-items:center; gap:9px; min-height:44px; color:#a5a5a0; font-size:12px; cursor:pointer; }
.motion-control input { width:14px; height:14px; accent-color:#d8d8d2; }
input:focus-visible { outline:2px solid #ecece7; outline-offset:6px; }
body:has(#pause:checked) .identity, body:has(#pause:checked) .identity * { animation-play-state: paused !important; }
/* LOGO_MOTION_RULES */
.reveal .logo-left, .reveal .logo-right { animation: reveal-brackets 5.6s cubic-bezier(.22,1,.36,1) infinite; }
.reveal .logo-bar { animation: reveal-line 5.6s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes reveal-brackets { 0%,100% {transform:scaleX(.02);opacity:0;} 22%,78% {transform:scaleX(1);opacity:1;} }
@keyframes reveal-line { 0%,100% {transform:scaleY(.55);} 14%,86% {transform:scaleY(1);} }

@media (prefers-reduced-motion:reduce) {
 .logo-scene img { animation:none !important; opacity:1 !important; transform:none !important; }
}
@media(max-width:480px) { .motion-control {top:12px;right:20px;font-size:11px;} }

/* Original raster components; no redraw, recoloring or new assets. */
.logo-left { clip-path: inset(0 60.1851851852% 0 0); }
.logo-bar { clip-path: inset(0 37.9629629630% 0 39.8148148148%); }
.logo-right { clip-path: inset(0 0 0 62.0370370370%); }
