/* Home page: the original workspace photograph, with a quiet introduction. */
body.page-home {
  background:
    linear-gradient(90deg, rgba(8, 14, 18, .9), rgba(8, 14, 18, .74) 46%, rgba(8, 14, 18, .25)),
    url("assets/w.jpg") center / cover fixed no-repeat;
}

.page-home .nav::before,
.page-home .nav::after {
  display: none;
}

.page-home .home-intro {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-block: 80px 72px;
}

.page-home .home-intro::before,
.page-home .home-intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-intro::before {
  inset: 0 0 0 34%;
  background: url("assets/home-circuit.svg") right center / contain no-repeat;
  opacity: .28;
  mask-image: linear-gradient(90deg, transparent, #000 32%);
}

.page-home .home-intro::after {
  inset: 0;
  background: url("assets/home-grain.svg") repeat;
  opacity: .04;
}

.page-home .home-intro > div {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.page-home .home-intro h1 {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: clamp(42px, 5.1vw, 68px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 14px #00000030;
}

.page-home .home-intro .lead {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #d0d8dc;
  text-shadow: none;
}

.page-home .hero__actions {
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.page-home .home-intro .button {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease;
}

.page-home .home-primary {
  background: #e5eee8;
  border-color: #e5eee8;
  color: #16201b;
}

.page-home .home-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: none;
}

.page-home .home-secondary {
  background: transparent;
  border-color: transparent;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffffff60;
  text-underline-offset: 6px;
}

.page-home .home-secondary:hover {
  background: transparent;
  text-decoration-color: #fff;
  transform: none;
}

.page-home .home-intro a:focus-visible {
  outline: 2px solid #e5eee8;
  outline-offset: 5px;
}

.page-home .home-intro [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 920px) {
  .page-home .home-intro { padding-block: 70px; }
  .page-home .home-intro > div { width: min(620px, 100%); }
  .page-home .home-intro h1 { font-size: clamp(42px, 7.2vw, 62px); }
}

@media (max-width: 560px) {
  .page-home .home-intro::before {
    inset: 22% -10px 0 15%;
    opacity: .18;
    mask-image: linear-gradient(180deg, transparent, #000 70%);
  }
  body.page-home {
    background:
      linear-gradient(rgba(8, 14, 18, .76), rgba(8, 14, 18, .72)),
      url("assets/w.jpg") 58% center / cover no-repeat;
  }
  .page-home .home-intro {
    width: calc(100% - 40px);
    min-height: calc(100svh - 76px);
    padding-block: 56px;
  }
  .page-home .home-intro h1 { font-size: clamp(37px, 9.6vw, 52px); }
  .page-home .home-intro .lead { font-size: 16px; }
  .page-home .hero__actions { gap: 8px; margin-top: 28px; }
  .page-home .home-intro .button { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-intro .button { transition: none; }
}
