/* ==============================
   THANK YOU SECTION
============================== */

/* ── Card ── */
.ty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.8rem 3rem 2.4rem;
  width: min(520px, 92vw);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.801);
  background: rgba(0, 5, 12, 0.034);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    0 0 0 1px rgba(117, 117, 117, 0.932),
    0 0 60px rgba(0, 213, 255, 0.411),
    0 0 120px rgba(255, 255, 255, 0.329),
    0 40px 80px rgba(0, 174, 255, 0.555);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);

}
.ty-card.ty-card-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* scanline */
.ty-scanline {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,212,255,0.012) 3px,
    rgba(0,212,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* moving scan beam */
.ty-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,212,255,0.025),
    transparent
  );
  animation: tyScanBeam 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes tyScanBeam {
  0%   { top: -60px; }
  100% { top: calc(100% + 60px); }
}

/* corner brackets */
.ty-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(0,212,255,0.45);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}
.ty-tl { top:12px;  left:12px;  border-width:2px 0 0 2px; }
.ty-tr { top:12px;  right:12px; border-width:2px 2px 0 0; }
.ty-bl { bottom:12px; left:12px;  border-width:0 0 2px 2px; }
.ty-br { bottom:12px; right:12px; border-width:0 2px 2px 0; }

/* ── Badge ── */
.ty-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 204, 255, 0.808);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.4rem;
}

.ty-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: tyBlink 1.5s step-end infinite;
}

@keyframes tyBlink {
  0%,100% { opacity:1; }
  50%     { opacity:0; }
}

/* ── Avatar ── */
.ty-avatar-wrap {
  position: relative;
  z-index: 2;
  width: 110px; height: 110px;
  margin-bottom: 1.6rem;
}

.ty-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#00d4ff, #ffffff, #4788ff, #00c3ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
  animation: tyRingRotate 1s linear infinite;
}

@keyframes tyRingRotate {
  to { transform: rotate(360deg); }
}

.ty-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #050510;
  border: 1px solid rgba(0,212,255,0.12);
  box-shadow: 0 0 30px rgba(0,212,255,0.12), 0 0 60px rgba(184,71,245,0.08);
}

.ty-avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Heading with glitch ── */
.ty-heading {
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 4px;
  margin: 0 0 0.55rem;
  background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 40%, #e8e8e8 70%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.12));
}

/* glitch flicker layers */
.ty-heading::before,
.ty-heading::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ty-heading::before {
  -webkit-text-fill-color: rgba(0,212,255,0.7);
  animation: tyGlitchA 7s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0;
}

.ty-heading::after {
  -webkit-text-fill-color: rgba(245,71,168,0.7);
  animation: tyGlitchB 7s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  opacity: 0;
}

@keyframes tyGlitchA {
  0%,90%,100% { opacity:0; transform:none; }
  92% { opacity:0.9; transform:translate(-3px,-2px) skewX(-4deg); }
  94% { opacity:0; }
  96% { opacity:0.6; transform:translate(3px,1px) skewX(3deg); }
  98% { opacity:0; }
}

@keyframes tyGlitchB {
  0%,90%,100% { opacity:0; transform:none; }
  92% { opacity:0.6; transform:translate(3px,2px) skewX(3deg); }
  94% { opacity:0; }
  96% { opacity:0.8; transform:translate(-2px,-1px) skewX(-3deg); }
  98% { opacity:0; }
}

/* ── Sub text ── */
.ty-sub {
  position: relative;
  z-index: 2;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.32);
  line-height: 1.7;
  margin: 0 0 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

/* ── Divider ── */
.ty-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.25),
    rgba(184,71,245,0.2),
    transparent
  );
  margin-bottom: 1.6rem;
}

/* ── Social buttons ── */
.ty-socials {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.ty-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.35);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}

.ty-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%,
    rgba(var(--c), 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.ty-social:hover {
  border-color: rgba(var(--c), 0.4);
  color: rgba(var(--c), 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--c), 0.15);
}

.ty-social:hover::before { opacity: 1; }

/* ── Back to Top ── */
.ty-back-btn {
  position: relative;
  z-index: 2;
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,212,255,0.18);
  background: transparent;
  color: rgba(0,212,255,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.25s ease;
}

.ty-back-btn:hover {
  border-color: rgba(0,212,255,0.5);
  color: #00d4ff;
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .ty-card { padding: 2rem 1.5rem; }
  .ty-heading { font-size: 1.8rem; }
}



/* ══════════════════════════════════════
   CRT POWER-ON REVEAL  (section 9 intro)
══════════════════════════════════════ */

.ty-crt-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: #000508;
  z-index: 20;
  pointer-events: none;
  transform-origin: top center;
}

.ty-crt-bot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: #000508;
  z-index: 20;
  pointer-events: none;
  transform-origin: bottom center;
}

.ty-crt-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  z-index: 22;
  pointer-events: none;
  background: transparent;
}

.ty-crt-label {
  position: absolute;
  z-index: 23;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(0,220,255,0.9);
  text-shadow: 0 0 10px rgba(0,220,255,0.6), 0 0 30px rgba(0,220,255,0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Phase 1 — line flash */
@keyframes crtLineFlash {
  0%   { background: rgba(255,255,255,0);  box-shadow: none; }
  15%  { background: #ffffff;              box-shadow: 0 0 40px 12px rgba(255,255,255,0.95), 0 0 90px 35px rgba(0,220,255,0.5); }
  40%  { background: rgba(0,220,255,0.35); box-shadow: 0 0 8px 2px rgba(0,220,255,0.3); }
  70%  { background: rgba(0,220,255,0.75); box-shadow: 0 0 20px 6px rgba(0,220,255,0.7), 0 0 60px 20px rgba(0,220,255,0.2); }
  100% { background: rgba(0,220,255,0.65); box-shadow: 0 0 16px 5px rgba(0,220,255,0.6), 0 0 50px 15px rgba(0,220,255,0.18); }
}

/* Phase 2 — panels slide apart */
@keyframes crtPanelUp {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@keyframes crtPanelDown {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Label */
@keyframes crtLabelFlash {
  0%   { opacity: 0;   letter-spacing: 14px; }
  25%  { opacity: 1;   letter-spacing: 8px; }
  80%  { opacity: 0.9; }
  100% { opacity: 0;   letter-spacing: 5px; }
}



.ty-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ty-orbit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.ty-orbit-1 {
  inset: -20px;
  animation: tyOrbit 7s linear infinite;
}
.ty-orbit-1::before {
  width: 6px; height: 6px;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff, 0 0 20px rgba(0,212,255,0.5);
}
.ty-orbit-2 {
  inset: -34px;
  animation: tyOrbit 12s linear infinite reverse;
}
.ty-orbit-2::before {
  width: 4px; height: 4px;
  background: #b847f5;
  box-shadow: 0 0 8px #b847f5, 0 0 16px rgba(184,71,245,0.5);
}
@keyframes tyOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.ty-status-line {
  position: relative; z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgb(255, 255, 255);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.ty-status-cursor {
  display: inline-block;
  width: 3px; height: 1.0em;
  background: rgb(255, 255, 255);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: tyCursor 0.85s step-end infinite;
}
@keyframes tyCursor { 0%,100%{opacity:1} 50%{opacity:0} }


.ty-card-ambient {
  position: absolute;
  width: 700px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(0,212,255,0.07) 0%,
    rgba(184,71,245,0.04) 45%,
    transparent 70%
  );
  filter: blur(50px);
  animation: tyAmbient 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}
@keyframes tyAmbient {
  from { opacity: 0.5; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1.08); }
}