/* ==========================================================================
   TPS Empire - Hero Transition Experience
   Stage 1: Statement & Framed Media Showcase
   Stage 2: Cinematic Scroll-Driven Expansion to Full Hero Title & Actions
   ========================================================================== */

/* Main Sequence Track Wrapper */
.tps-hero-transition-section {
  position: relative;
  width: 100%;
  background-color: #0b0f19;
  margin: 0;
  padding: 0;
  z-index: 5;
  box-sizing: border-box;
}

/* Scroll Runway (Provides scroll depth for scrubbed transition) */
.tps-hero-transition-track {
  position: relative;
  width: 100%;
  height: 300vh;
}

/* Sticky Viewport (Pins screen during entire transition) */
.tps-hero-transition-viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #0c101d;
}

/* --------------------------------------------------------------------------
   Centerpiece Expanding Media Canvas / Backdrop
   -------------------------------------------------------------------------- */
.tps-hero-media-canvas {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78vw;
  max-width: 1040px;
  height: 48vh;
  max-height: 480px;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  will-change: width, height, top, transform, box-shadow;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.tps-hero-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 !important;
}

.tps-hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
  will-change: transform;
  display: block;
}

.tps-hero-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 28, 0.75) 0%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(10, 14, 28, 0.85) 100%
  );
  opacity: 0.35;
  will-change: opacity;
  transition: opacity 0.2s linear;
}

/* --------------------------------------------------------------------------
   Stage 1: Initial Statement (Positioned Comfortably Above Media Canvas)
   -------------------------------------------------------------------------- */
.tps-hero-stage1-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(85px + 1cm);
  z-index: 3;
  pointer-events: auto;
  will-change: transform, opacity, filter;
  box-sizing: border-box;
}

.tps-hero-stage1-inner {
  max-width: 880px;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Accent Badge Pill */
.tps-hero-accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 18px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tps-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b35;
  box-shadow: 0 0 10px #ff6b35;
  animation: tpsPillPulse 2s infinite;
}

@keyframes tpsPillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.tps-hero-statement-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tps-text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #ff8a4c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tps-hero-statement-line {
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6b35, #323edd);
  margin-bottom: 20px;
}

.tps-hero-statement-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tps-statement-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.tps-statement-tag i {
  color: #ff8a4c;
}

/* --------------------------------------------------------------------------
   Stage 2: Main Hero Title, Highlight & Action Group (Emerged on Scroll)
   -------------------------------------------------------------------------- */
.tps-hero-stage2-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity, filter;
  box-sizing: border-box;
}

.tps-hero-stage2-container {
  width: 100%;
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tps-hero-main-title {
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 24px 0;
  letter-spacing: -0.03em;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.85);
}

.tps-title-highlight {
  display: inline-block;
  color: #ffffff;
  position: relative;
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tps-hero-main-desc {
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.65;
  color: #ffffff;
  max-width: 720px;
  margin: 0 0 36px 0;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 4px 28px rgba(0, 0, 0, 0.75);
}

/* --------------------------------------------------------------------------
   Small Corner 1:1 Square Cards (Solid Orange & Solid Blue)
   Pinned at the bottom-right of the image
   -------------------------------------------------------------------------- */
.tps-hero-corner-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.tps-corner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 114px;
  height: 114px;
  aspect-ratio: 1 / 1;
  padding: 12px 8px;
  border-radius: 0 !important;
  text-decoration: none !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s ease, 
              filter 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.tps-corner-item.item-orange {
  background: #ff6b35 !important; /* Solid Vibrant Orange */
}

.tps-corner-item.item-blue {
  background: #323edd !important; /* Solid Royal Blue */
}

.tps-corner-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.tps-corner-icon {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
  flex-shrink: 0;
  margin-bottom: 7px;
  transition: transform 0.25s ease;
}

.tps-corner-item:hover .tps-corner-icon {
  transform: scale(1.12);
}

.tps-corner-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tps-corner-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tps-corner-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.2;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .tps-hero-transition-track {
    height: 250vh;
  }

  .tps-hero-media-canvas {
    width: 90vw;
    height: 48vh;
  }

  .tps-hero-stage1-content {
    padding-top: calc(15px + 1cm);
  }

  .tps-hero-statement-title {
    font-size: clamp(22px, 4.2vw, 34px);
  }

  .tps-hero-main-title {
    font-size: clamp(30px, 5.2vw, 44px);
    margin-bottom: 16px;
  }

  .tps-hero-main-desc {
    font-size: 14.5px;
    margin-bottom: 24px;
  }

  .tps-hero-corner-card {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .tps-corner-item {
    width: 96px;
    height: 96px;
    padding: 8px 6px;
  }

  .tps-corner-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-bottom: 5px;
  }

  .tps-corner-title {
    font-size: 12px;
  }

  .tps-corner-tag {
    font-size: 8.5px;
  }
}

@media (max-width: 575.98px) {
  .tps-hero-transition-track {
    height: 220vh;
  }

  .tps-hero-media-canvas {
    width: 92vw;
    height: 42vh;
    border-radius: 0 !important;
  }

  .tps-hero-stage1-inner {
    padding: 0 16px;
  }

  .tps-hero-statement-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .tps-hero-main-title {
    font-size: 26px;
  }

  .tps-hero-corner-card {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }

  .tps-corner-item {
    width: 82px;
    height: 82px;
    padding: 6px 4px;
  }

  .tps-corner-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
    margin-bottom: 4px;
  }

  .tps-corner-title {
    font-size: 10.5px;
  }

  .tps-corner-tag {
    font-size: 7.5px;
  }
}
