/* ============================================
   Custom styles for The Edrington Team Recruiting
   ============================================ */

/* Fonts are defined as --font-display / --font-body in tailwind.input.css */

/* ---- Base ---- */
::selection {
  background-color: rgba(200, 168, 78, 0.3);
  color: #fff;
}

/* scroll-behavior handled by GSAP ScrollToPlugin to avoid conflicts */

/* ---- Navbar ---- */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar-scrolled {
  background: rgba(10, 10, 10, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Hero video fallback ---- */
#hero video {
  min-width: 100%;
  min-height: 100%;
}

/* If no video loads, show a dark gradient fallback */
#hero video:not([src]),
#hero video[src=""] {
  display: none;
}

#hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* ---- Bounce animation for scroll indicator ---- */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ---- Ticker ---- */
.ticker-wrapper {
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.ticker-track {
  will-change: transform;
}

/* ---- Stat card hover ---- */
.stat-card .stat-front {
  transition: opacity 0.15s ease;
}

.stat-card .stat-back {
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.stat-card:hover .stat-front {
  opacity: 0;
}

.stat-card:hover .stat-back {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Testimonial carousel ---- */
.testimonial-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonial-carousel:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.testimonial-card {
  flex-shrink: 0;
  width: 480px;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(18, 18, 18, 1) 0%, rgba(12, 12, 12, 1) 100%);
  border: 1px solid rgba(200, 168, 78, 0.12);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.25), transparent);
}

.testimonial-card:hover {
  border-color: rgba(200, 168, 78, 0.3);
  box-shadow: 0 8px 40px rgba(200, 168, 78, 0.06), 0 0 0 1px rgba(200, 168, 78, 0.08);
}

.testimonial-card .testimonial-quote {
  color: rgba(200, 168, 78, 0.2);
}

.testimonial-card p.testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75;
}

.testimonial-card .testimonial-divider {
  width: 2rem;
  height: 1px;
  background: linear-gradient(to right, rgba(200, 168, 78, 0.4), transparent);
}

/* ---- Step scroll section ---- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 0;
}

.step-indicator.active {
  opacity: 1;
}

.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid rgba(200, 168, 78, 0.3);
  color: #C8A84E;
  transition: all 0.3s ease;
}

.step-indicator.active .step-dot {
  background: #C8A84E;
  color: #0A0A0A;
  border-color: #C8A84E;
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.3);
}

.step-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step-indicator.active .step-label {
  color: #fff;
}

/* Step card container */
.step-card {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(200, 168, 78, 0.1);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-slide {
  align-self: stretch;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.3), transparent);
}

/* Gold left accent bar */
.step-card-accent {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(200, 168, 78, 0.6), rgba(200, 168, 78, 0.1));
  border-radius: 0 2px 2px 0;
}

/* Step icon */
.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.15) 0%, rgba(200, 168, 78, 0.05) 100%);
  border: 1px solid rgba(200, 168, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C8A84E;
}

/* Highlight callout box */
.step-highlight-box {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.06) 0%, rgba(200, 168, 78, 0.02) 100%);
  border: 1px solid rgba(200, 168, 78, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

/* Mentor checklist box */
.step-mentor-box {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.06) 0%, rgba(200, 168, 78, 0.02) 100%);
  border: 1px solid rgba(200, 168, 78, 0.15);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Skill cards in certification step */
.step-skill-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.step-skill-card:hover {
  border-color: rgba(200, 168, 78, 0.2);
  background: rgba(200, 168, 78, 0.03);
}

.step-skill-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(200, 168, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C8A84E;
}

/* Large centered step icon */
.step-icon-lg {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.12) 0%, rgba(200, 168, 78, 0.04) 100%);
  border: 1px solid rgba(200, 168, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8A84E;
}

.step-icon-lg.graduated {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.2) 0%, rgba(200, 168, 78, 0.08) 100%);
  border-color: rgba(200, 168, 78, 0.35);
  box-shadow: 0 0 30px rgba(200, 168, 78, 0.1);
}

/* Mini badge flow (Discovery step) */
.step-mini-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.step-mini-badge.active {
  background: rgba(200, 168, 78, 0.1);
  border-color: rgba(200, 168, 78, 0.25);
  color: #C8A84E;
}

.step-flow-line {
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(200, 168, 78, 0.2));
}

/* Closing dots (Lead Flow step) */
.step-closing-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.step-closing-dot.filled {
  background: #C8A84E;
  border-color: #C8A84E;
}

.step-closing-dot.active {
  background: rgba(200, 168, 78, 0.3);
  border-color: #C8A84E;
  box-shadow: 0 0 8px rgba(200, 168, 78, 0.4);
}

/* Growth bars (Graduate step) */
.step-bar {
  width: 0.5rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: rgba(200, 168, 78, 0.15);
  border: 1px solid rgba(200, 168, 78, 0.1);
}

.step-bar.active {
  background: linear-gradient(to top, rgba(200, 168, 78, 0.3), rgba(200, 168, 78, 0.6));
  border-color: rgba(200, 168, 78, 0.4);
  box-shadow: 0 0 10px rgba(200, 168, 78, 0.2);
}

/* Mentor items (Lead Flow step) */
.step-mentor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
}

.step-connector {
  width: 2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.step-connector-fill {
  width: 0%;
  height: 100%;
  background: #C8A84E;
  transition: width 0.3s ease;
}

.step-slide {
  top: 0;
}

.step-line {
  opacity: 0;
  transform: translateY(12px);
}

/* ---- The Filter: particle canvas (Culture & Fit) ---- */
#filter-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#filter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#filter-overlays {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

#filter-trait-label {
  text-align: center;
  opacity: 0;
}

.filter-trait-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #C8A84E;
  margin-bottom: 0.75rem;
}

.filter-trait-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.filter-counter {
  font-size: 0.8rem;
  color: rgba(200, 168, 78, 0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#filter-closing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4vh;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-trait-name {
    font-size: 1.75rem;
  }

  .filter-trait-desc {
    font-size: 0.9375rem;
    max-width: 340px;
    padding: 0 1rem;
  }

  .testimonial-card {
    width: 340px;
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .filter-trait-name {
    font-size: 1.5rem;
  }

  .filter-trait-desc {
    font-size: 0.9375rem;
    max-width: 300px;
  }

  .filter-counter {
    font-size: 0.7rem;
  }

  .testimonial-card {
    width: 280px;
    padding: 1.5rem;
  }
}

/* ---- Premium glow buttons ---- */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* ---- Section reveal lines ---- */
.reveal-line {
  overflow: hidden;
}

.reveal-line>* {
  transform: translateY(100%);
}

/* ---- Horizontal rule glow ---- */
.hr-glow {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.4), transparent);
  border: none;
  margin: 0;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-glow.visible {
  transform: scaleX(1);
}

/* ---- Lead Data-Stream Tree ---- */
.lead-stream {
  position: relative;
  width: 100%;
  height: 260px;
}

.lead-stream canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Source nodes along the top */
.lead-source {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.lead-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.lead-source-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Shimmer overlay on icons */
.lead-source-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.lead-source-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ---- Bottom layout: info+CTA (left) | notifications (right) ---- */
.lead-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  margin-top: 2rem;
}

/* Left column wrapper */
.lead-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Detail panel */
.lead-detail {
  min-height: 140px;
}

.lead-detail-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.lead-detail-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #C8A84E;
  margin-top: 0.75rem;
  line-height: 1.2;
}

.lead-detail-bar {
  height: 2px;
  width: 60px;
  border-radius: 1px;
  margin-top: 8px;
  opacity: 0.7;
}

.lead-detail-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* CTA below detail */
.lead-cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #C8A84E, #A88A3E);
  color: #0A0A0A;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 78, 0.25);
}

/* Right column — standalone notifications */
.lead-notifications {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 320px;
}

/* Notification card */
.lead-notification {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lead-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.lead-notif-content {
  flex: 1;
  min-width: 0;
}

.lead-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-notif-app {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lead-notif-when {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  line-height: 1;
}

.lead-notif-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.3;
  margin-top: 4px;
}

.lead-notif-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .lead-stream {
    height: 220px;
  }

  .lead-source-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .lead-source-name {
    font-size: 0.55rem;
  }

  .lead-bottom {
    gap: 2rem;
  }

  .lead-detail-name {
    font-size: 1.1rem;
  }

  .lead-detail-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lead-stream {
    height: 180px;
  }

  .lead-source-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .lead-source-name {
    display: none;
  }

  .lead-bottom {
    grid-template-columns: 1fr;
  }

  .lead-left {
    order: 2;
    text-align: center;
  }

  .lead-detail-badge {
    margin: 0 auto;
  }

  .lead-detail-bar {
    margin: 8px auto 0;
  }

  .lead-cta {
    text-align: center;
  }

  .lead-notifications {
    order: 1;
    min-height: 200px;
  }

  .lead-bottom {
    gap: 1rem;
    margin-top: 1rem;
  }
}

/* ---- Gold border sheen on scroll ---- */
.border-sheen {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(200, 168, 78, 0.2);
  border-bottom: 1px solid rgba(200, 168, 78, 0.2);
}

.border-sheen::before,
.border-sheen::after {
  content: '';
  position: absolute;
  left: -100%;
  height: 3px;
  width: 50%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(200, 168, 78, 0.4) 15%,
      rgba(255, 223, 120, 0.9) 40%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 223, 120, 0.9) 60%,
      rgba(200, 168, 78, 0.4) 85%,
      transparent 100%);
  filter: blur(1px);
  box-shadow: 0 0 12px 4px rgba(200, 168, 78, 0.5),
    0 0 30px 8px rgba(200, 168, 78, 0.2);
  pointer-events: none;
  z-index: 10;
}

.border-sheen::before {
  top: -1px;
}

.border-sheen::after {
  bottom: -1px;
}

.border-sheen.sheen-active::before,
.border-sheen.sheen-active::after {
  animation: sheen-sweep 1.4s cubic-bezier(0.25, 0, 0.3, 1) forwards;
}

@keyframes sheen-sweep {
  0% {
    left: -50%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}


/* ---- Image zoom on hover ---- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* ---- Gold underline draw effect ---- */
.underline-draw {
  position: relative;
  display: inline-block;
}

.underline-draw::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8A84E;
  transition: width 0.4s ease;
}

.underline-draw:hover::after {
  width: 100%;
}

/* ---- Parallax depth layers ---- */
.parallax-slow {
  will-change: transform;
}

/* ---- Floating particles ---- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(200, 168, 78, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Ensure particles stay within pinned container */
#steps-pin {
  overflow: hidden;
}

/* ---- Form input focus ring ---- */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.2);
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---- Map stats section ---- */
/* Mapbox's lazily-loaded CSS sets .mapboxgl-map { position: relative }, which would
   override Tailwind's .absolute and collapse the map to 0px tall. ID specificity wins. */
#stats-map { position: absolute; inset: 0; }
#stats-map .mapboxgl-ctrl-logo { opacity: .5; }
#stats-map .mapboxgl-ctrl-attrib { background: rgba(10,10,10,.6) !important; font-size: 10px; }
#stats-map .mapboxgl-ctrl-attrib a { color: #9ca3af !important; }

.map-stat-card {
  height: 200px;
  position: relative;
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.map-stat-card.is-flipped,
.map-stat-card:focus-visible {
  border-color: rgba(200, 168, 78, 0.4);
  box-shadow: 0 0 40px rgba(200, 168, 78, 0.08);
  outline: none;
}

.map-stat-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Front: visible by default, slides up + fades on hover */
.map-stat-front {
  opacity: 1;
  transform: translateY(0);
}

.map-stat-card.is-flipped .map-stat-front {
  opacity: 0;
  transform: translateY(-20px);
}

/* Back: hidden below, slides up + fades in on hover */
.map-stat-back {
  opacity: 0;
  transform: translateY(20px);
}

.map-stat-card.is-flipped .map-stat-back {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-marker {

  0%,
  100% {
    box-shadow: 0 0 16px rgba(200, 168, 78, 0.6), 0 0 32px rgba(200, 168, 78, 0.3);
  }

  50% {
    box-shadow: 0 0 24px rgba(200, 168, 78, 0.9), 0 0 48px rgba(200, 168, 78, 0.5);
  }
}

/* ---- Loading state for submit button ---- */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---- Responsive typography tuning ---- */
@media (max-width: 640px) {
  .stat-card {
    padding: 1.5rem;
  }
}

/* ---- Parallax-like subtle movement on sections ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    will-change: opacity, transform;
  }
}

/* ==========================================================================
   Cleanup layer (Nov 2026) — consistent rhythm, one button system, mobile fixes
   ========================================================================== */

/* ---- Section rhythm ---- */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-pad { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1280px) { .section-pad { padding-top: 8rem; padding-bottom: 8rem; } }
.section-head { margin-bottom: 3rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-fade { height: 4rem; }
@media (min-width: 768px) { .section-fade { height: 6rem; } }
section[id] { scroll-margin-top: 72px; }

/* ---- Hero: true viewport height on mobile browsers ---- */
.hero-h { height: 100vh; height: 100svh; min-height: 560px; }
#hero h1 { text-wrap: balance; }

/* ---- Buttons: one gold primary, one outline secondary ---- */
:where(.btn-gold, .btn-outline) { display: inline-flex; } /* zero specificity so Tailwind's hidden / md:inline-flex still win */
.btn-gold, .btn-outline {
  align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 1rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: .875rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background-color .3s ease, border-color .3s ease;
}
.btn-gold { background: #C8A84E; color: #0A0A0A; border: 1px solid #C8A84E; box-shadow: 0 8px 24px -12px rgba(200,168,78,.45); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
@media (hover: hover) {
  .btn-gold:hover { background: #D4B96A; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(200,168,78,.65); }
  .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
}
.btn-gold:active, .btn-outline:active { transform: translateY(0) scale(.98); }
.btn-gold--lg { padding: 1.15rem 2.5rem; font-size: 1rem; min-height: 60px; }
.btn-gold--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .75rem; box-shadow: none; }
.btn-gold--sm:hover { transform: none; }
.btn-gold:focus-visible, .btn-outline:focus-visible { outline: 2px solid #D4B96A; outline-offset: 3px; }
#submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ---- Stats: tap-to-reveal on touch devices ---- */
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (hover: hover) {
  .map-stat-card { cursor: default; }
  .map-stat-card:hover { border-color: rgba(200,168,78,.4); box-shadow: 0 0 40px rgba(200,168,78,.08); }
  .map-stat-card:hover .map-stat-front { opacity: 0; transform: translateY(-20px); }
  .map-stat-card:hover .map-stat-back { opacity: 1; transform: translateY(0); }
}
@media (hover: none) { .map-stat-card { cursor: pointer; -webkit-tap-highlight-color: transparent; } }
@media (max-width: 767px) {
  .map-stat-card { height: 132px; }
  .map-stat-face { padding: 1rem 1.25rem; }
  .map-stat-card .text-5xl { font-size: 2.6rem; line-height: 1; }
  .map-stat-card .text-3xl { font-size: 1.6rem; }
  .map-stat-card .text-4xl { font-size: 2.1rem; }
  .map-stat-card .mt-3 { margin-top: .5rem; }
}

/* ---- Steps: stacked (no pin) on phones/tablets & reduced motion ---- */
.step-mobile-count { display: none; }
.steps-static #steps-pin { height: auto; padding: 5rem 0 3rem; overflow: visible; }
.steps-static .steps-viewport { display: flex !important; flex-direction: column; gap: 1.25rem; padding-top: 1rem; }
.steps-static .step-slide { opacity: 1 !important; grid-area: auto !important; }
.steps-static .step-line { opacity: 1; transform: none; }
.steps-static .step-indicator, .steps-static .step-connector { display: none; }
.steps-static .step-mobile-count {
  display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200,168,78,.75); margin-bottom: .75rem; font-weight: 600;
}
.steps-static .particle { display: none; }
@media (max-width: 767px) {
  .step-card { padding: 1.5rem 1.25rem 1.75rem; border-radius: 1rem; }
  .step-card-accent { top: 1.5rem; bottom: 1.5rem; }
  .step-icon-lg { width: 3.5rem; height: 3.5rem; border-radius: .9rem; }
  .step-icon-lg svg { width: 1.75rem; height: 1.75rem; }
  .step-skill-card { padding: 1rem .75rem; }
}

/* ---- Lead stream: tappable sources ---- */
.lead-source { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lead-source::after { content: ''; position: absolute; inset: -10px; } /* larger tap target */

/* ---- Modal: bottom sheet on phones, scrollable on short screens ---- */
.modal-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 639px) { .modal-sheet { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); } }
#contact-form input, #contact-form select, #contact-form textarea { font-size: 1rem; }
#contact-form [aria-invalid="true"] { border-color: rgba(248,113,113,.7); }

/* ---- Sticky bar: clear the iPhone home indicator ---- */
.sticky-safe { padding-bottom: calc(.625rem + env(safe-area-inset-bottom)); }

/* ---- Testimonials: smoother card spacing on phones ---- */
@media (max-width: 480px) { .testimonial-track { gap: 1rem; } .testimonial-carousel + .testimonial-carousel { margin-top: 1rem; } }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .animate-bounce-slow { animation: none; }
  .btn-gold, .btn-outline { transition: none; }
}

/* ---- Compensation chart ---- */
.comp-chart { position: relative; }
.comp-figure { margin-bottom: 1.25rem; }
.comp-figure-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1; color: #C8A84E;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em;
}
.comp-figure-unit { font-size: .4em; color: rgba(255,255,255,.45); margin-left: .25rem; font-weight: 400; letter-spacing: 0; }
.comp-figure-label { margin-top: .5rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #9ca3af; }
#stack-viewport { position: relative; width: 100%; height: clamp(260px, 42vw, 420px); }
#stack-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#stack-labels { position: absolute; inset: 0; pointer-events: none; }
.stack-end-label {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.85); opacity: 0; transform: translateY(-50%);
  transition: opacity .35s ease;
}
.stack-end-label i, .comp-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.comp-legend { display: none; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .75rem; color: #d1d5db; letter-spacing: .04em; }
.comp-legend span { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 639px) { #stack-labels { display: none; } .comp-legend { display: flex; } }


/* ---- Mobile readability pass (Source Sans 3 has a small x-height) ----
   Applies to phones in portrait AND landscape (short + touch screens). */
@media (max-width: 767px), (pointer: coarse) and (max-height: 520px) {
  /* Descriptive copy: lift 12px → 14px and 14px → 15px; uppercase/tracked labels are left alone */
  p.text-xs:not([class*="uppercase"]):not([class*="tracking"]) { font-size: .875rem; line-height: 1.55; }
  p.text-sm:not([class*="uppercase"]):not([class*="tracking"]) { font-size: .9375rem; line-height: 1.6; }
  .step-card h4.text-sm { font-size: .9375rem; }
  .steps-static .step-mobile-count, .filter-counter { font-size: .8125rem; }
  .lead-detail-desc { font-size: .9375rem; line-height: 1.6; }
  .lead-notif-app { font-size: .75rem; }
  .lead-notif-when { font-size: .75rem; }
  .lead-notif-title { font-size: .9375rem; }
  .lead-notif-body { font-size: .875rem; }
  .testimonial-card p.testimonial-text { font-size: 1rem; }
  .comp-figure-label { font-size: .8125rem; }
}
@media (max-width: 1023px) { .lead-source-name { font-size: .7rem; } }


/* ---- Small-phone fit for Montserrat (wide display face) ---- */
@media (max-width: 420px) {
  #hero h1 { font-size: 2rem; line-height: 1.12; }
  .section-title { font-size: 1.75rem; }
  .section-title br { display: none; }           /* let balanced wrapping decide the breaks */
  /* Certification skills: one column, icon beside the text */
  .steps-static .step-card .grid:has(> .step-skill-card) { grid-template-columns: 1fr; gap: .625rem; }
  .steps-static .step-skill-card {
    display: grid; grid-template-columns: auto 1fr; column-gap: .875rem; row-gap: .15rem;
    align-items: start; text-align: left; padding: .9rem 1rem;
  }
  .steps-static .step-skill-card .step-skill-icon { grid-row: span 2; margin: 0; }
  .steps-static .step-skill-card h4 { margin: 0; }
}
.filter-trait-name { padding: 0 1.25rem; text-wrap: balance; }
