.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sp-12);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--c-grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-strong) 1px, transparent 1px),
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: center;
  -webkit-mask-image: radial-gradient(60% 100% at 75% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 100% at 75% 50%, #000 0%, transparent 100%);
}

.page-head--decor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 75% 50%, var(--c-grid-strong), transparent 40%);
}

.page-head__inner { position: relative; }

.page-head--decor .page-head__inner {
  display: flex;
  align-items: center;
  min-height: 12rem;
}

.page-head__main {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.page-head__title {
  display: inline-block;
  margin: 0;
  font-size: min(clamp(2.25rem, 5vw, 3.75rem), 10vw);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.page-head__dim {
  position: relative;
  display: block;
  height: 14px;
  margin-top: var(--sp-4);
  border-inline: 2px solid var(--c-accent);
}

.page-head__dim::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--c-accent);
  animation: mechanica-draw 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.page-head__dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c-accent);
  clip-path: polygon(0 50%, 10px 10%, 10px 90%, 0 50%, 100% 50%, calc(100% - 10px) 90%, calc(100% - 10px) 10%, 100% 50%);
  animation: mechanica-fade 0.3s ease 0.85s both;
}

@keyframes mechanica-draw {
  from { transform: scaleX(0); }
}

@keyframes mechanica-fade {
  from { opacity: 0; }
}

.page-head__lead {
  margin-top: var(--sp-6);
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.page-head__lead > :last-child { margin-bottom: 0; }

.page-head + .section { padding-top: 0; }

.page-head__decor {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .page-head__dim::before,
  .page-head__dim::after { animation: none; }
}

@media (max-width: 860px) {
  .page-head { padding-block: var(--sp-8); }

  .page-head__decor,
  .page-head--decor::after { display: none; }

  .page-head--decor .page-head__inner { min-height: 0; }

  .page-head::before {
    -webkit-mask-image: radial-gradient(70% 100% at 100% 0%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 100% at 100% 0%, #000 0%, transparent 100%);
  }
}
