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

html {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0b0d10;
}

body {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.video {
  width: 100%;
  background: #000;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0b0d10;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url("images/built-in-the-mountains.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: 100%;
  max-width: 38rem;
  padding: 3.25rem 20px 3.75rem;
  text-align: left;
}

.hero .hero-name {
  margin: 0 0 0.35rem;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.45;
}

.hero .closer {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-weight: 600;
}

.gallery {
  width: 100%;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.contact {
  padding: 3.5rem 20px 4.5rem;
  text-align: center;
}

.portrait {
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto 1.75rem;
}

.contact h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cert {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.45;
}

.email-line {
  margin: 0.85rem 0 0;
}

.email-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 4px;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.email-line a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 800px) {
  .hero {
    /* Dark through the text column, clear by about 60% on a typical desktop. */
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0,
        rgba(0, 0, 0, 0.5) 14rem,
        rgba(0, 0, 0, 0.4) 42rem,
        rgba(0, 0, 0, 0) max(60%, 50rem)
      ),
      url("images/built-in-the-mountains.jpg");
  }

  .hero-inner {
    max-width: calc(38rem + 9rem);
    padding: 5rem 4.5rem 5.5rem;
  }

  .hero .hero-name {
    font-size: clamp(2.15rem, 3.4vw, 3.25rem);
    margin-bottom: 0.4rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4.2vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
  }

  .hero p {
    font-size: 17px;
    line-height: 1.5;
  }

  .portrait {
    max-width: 1440px;
  }

  .contact {
    padding: 4.5rem 20px 5.5rem;
  }
}
