/* Motion is progressive enhancement; default content is always visible. */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, #aa492e, #b98e58, #625171);
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.hero-choices {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.hero-choices[hidden] {
  display: none;
}
.hero-choices button {
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 13px;
  min-height: 44px;
  border-radius: 3px;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.hero-choices button[aria-pressed="true"] {
  background: #292735;
  color: #fff;
}
.hero-choices button:hover {
  border-color: #77707c;
}
.hero-project .browser img {
  display: block;
  aspect-ratio: 1.44;
  object-fit: cover;
}
.hero-project figcaption {
  min-height: 70px;
}
.hero-project figcaption strong {
  display: block;
}
.contact-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-banner::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at var(--glow-x, 75%) var(--glow-y, 40%),
    #b6967040,
    transparent 55%
  );
}
@media (prefers-reduced-motion: no-preference) {
  .hero-project:hover .browser {
    box-shadow: 0 25px 55px #28213424;
  }
  .button {
    transition:
      background-color 220ms,
      color 220ms,
      transform 220ms,
      box-shadow 220ms;
  }
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #202d2920;
  }
  .button span {
    display: inline-block;
    transition: transform 260ms;
  }
  .button:hover span {
    transform: translate(3px, -3px);
  }
  .text-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: left bottom;
    background-size: 0 1px;
    background-repeat: no-repeat;
    transition: background-size 350ms;
  }
  .text-link:hover {
    background-size: 100% 1px;
  }
  .project-image {
    overflow: hidden;
  }
  .project-image .browser {
    transition:
      transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1),
      box-shadow 500ms;
  }
  .project-image:hover .browser {
    transform: translateY(-5px) scale(1.018);
    box-shadow: 0 18px 35px #28213424;
  }
  .project-index a {
    transition:
      background-color 220ms,
      color 220ms,
      transform 220ms;
  }
  .project-index a:hover {
    transform: translateY(-3px);
  }
  .service-row {
    transition: background-color 300ms;
  }
  .service-row:hover {
    background-color: #e9e5df;
  }
  .service-row > a {
    transition: transform 300ms;
  }
  .service-row:hover > a {
    transform: rotate(45deg);
  }
  .orga-journey li {
    transition: background-color 300ms;
  }
  .orga-journey li:not(:last-child):hover {
    background: #e4dfd5;
  }
  .journey-number {
    display: block;
    transition: transform 300ms;
  }
  .orga-journey li:hover .journey-number {
    transform: translateX(6px);
  }
  .view-buttons button,
  .hero-choices button {
    transition:
      color 220ms,
      background-color 220ms,
      border-color 220ms;
  }
  .project-lightbox[open] {
    animation: dialog-in 250ms cubic-bezier(0.2, 0.75, 0.2, 1);
  }
  .project-lightbox[open]::backdrop {
    animation: backdrop-in 250ms;
  }
  @keyframes dialog-in {
    from {
      opacity: 0;
      transform: translateY(15px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes backdrop-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (max-width: 700px) {
  .hero-choices {
    gap: 2px;
  }
  .hero-choices button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .hero-project figcaption strong {
    font-size: 12px;
  }
}
.hero-project .project-stamp {
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-project .project-stamp {
    top: -46px;
    right: 0;
    width: 60px;
    height: 60px;
    font-size: 9px;
  }
}
