/* michaellapcik.com – static one-page */

:root {
  --bg-panel: #edeef1;
  --gradient: #e4e3f9;
  --text: #000;
  --link: #0a0a0a;
  --muted: #777;
  --ease-clip: cubic-bezier(0.25, 0.1, 0.18, 1);
  --ease-zoom: cubic-bezier(0.3, 0.58, 0.42, 0.9);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 30px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0);
  transition: clip-path 1.3s var(--ease-clip);
}

.hero.is-in { clip-path: inset(30px round 20px); }

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-panel);
  overflow: hidden;
  transform: scale(1.11) translateZ(0);
  transition: transform 0.95s var(--ease-zoom);
}

.hero.is-loaded .hero__bg { transform: scale(1) translateZ(0); }

.hero__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
  image-rendering: auto;
}

.hero__gradient.is-loaded { opacity: 1; }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  padding: 90px 10px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin: 0 0 20px;
  font-size: 38.4px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.hero__text {
  margin: 0 auto 20px;
  max-width: 640px;
  font-size: 15.36px;
  line-height: 1.6;
}

.hero__cta { margin: 0; }

.link {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px solid var(--link);
  transition: opacity 0.25s ease;
}

.link:hover { opacity: 0.65; }

/* Bottom corners ---------------------------------------------------------- */

.hero__clients,
.hero__brand {
  position: absolute;
  z-index: 2;
  bottom: 60px;
}

.hero__clients { left: 60px; }

.hero__brand {
  right: 60px;
  text-align: center;
}

.hero__brand img { display: block; margin: 0 auto 4px; }

.hero__brand p {
  margin: 0;
  font-size: 14.4px;
  line-height: 1.5;
}

.circles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.circles li {
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border-radius: 50%;
  overflow: hidden;
}

.circles li:last-child { margin-right: 0; }

.circles img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.circles__label {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 30px;
}

/* Content animations ------------------------------------------------------ */

.anim {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.95s;
  transition-timing-function: var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.anim--twist { transform: perspective(900px) rotateY(20deg) rotateZ(-4deg); }

.hero.is-loaded .anim {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 999px) {
  .hero__bg { transform: none; transition: none; }
  .hero.is-in { clip-path: inset(0 round 20px); }
}

@media (max-width: 690px) {
  .hero { min-height: 100vh; min-height: 100svh; align-items: flex-start; }
  .hero.is-in { clip-path: inset(24px round 20px); }

  .hero__content { padding: 140px 34px 40px; }

  .hero__title { font-size: 28px; line-height: 1.4; margin-bottom: 40px; }
  .hero__text { font-size: 16px; line-height: 1.5; margin-bottom: 40px; }

  .hero__clients {
    position: static;
    margin: 0 auto;
    padding: 0 34px 60px;
    text-align: center;
  }

  .hero__clients .circles { justify-content: center; }

  .hero__brand { display: none; }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__bg,
  .hero__gradient,
  .anim { transition: none !important; }

  .hero__bg { transform: none; }
  .anim { opacity: 1; transform: none; }
}
