/* Welding demonstration: a film viewer set into the existing product hero. */
.welding-page .single-screen-main .welding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "heading film" "intro film";
  align-content: center;
  align-items: center;
  gap: 1.5rem clamp(3rem, 7vw, 9rem);
  min-height: max(94svh, 40rem);
  height: auto;
  padding-block: calc(var(--header) + clamp(3rem, 5vh, 5rem)) clamp(3rem, 7vh, 6rem);
}

.welding-hero .scene-shade {
  background: linear-gradient(90deg, rgb(0 0 0 / 92%), rgb(0 0 0 / 63%) 42%, rgb(0 0 0 / 14%) 82%),
              linear-gradient(0deg, rgb(0 0 0 / 65%), transparent 65%);
}

.welding-copy { grid-area: heading; align-self: end; }

.welding-copy h1 {
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
  line-height: 1.14;
}

.welding-copy .hero-subtitle {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.65;
}

.welding-intro {
  grid-area: intro;
  align-self: start;
  position: relative;
  z-index: 2;
  max-width: 38em;
  font-size: clamp(.94rem, 1.02vw, 1.1rem);
  line-height: 1.85;
  color: #d2d5d6;
}

.welding-intro p + p { margin-top: .65em; }

.welding-film {
  grid-area: film;
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  margin: 0;
  background: #0b1013;
  border: 1px solid rgb(218 233 237 / 48%);
  box-shadow: 0 12px 44px rgb(0 0 0 / 32%);
}

.welding-film::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 2.7rem;
  border-top: 2px solid #77c9d1;
}

.welding-film-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding: .95rem clamp(.8rem, 1.25vw, 1.4rem);
  border-bottom: 1px solid #3a4347;
  color: #f6f8f8;
  line-height: 1.45;
}

.welding-film-heading strong { font-size: clamp(.96rem, 1.15vw, 1.22rem); }
.welding-film-heading [lang="en"] { white-space: nowrap; font-family: var(--latin); }
.welding-film-label { font-size: .8rem; letter-spacing: .07em; color: #bdc9ce; }
.welding-film-mount { padding: clamp(.35rem, .55vw, .65rem); }
.welding-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

@media (max-width: 900px) {
  .welding-page .single-screen-main .welding-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "film" "intro";
    gap: 1.8rem;
    min-height: auto;
    padding-block: calc(var(--header) + 2.5rem) 3rem;
  }
  .welding-copy h1 { font-size: clamp(2.15rem, 9.6vw, 4.25rem); }
  .welding-hero .scene-shade { background: linear-gradient(90deg, #000d, #0008), linear-gradient(0deg, #07090b, transparent 70%); }
  .welding-copy, .welding-film, .welding-intro { width: min(100%, 44rem); max-width: 44rem; justify-self: center; }
}

.welding-film-screen { position: relative; }
.welding-film-play[hidden], .welding-film-fallback[hidden] { display: none; }
.welding-film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 20%), transparent 65%);
  color: #fff;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-shadow: 0 1px 5px #000;
}
.welding-play-icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(3rem, 4.5vw, 4.25rem);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  background: rgb(8 14 18 / 78%);
  transition: background-color .2s, color .2s;
}
.welding-play-icon::before {
  content: "";
  margin-left: .2em;
  border-block: .5em solid transparent;
  border-left: .78em solid currentColor;
}
.welding-film-play:hover .welding-play-icon,
.welding-film-play:focus-visible .welding-play-icon { background: #fff; color: #101719; }
.welding-film-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.welding-film-fallback { padding: .6rem .3rem; font-size: .86rem; color: #d4dce0; }
.welding-film-fallback a { color: #fff; text-decoration: underline; }
