/* ============================================================
   EXPERTEASE CREDIT BANNER — modular component v3
   Transparent, no background/border/shadow.
   Place inside a dark-background container as the last child.
   Add <hr class="ec-rule"> immediately before the banner div.
   ============================================================ */

:root {
  --ec-gold:   #c9a86c;
  --ec-gold2:  #f0d898;
  --ec-text:   rgba(255,255,255,0.45);
  --ec-logo-h: 22px;
  --ec-font:   inherit;
}

/* ── horizontal rule separator ── */
hr.ec-rule {
  border: none;
  height: 1px;
  margin: 0 6%;
  background: linear-gradient(90deg, transparent, rgba(201,168,108,0.3), transparent);
}

/* ── outer wrapper — isolated, transparent ── */
.expertease-credit {
  position: relative;
  z-index: 0;
  isolation: isolate;       /* own stacking context: page animations can't bleed in */
  contain: layout style;    /* block external transform/opacity from leaking in */

  background: transparent;
  padding: 14px 6% 18px;
  overflow: hidden;
  font-family: var(--ec-font);
}

/* ── shimmer beam sweeping left → right ── */
.expertease-credit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,168,108,0.1) 40%,
    rgba(240,216,152,0.16) 50%,
    rgba(201,168,108,0.1) 60%,
    transparent 100%
  );
  transform: skewX(-10deg);
  animation: ec-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ec-sweep {
  0%   { left: -60%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ── inner layout ── */
.ec-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ── copyright ── */
.ec-copy {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ec-text);
}

/* ── divider dot ── */
.ec-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201,168,108,0.35);
  flex-shrink: 0;
}

/* ── brand link ── */
.ec-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.ec-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ec-text);
}

/* ── logo pulse ── */
.ec-logo {
  height: var(--ec-logo-h);
  width: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  animation: ec-logo-glow 5s ease-in-out infinite;
}

@keyframes ec-logo-glow {
  0%,100% { filter: brightness(0.8) saturate(0.7); }
  50%      { filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 7px rgba(201,168,108,0.55)); }
}

.ec-brand:hover .ec-logo {
  transform: scale(1.08);
  filter: brightness(1.3) saturate(1.4) drop-shadow(0 0 10px rgba(201,168,108,0.7)) !important;
  animation-play-state: paused;
}

/* ── brand name: flowing shimmer text ── */
.ec-name {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.4px;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    var(--ec-gold)  0%,
    var(--ec-gold2) 30%,
    var(--ec-gold)  55%,
    var(--ec-gold2) 75%,
    var(--ec-gold)  100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ec-text-flow 2.8s linear infinite;
}

@keyframes ec-text-flow {
  0%   { background-position: 0%   center; }
  100% { background-position: 250% center; }
}

.ec-brand:hover .ec-name {
  animation-duration: 1.2s;
}

/* ── responsive ── */
@media (max-width: 480px) {
  .expertease-credit { padding: 12px 5% 16px; }
  .ec-inner          { flex-direction: column; gap: 6px; }
  .ec-divider        { display: none; }
}

/* ── desktop: clear the fixed scroll ruler at the bottom ── */
@media (min-width: 601px) {
  .expertease-credit { padding-bottom: 48px; }
}
