:root {
  --moss: #9ba92e;
  --orange: #ff5c00;
  --white: #f4f5f2;
  --muted: #d7dcdb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #062942;
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(0, 23, 43, 0.06) 0%, rgba(2, 14, 20, 0.02) 47%, rgba(1, 10, 9, 0.5) 100%),
    url("assets/coastal-hero.webp");
  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 3vw, 48px);
  left: clamp(24px, 3.8vw, 64px);
  right: clamp(24px, 4.2vw, 72px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: block;
  width: clamp(290px, 23vw, 430px);
  height: auto;
}

.location {
  margin: 14px 0 0;
  color: rgba(244, 245, 242, 0.9);
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 300;
  letter-spacing: 0.015em;
}

.message {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 5vw, 84px);
  right: clamp(30px, 4.5vw, 76px);
  bottom: clamp(28px, 7vh, 68px);
}

.survey-line {
  position: relative;
  height: 70px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(228, 232, 223, 0.42);
}

.origin {
  position: absolute;
  left: -24px;
  bottom: -12px;
  color: var(--moss);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.endpoint {
  position: absolute;
  right: -1px;
  bottom: -3px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--orange);
  border-left: 4px solid transparent;
}

.contours,
.contours::before,
.contours::after {
  position: absolute;
  left: 18px;
  width: 490px;
  height: 28px;
  content: "";
  border-top: 1px solid rgba(155, 169, 46, 0.48);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.contours {
  bottom: -22px;
}

.contours::before {
  top: -9px;
  left: 30px;
  width: 420px;
}

.contours::after {
  top: 8px;
  left: 54px;
  width: 360px;
  border-top-style: dotted;
}

h1 {
  max-width: 940px;
  margin: 26px 0 16px;
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 300;
  letter-spacing: 0.005em;
}

.contact {
  width: max-content;
  margin-top: clamp(34px, 4.5vh, 48px);
}

.contact p {
  margin: 0 0 6px;
  color: var(--moss);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 300;
}

.contact a {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(155, 169, 46, 0.76);
  color: var(--white);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 300;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  border-color: var(--orange);
  color: #fff;
  outline: none;
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    background-position: 44% center;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: min(68vw, 330px);
  }

  .location {
    max-width: 90px;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.25;
    text-align: right;
  }

  .message {
    bottom: max(28px, env(safe-area-inset-bottom));
  }

  .survey-line {
    height: 48px;
  }

  .contours,
  .contours::before,
  .contours::after {
    width: min(72vw, 380px);
  }

  h1 {
    margin-top: 24px;
  }

  .tagline {
    max-width: 570px;
    line-height: 1.45;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .site-header {
    top: 20px;
  }

  .brand {
    width: 320px;
  }

  .message {
    bottom: 26px;
  }

  .survey-line {
    height: 38px;
  }

  h1 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 58px;
  }

  .contact {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
