/* ==========================================================================
   TechText - Ultra-Clean Interactive Typography for YIZERGE
   CAD Blueprint Wireframe Reveal, Corner HUD Brackets & Dimension Labels
   ========================================================================== */

.brand-wordmark {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  cursor: pointer;
  padding: 4px 0;
}

.brand-link:hover,
.footer-brand-logo:hover {
  text-decoration: none;
  opacity: 1 !important;
}

.brand-link:hover .brand-wordmark,
.footer-brand-logo:hover .brand-wordmark {
  opacity: 1 !important;
}

/* Individual letter glyphs */
.tech-glyph {
  position: relative;
  display: inline-block;
  color: #0C0C0E;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              -webkit-text-stroke 0.12s ease;
  transform-origin: center bottom;
  z-index: 2;
  will-change: transform;
}

/* Brand special characters: Σ and Ξ in #D81E1F */
.tech-glyph.brand-special {
  color: #D81E1F !important;
}

/* Hover blueprint reveal: turns active letter into clean vector outline */
.tech-glyph.tech-active {
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.25px #0C0C0E !important;
}

.tech-glyph.brand-special.tech-active {
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.25px #D81E1F !important;
}

/* While ripple-kicking, subtle ghost blueprint remains at baseline */
.tech-glyph.tech-ghost::before {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: 0.35;
  pointer-events: none;
}

/* Gliding CAD HUD selection frame */
.tech-hud-frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(216, 30, 31, 0.45);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.14s ease,
              transform 0.12s cubic-bezier(0.2, 0.9, 0.3, 1),
              width 0.12s cubic-bezier(0.2, 0.9, 0.3, 1),
              height 0.12s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform, width, height, opacity;
}

.tech-hud-frame.visible {
  opacity: 1;
}

/* 4 CAD Corner tick handles (L-bracket style) */
.tech-hud-frame .corner {
  position: absolute;
  width: 4px;
  height: 4px;
  box-sizing: border-box;
}

.tech-hud-frame .corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid #D81E1F;
  border-left: 1.5px solid #D81E1F;
}

.tech-hud-frame .corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1.5px solid #D81E1F;
  border-right: 1.5px solid #D81E1F;
}

.tech-hud-frame .corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid #D81E1F;
  border-right: 1.5px solid #D81E1F;
}

.tech-hud-frame .corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1.5px solid #D81E1F;
  border-left: 1.5px solid #D81E1F;
}

/* Monospace HUD dimension label */
.tech-hud-label {
  position: absolute;
  top: -14px;
  left: -1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #D81E1F;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.95;
}

/* Orbiting micro-specks */
.tech-speck {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: #D81E1F;
  pointer-events: none;
  opacity: 0;
  border-radius: 0.5px;
  animation: tech-speck-pulse 1.2s infinite ease-in-out;
}

@keyframes tech-speck-pulse {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.95; transform: scale(1.1); }
}
