/* The pin field's canvas runs past the hero's foot into the introduction, so
   the ivory ground and the front pins carry on into the next section. */
.hero {
  --bleed: 30svh;
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1200px;
  background: radial-gradient(120% 90% at 70% 40%, #0b3634 0%, var(--deep) 45%, var(--night) 100%);
  color: var(--on-dark);
}

.hero__field {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% + var(--bleed));
  pointer-events: none;
}

/* Without WebGL the slant still lands where the ivory ground would be. */
html:not(.has-field) .hero__field {
  background: linear-gradient(to bottom right, transparent 49.6%, var(--ivory) 50%) 0 60% / 100% 40% no-repeat;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: min(58rem, 56vw);
  padding: calc(var(--bar) + clamp(40px, 9svh, 120px)) 0 0 var(--gutter);
}

/* The name's etymology, a dictionary line above the headline. */
.hero__etym {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.85em;
  margin-bottom: clamp(18px, 2.8svh, 34px);
  font-family: var(--serif);
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--on-dark-faint);
}

.hero__etym dfn {
  font-style: normal;
  color: var(--on-dark-soft);
}

/* The reading serif at 450, in the italic the contact question closes on. */
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.hero__title span {
  display: block;
}

/* Two parallel sentences, one to a line where they fit. */
.hero__lede {
  margin-top: clamp(22px, 3.2svh, 40px);
  max-width: 28em;
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.5;
  color: var(--on-dark-soft);
  text-wrap: pretty;
}

.hero__lede span {
  display: block;
}

/* The hero's one action, the amber primary button (css/base.css). It sits over
   the field and the ivory slant alike; its halo is the field's own, since
   js/pins.js raises an amber pulse in the pins nearest it. */
.hero__cta {
  margin-top: clamp(30px, 4.4svh, 52px);
}

.hero__cta:focus-visible {
  outline-color: var(--on-dark);
  outline-offset: 4px;
}

/* Phones: a full-width thumb target, as zwischen.ai sets its own. */
@media (max-width: 480px) {
  .hero__cta {
    display: flex;
  }
}

/* Phone or any portrait screen: copy on top, the field below. js/pins.js
   switches its composition on this exact query (STACKED). */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .hero {
    --bleed: 14svh;
    height: 100svh;
    min-height: 620px;
  }

  .hero__copy {
    max-width: none;
    padding: calc(var(--bar) + 36px) var(--gutter) 0;
  }

  .hero__title {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero__lede {
    max-width: 24em;
  }
}

/* Too narrow for one line each: the etymology takes one definition per line
   with no separator, and the lede's sentences run on. */
@media (max-width: 559px) {
  .hero__etym {
    flex-direction: column;
  }
  .hero__etym-sep {
    display: none;
  }
  .hero__lede span {
    display: inline;
  }
}
