:root {
  color-scheme: light;
  --ink: #102f38;
  --teal: #006965;
  --mist: #d3e0da;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 5.5vh, 56px) clamp(24px, 5vw, 90px) 24px;
  overflow: hidden;
  text-align: center;
}

.landscape {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #073446 url("assets/tidally/tidal-panorama.png") center / cover no-repeat;
}

/* Keep a light reading area without hiding the tidal contours or red route. */
.landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 70%, rgba(3, 34, 46, .12) 85%, rgba(3, 34, 46, .48) 100%),
    radial-gradient(ellipse 78% 80% at 50% 32%, rgba(215, 227, 220, .84) 0%, rgba(215, 227, 220, .74) 28%, rgba(215, 227, 220, .45) 48%, rgba(215, 227, 220, .1) 69%, rgba(215, 227, 220, .02) 92%, transparent 100%);
}

.brand {
  align-self: start;
  justify-self: center;
}
.brand img {
  display: block;
  width: clamp(148px, 12vw, 184px);
  height: auto;
}

.vision {
  align-self: center;
  justify-self: center;
  width: 100%;
  padding-block: 56px;
}

h1 {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(44px, 5.15vw, 84px);
  line-height: 1.1;
  letter-spacing: -.052em;
  font-weight: 500;
  text-wrap: balance;
}
h1 span, h1 em { display: block; }
h1 em { color: var(--teal); font-style: normal; }

.promise {
  margin: 30px 0 0;
  color: #173d42;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: .005em;
}

.invitation {
  align-self: end;
  justify-self: center;
  font-size: .9375rem;
  line-height: 1.7;
}
.invitation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #edf4ef;
  text-decoration: underline;
  text-decoration-color: rgba(237, 244, 239, .4);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.invitation a:hover { color: #fff; text-decoration-color: #fff; }
.invitation a:focus-visible { outline: 2px solid #edf4ef; outline-offset: 5px; border-radius: 2px; }

@media (max-width: 760px) {
  .hero { padding: 30px 24px 20px; }
  .brand img { width: 148px; }
  .vision { padding-block: 42px; }
  h1 { max-width: 580px; font-size: clamp(36px, 6.6vw, 50px); line-height: 1.13; letter-spacing: -.047em; }
  h1 span { display: inline; }
  h1 em { margin-top: 5px; }
  .promise { max-width: 280px; margin: 26px auto 0; font-size: 1rem; }
  .landscape { background-position: 63% center; }
  .landscape::after {
    background:
      linear-gradient(180deg, transparent 70%, rgba(3, 34, 46, .12) 85%, rgba(3, 34, 46, .5) 100%),
      radial-gradient(ellipse 120% 70% at 50% 35%, rgba(215, 227, 220, .84) 0%, rgba(215, 227, 220, .72) 32%, rgba(215, 227, 220, .48) 59%, rgba(215, 227, 220, .06) 86%, transparent 100%);
  }
}

@media (max-width: 370px) {
  .hero { padding-inline: 20px; }
  h1 { font-size: 32px; }
}

@media (max-height: 650px) {
  .hero { padding-block: 22px 14px; }
  .vision { padding-block: 32px; }
  .promise { margin-top: 22px; }
}

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