/* Register gradient stops as animatable color properties */
@property --c1 {
  syntax: '<color>';
  inherits: false;
  initial-value: #FC6732;
}
@property --c2 {
  syntax: '<color>';
  inherits: false;
  initial-value: #FFD500;
}

/* ── Outer wrapper: natural SVG dimensions at display size ── */
.logo-wrap {
  position: relative;
  width: 135px;
  height: 216px;
  transform: scale(0.6);
  transform-origin: center;
  /* scale() doesn't affect layout flow — pull the text back up */
  margin-bottom: -50px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Container: sits exactly over the gradient block ──
   Block in SVG is: x=0 y=26 w=67.2712 h=63          */
.block-perspective {
  position: absolute;
  top: 26px;
  left: 0;
  width: 67.2712px;
  height: 63px;
  overflow: visible;
}

/* ── Intro wrapper: bounces the block in from its top-left corner ── */
.block-intro {
  width: 100%;
  height: 100%;
  transform-origin: top left;
  animation: blockBounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes blockBounceIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Gradient block: continuous clockwise 360° spin + color morph ── */
.gradient-block {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  transform-origin: center;
  /* 14.4s = 8 brand pairs × 1.8s spin, so one color pair per revolution */
  animation:
    blockFlip  1.8s  ease-in-out 1.5s infinite,
    colorCycle 14.4s linear      1.5s infinite;
}

@keyframes blockFlip {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

@keyframes colorCycle {
  0%     { --c1: #FC6732; --c2: #FFD500; }
  12.5%  { --c1: #F06000; --c2: #FF7070; }
  25%    { --c1: #00B2E8; --c2: #00EE9E; }
  37.5%  { --c1: #FC0B0B; --c2: #FF8C3C; }
  50%    { --c1: #6382FF; --c2: #00C9FF; }
  62.5%  { --c1: #199B00; --c2: #92E31C; }
  75%    { --c1: #4B1894; --c2: #625CF8; }
  87.5%  { --c1: #7D17AB; --c2: #F758FC; }
  100%   { --c1: #FC6732; --c2: #FFD500; }
}

/* ── S letter SVG: layered on top of the block div ── */
.letter-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 135px;
  height: 216px;
  animation: letterReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

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

/* ── Loading dots ── */
.loading-text-animation {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 22px;
  text-align: center;
  animation: fadeInAnimation 0.5s ease 1s both;
}

.loading-dot {
  display: inline-block;
  animation: dotBounceAnimation 1.4s ease-in-out 1.5s infinite;
}
.loading-dot:nth-child(2) { animation-delay: 1.65s; }
.loading-dot:nth-child(3) { animation-delay: 1.80s; }

@keyframes fadeInAnimation {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dotBounceAnimation {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0);    }
  30%           { opacity: 1;    transform: translateY(-4px); }
}
