.latticemls-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 22%, rgb(73 100 191 / .075), transparent 31rem),
    radial-gradient(circle at 88% 70%, rgb(198 111 71 / .045), transparent 25rem),
    var(--bg);
}

.lattice-shell {
  width: min(100% - clamp(2rem, 7vw, 7rem), 1180px);
  margin-inline: auto;
}

.lattice-topbar,
.lattice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
}

.lattice-topbar { border-bottom: 1px solid var(--line); }
.lattice-footer { border-top: 1px solid var(--line); }
.lattice-topbar a,
.lattice-footer a { text-decoration: none; }

.lattice-hero {
  min-height: calc(100svh - 3.5rem);
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(560px, 1.3fr);
  align-items: center;
  gap: clamp(3.5rem, 8vw, 7rem);
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.lattice-hero__copy {
  min-width: 0;
}

.lattice-hero h1 {
  font-size: clamp(4.4rem, 6.1vw, 5.4rem);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: .9;
}

.lattice-hero__copy p {
  max-width: 40ch;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.62;
}

.lattice-primary {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .82rem 1.15rem;
  border-radius: .5rem;
  background: var(--stain);
  color: #fff;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.lattice-primary:hover { background: var(--eosin); color: #fff; transform: translateY(-2px); }

.lattice-hero__visual {
  position: relative;
  aspect-ratio: 1 / .98;
  isolation: isolate;
}

.lattice-window {
  position: absolute;
  width: 90%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d4dde5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 32px 70px -36px rgb(16 39 45 / .56);
}

.lattice-window--overview {
  z-index: 1;
  top: 0;
  right: 0;
  transform: rotate(1.4deg);
}

.lattice-window--topic {
  z-index: 2;
  top: 22%;
  left: 0;
  transform: rotate(-1.2deg);
}

.lattice-window--simulators {
  z-index: 3;
  top: 44%;
  right: 3%;
  transform: rotate(.55deg);
}

.lattice-window img {
  display: block;
  width: 100%;
  height: auto;
}

.lattice-footer p { margin: 0; }

@media (max-width: 980px) {
  .lattice-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 5rem);
  }
  .lattice-hero__copy { max-width: 42rem; }
  .lattice-hero__visual {
    width: 100%;
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  .lattice-hero h1 {
    font-size: clamp(4rem, 20vw, 6rem);
    letter-spacing: -.05em;
  }
}

@media (max-width: 560px) {
  .lattice-shell { width: min(100% - 2rem, 1180px); }
  .lattice-hero { padding-block: 3rem; }
  .lattice-footer p { max-width: 25ch; }
}
