:root {
    --hero-height: 566px;
    --hero-panel-edge: 50%;
}

.hero img {
    width: 100%;
    height: var(--hero-height);
    object-fit: cover;
}

.hero .content {
    position: absolute;
    width: 100%;
    height: var(--hero-height);
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero .content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  /* linear-gradient(
    to bottom,
    rgba(11, 37, 69, 0.85) 0%,
    rgba(11, 37, 69, 0.45) 30%,
    rgba(11, 37, 69, 0)    60%
  ),
  linear-gradient(
    to right,
    rgba(11, 37, 69, 0.85) 0%,
    rgba(11, 37, 69, 0.72) var(--hero-panel-edge),
    rgba(11, 37, 69, 0.42) calc(var(--hero-panel-edge) + 12%),
    rgba(0, 0, 0, 0.3)     calc(var(--hero-panel-edge) + 26%),
    rgba(0, 0, 0, 0.22)    100%
  ); */
  pointer-events: none; /* so it doesn't block clicks on things below */
}

/* Homepage: photo only, no panel or scrim. The old version of this rule
   redeclared everything EXCEPT background, so the base scrim still won and
   it was a no-op. Only background needs overriding. */
.homepage .hero .content::after {
  background: none;
}

.hero {
    position: relative;
    height: var(--hero-height);
    background: var(--color-bg);
}

.hero-title-wrapper {
    z-index: 10;
    position: relative;
    max-width: 1320px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title-wrapper h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 0.9;          /* unitless: scales with font-size */
    max-width: 15ch;            /* controls where it wraps */
    text-wrap: balance;         /* evens out the lines */
    color: white;
    text-transform: uppercase;
}

.hero-body {
    color: white;
}

/* Coral rule to the left of the subtitle. Swap to the ::after block below
   if you'd rather have it underneath. */
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.hero-text {
    width: 66%;
    position: relative;
    padding-left: 1.5rem;
}

.hero-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--color-hilite);
}

/* Below ~900px a 50% panel leaves the text roughly 170px of column, so the
   split stops meaning anything — go to a vertical wash and let the text span. */
@media (max-width: 900px) {
  .hero .content::after {
    /* background: linear-gradient(
      to bottom,
      rgba(11, 37, 69, 0.75) 0%,
      rgba(11, 37, 69, 0.95) 65%,
      var(--main-color) 100%
    ); */
  }

  .hero-text {
    width: 100%;
    padding-left: 1.25rem;
  }
}