/* ==========================================================
   Website launch — ribbon cutting overlay (home page)
   ========================================================== */
html.launch-active, html.launch-active body { overflow: hidden; }
html.launch-done .launch { display: none; }

.launch {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", system-ui, sans-serif; color: #fff;
}

/* Two curtain halves that slide apart at the end */
.launch-half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,160,23,.18) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(ellipse at center, #14663a 0%, #0d4d2b 45%, #062a17 100%);
  transition: transform 1.3s cubic-bezier(.7,0,.3,1);
}
.launch-half.left  { left: 0;  background-position: 0 0, left center;  background-size: 46px 46px, 200% 100%; box-shadow: inset -12px 0 30px rgba(0,0,0,.25); }
.launch-half.right { right: 0; background-position: 0 0, right center; background-size: 46px 46px, 200% 100%; box-shadow: inset 12px 0 30px rgba(0,0,0,.25); }
.launch.open .launch-half.left  { transform: translateX(-101%); }
.launch.open .launch-half.right { transform: translateX(101%); }

/* Centre content */
.launch-content {
  position: relative; z-index: 2; width: 100%; padding: 24px 16px;
  text-align: center; transition: opacity .6s ease, transform .6s ease;
}
.launch.cut .launch-content .launch-text,
.launch.cut .launch-content .launch-actions { opacity: 0; transform: translateY(-12px); }
.launch-text, .launch-actions { transition: opacity .5s ease, transform .5s ease; }

.launch-logo {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; padding: 4px; box-shadow: 0 0 0 4px #d4a017, 0 0 40px rgba(212,160,23,.55);
  animation: launch-glow 2.4s ease-in-out infinite;
}
.launch-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes launch-glow {
  50% { box-shadow: 0 0 0 4px #d4a017, 0 0 70px rgba(212,160,23,.85); }
}
.launch-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: #ffd76a; margin-bottom: 8px;
}
.launch-title {
  font-family: "Merriweather", serif; font-weight: 900; color: #fff;
  font-size: clamp(26px, 5vw, 46px); line-height: 1.15;
}
.launch-telugu {
  font-family: "Noto Sans Telugu", sans-serif; font-weight: 800; color: #ffd76a;
  font-size: clamp(18px, 3.2vw, 28px); margin-top: 6px;
}
.launch-sub { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 8px; }

/* Ribbon */
.launch-ribbon {
  position: relative; height: 54px; margin: 34px 0 52px;
  width: 100vw; left: 50%; transform: translateX(-50%);
}
.ribbon-piece {
  position: absolute; top: 0; height: 100%; width: 50%;
  background: linear-gradient(180deg, #8a0013 0%, #e8192c 28%, #ff5a6a 46%, #d10a1f 62%, #8a0013 100%);
  border-top: 3px solid #d4a017; border-bottom: 3px solid #d4a017;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  transition: transform 1.1s cubic-bezier(.5,0,.6,1), opacity 1.1s ease;
}
.ribbon-piece.left  { left: 0;  transform-origin: left center; }
.ribbon-piece.right { right: 0; transform-origin: right center; }
.launch.cut .ribbon-piece.left  { transform: rotate(80deg); opacity: .0; }
.launch.cut .ribbon-piece.right { transform: rotate(-80deg); opacity: .0; }

.ribbon-bow {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 120px;
  transform: translate(-50%, -50%); z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  transition: transform 1.2s cubic-bezier(.55,0,.8,.4), opacity 1.2s ease;
}
.launch.cut .ribbon-bow { transform: translate(-50%, 70vh) rotate(160deg); opacity: 0; }

/* Scissors that snip at the centre */
.launch-scissors {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #0d4d2b; font-size: 30px;
  box-shadow: 0 0 0 4px #d4a017, 0 8px 20px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(90px) scale(.6) rotate(-90deg);
  transition: transform .45s cubic-bezier(.3,1.4,.6,1), opacity .3s ease;
  pointer-events: none;
}
.launch.cutting .launch-scissors { opacity: 1; transform: translateY(0) scale(1) rotate(-90deg); }
.launch.cutting .launch-scissors i { animation: launch-snip .22s ease-in-out .45s 2; }
.launch.cut .launch-scissors { opacity: 0; transform: scale(1.6) rotate(-90deg); transition-duration: .4s; }
@keyframes launch-snip { 50% { transform: scaleY(.55); } }

/* Button */
.launch-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border: 0; border-radius: 50px; cursor: pointer;
  background: linear-gradient(180deg, #ffd76a, #d4a017); color: #3b2a00;
  font: 700 17px/1.2 "Poppins", sans-serif;
  box-shadow: 0 6px 0 #a87b0a, 0 12px 28px rgba(0,0,0,.35);
  transition: transform .15s, box-shadow .15s;
  animation: launch-pulse 1.8s ease-in-out infinite;
}
.launch-btn i { font-size: 20px; }
.launch-btn:hover { transform: translateY(-2px); }
.launch-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a87b0a, 0 6px 14px rgba(0,0,0,.35); }
.launch-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.launch-btn small { display: block; font: 700 12px "Noto Sans Telugu", sans-serif; opacity: .8; }
.launch-btn:disabled { animation: none; cursor: default; }
@keyframes launch-pulse { 50% { box-shadow: 0 6px 0 #a87b0a, 0 12px 28px rgba(0,0,0,.35), 0 0 0 10px rgba(255,215,106,.25); } }

.launch-skip {
  display: inline-block; margin-top: 18px; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.7); font: 500 12px "Poppins", sans-serif; text-decoration: underline;
}
.launch-skip:hover { color: #fff; }

/* Confetti (sits above everything while it falls on the site) */
.launch-confetti { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
.launch-confetti span {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px;
  animation: launch-fall var(--d, 3s) cubic-bezier(.25,.5,.5,1) var(--delay, 0s) forwards;
}
@keyframes launch-fall {
  0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 720deg)); opacity: .9; }
}

@media (max-width: 575.98px) {
  .launch-logo { width: 96px; height: 96px; }
  .launch-ribbon { height: 42px; margin: 26px 0 44px; }
  .ribbon-bow { width: 120px; height: 96px; }
  .launch-btn { font-size: 15px; padding: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-half, .ribbon-piece, .ribbon-bow, .launch-scissors { transition-duration: .01s !important; }
  .launch-logo, .launch-btn { animation: none; }
  .launch-confetti { display: none; }
}
