/* Aimar wordmark V2: brutalist/security-grade treatment without external font dependency. */
:root {
  --aimar-wordmark-bright: #f7fbff;
  --aimar-wordmark-mid: #b9c9d6;
  --aimar-wordmark-cyan: #75cbde;
  --aimar-wordmark-steel: #6d7f8d;
}

body.aimar-brand-polish-ready main section h1,
main section h1 {
  position: relative !important;
  isolation: isolate !important;
  font-family: Impact, Haettenschweiler, "Arial Black", "Avenir Next Condensed", "Helvetica Neue Condensed Black", Inter, system-ui, sans-serif !important;
  font-weight: 900 !important;
  font-stretch: condensed !important;
  letter-spacing: .062em !important;
  margin-right: -.062em !important;
  line-height: .82 !important;
  text-transform: none !important;
  color: transparent !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, var(--aimar-wordmark-bright) 0%, #ffffff 22%, #d9e7ef 46%, var(--aimar-wordmark-mid) 72%, rgba(117,203,222,.88) 100%) !important;
  background-size: 13px 100%, 18px 18px, 100% 100% !important;
  background-position: 0 0, 0 0, 0 0 !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px rgba(233,247,255,.18) !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.16),
    0 2px 0 rgba(21,30,37,.34),
    0 0 24px rgba(117,203,222,.12),
    0 28px 70px rgba(0,0,0,.52) !important;
  filter: drop-shadow(0 0 16px rgba(117,203,222,.12));
}

body.aimar-brand-polish-ready main section h1::before,
main section h1::before {
  content: 'Aimar';
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(117,203,222,.105);
  transform: translate(5px, 5px);
  filter: blur(.2px);
  opacity: .82;
  pointer-events: none;
}

body.aimar-brand-polish-ready main section h1::after,
main section h1::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(118%, 760px);
  height: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(117,203,222,.20), rgba(255,255,255,.42), rgba(117,203,222,.18), transparent);
  mix-blend-mode: screen;
}

.aimar-wordmark-kerned {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: .078em !important;
  letter-spacing: 0 !important;
  transform: translateZ(0) scaleX(.92);
  transform-origin: center;
}

.aimar-wordmark-kerned span {
  display: inline-block !important;
  position: relative;
  letter-spacing: 0 !important;
}

.aimar-wordmark-kerned span:first-child {
  margin-right: .16em !important;
}

.aimar-wordmark-kerned span:nth-child(2) {
  margin-right: .052em !important;
}

.aimar-wordmark-kerned span:nth-child(3) {
  margin-right: .018em !important;
}

.aimar-wordmark-kerned span::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 1px;
  opacity: .18;
  background: rgba(0,0,0,.55);
  box-shadow: 0 18px 0 rgba(0,0,0,.20), 0 -19px 0 rgba(255,255,255,.05);
  pointer-events: none;
}

body.aimar-brand-polish-ready main section h1:hover,
main section h1:hover {
  letter-spacing: .072em !important;
  margin-right: -.072em !important;
  filter: drop-shadow(0 0 20px rgba(117,203,222,.18));
}

body.aimar-brand-polish-ready main section h1:hover .aimar-wordmark-kerned,
main section h1:hover .aimar-wordmark-kerned {
  gap: .09em !important;
  transform: translateZ(0) scaleX(.94);
}

@media (max-width: 900px) {
  body.aimar-brand-polish-ready main section h1,
  main section h1 {
    letter-spacing: .045em !important;
    margin-right: -.045em !important;
    line-height: .88 !important;
    -webkit-text-stroke: .7px rgba(233,247,255,.18) !important;
  }
  .aimar-wordmark-kerned {
    gap: .048em !important;
    transform: translateZ(0) scaleX(.94);
  }
  .aimar-wordmark-kerned span:first-child {
    margin-right: .08em !important;
  }
  .aimar-wordmark-kerned span:nth-child(2) {
    margin-right: .028em !important;
  }
}
