/* Homepage hero. Type stays HTML over the clean background image. */

.swi-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  display: block;
  background: #040d16;
  color: #f4f7f8;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
}

.swi-hero-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.swi-hero-try {
  position: absolute;
  z-index: 2;
  top: 1.35rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #3ad0ef;
  color: #041018;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(58, 208, 239, 0.18);
}

.swi-hero-try:hover { background: #7fe3f7; color: #041018; }
.swi-hero-try:focus-visible { outline: 3px solid #f2c14d; outline-offset: 3px; }

.swi-hero-copy {
  position: absolute;
  z-index: 1;
  top: calc(50% + 4.6vw - 40px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: min(40rem, calc(100% - 4rem));
  margin: 0;
  text-align: left;
  transform: translate(-50%, -50%);
}

.swi-hero-kicker {
  margin: 0 0 1rem;
  color: #d5dee6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.swi-hero h1 {
  margin: 0;
  max-width: 22ch;
  color: #ffffff;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.swi-hero .swi-cyan {
  color: #3ad0ef;
  font-style: normal;
}

.swi-hero .swi-gold {
  color: #f2c14d;
  font-style: normal;
}

.swi-hero-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin-top: 1.35rem;
}

.swi-hero-lede {
  flex: 1 1 auto;
  max-width: 40rem;
  margin: 0;
  color: #e7eef3;
  font-size: 1.125rem;
  line-height: 1.45;
}

.swi-hero-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: #3ad0ef;
  color: #041018;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(58, 208, 239, 0.18);
}

.swi-hero-button:hover {
  background: #7fe3f7;
  color: #041018;
}

.swi-hero-button:focus-visible {
  outline: 3px solid #f2c14d;
  outline-offset: 3px;
}

.swi-hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #3ad0ef, #f2c14d);
}

/* Old editor header card, until it is deleted in Ghost Admin. */
.is-swi-home .kg-header-card:has(#make-chemistry-mechanisms-interactive) {
  display: none !important;
}

@media (max-width: 860px) {
  .swi-hero-copy {
    max-width: calc(100% - 2.5rem);
  }

  .swi-hero h1 {
    max-width: none;
  }
}
