/* hero.css - owned by the hero section. Shell, fitted wordmark, hairline field. */

/* ---------- shell ---------- */

.section--hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-4);
}

/* the canvas field is painted edge to edge behind every hero element */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
}

.hero-rule {
  height: 1px;
  background: var(--ink-15);
}

/* ---------- wordmark ---------- */

.hero-core {
  display: grid;
  row-gap: var(--sp-4);
}

.hero-title {
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--tr-hero);
  margin-left: -0.045em; /* cancels the left sidebearing so the t sits on the gutter */
  white-space: nowrap;
  font-kerning: normal;
  /* hero.js replaces the clamp with a measured size once the webfont is in */
}

.hero-lead {
  margin: 0;
}

/* ---------- three words, hairline separators ---------- */

.hero-disciplines {
  width: min(100%, 15rem);
}

.hero-discipline {
  padding-top: var(--sp-1);
  padding-bottom: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--ink-45);
}

.hero-discipline:first-child {
  padding-top: 0;
}

.hero-discipline:last-child {
  padding-bottom: 0;
}

.hero-discipline + .hero-discipline {
  border-top: 1px solid var(--ink-15);
}

/* ---------- off-axis placement, tablet up ---------- */

@media (min-width: 768px) {
  .hero-core {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--sp-5);
    row-gap: var(--sp-5);
  }

  .hero-title {
    grid-column: 1 / -1;
  }

  .hero-disciplines {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-lead {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .hero-core {
    row-gap: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-lead,
  .hero-discipline {
    clip-path: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
