/* ========================= HERO ========================= */

.hero {
  position: relative;
  background: #f9f9f9;
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  color: #000;
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 0.50;
}

/* layout */
.hero__flex {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  min-height: 80vh;
  margin-left: 20px;
}

.hero__lead {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  max-width: 800px;
  flex: 0 0 800px;
  margin-bottom: 100px;
  align-self: flex-end;
}
.hero__lead p { margin: 0 0 28px; }

/* title container */
.hero__title-diag {
  position: relative;
  flex: 1 1 60vw;
  height: 420px;
  min-width: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero__title {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translate(-40px, -20px);
}

/* ================= HERO TITLES (image-in-text) =================
   Match the HOW style: same background-image, fallback, clip rules
   -------------------------------------------------------------- */
.hero__title .w1,
.hero__title .w2,
.hero__title .w3 {
  position: absolute;
  display: inline-block;
  font-size: 155px;
  line-height: 0.85;

  /* image-in-text (same as how__title) */
  background-image: url("../../assets/art.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #111; /* fallback */

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  z-index: 10;
  pointer-events: none;
}

/* per-word placement */
.hero__title .w1 {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-weight: 800;
  top: -140px;
  left: 5%;
}
.hero__title .w2 {
  /* now matches WHAT & DO */
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-weight: 800;
  top: 16%;
  left: 45%;

  /* visual parity */
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 0.85;
}
.hero__title .w3 {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-weight: 800;
  top: 60%;
  left: 70%;
}

/* ========== Responsive: stack and center nicely on smaller screens ========== */

/* Tablet/mobile breakpoint: stack vertically & center */
@media (max-width: 900px) {
  .hero__flex {
    flex-direction: column-reverse;
    min-height: 0;
    margin-left: 0;
  }

  .hero__lead {
    margin-bottom: 16px;
    max-width: 100vw;
    flex: none;
  }

  .hero__title-diag {
    height: auto;
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  /* Switch to stacked centered layout for the title */
  .hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05em;
    text-align: center;
    min-height: 0;
    height: auto;
    width: 100%;
    position: static;
    transform: none;
  }

  .hero__title .w1,
  .hero__title .w2,
  .hero__title .w3 {
    position: static;
    display: block;
    font-size: clamp(72px, 12vw, 90px);
    left: unset;
    top: unset;
    margin: 0;
    line-height: 0.9;
    /* keep image-in-text on mobile stacked words */
    background-image: url("../../assets/art.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Azeret Mono', ui-monospace, monospace; /* ensure consistent family */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
  }
}

/* Smaller phones: slightly larger clamp for visual rhythm */
@media (max-width: 480px) {
  .hero__lead {
    font-size: 10px;
    line-height: 1.45;
    padding: 0 12px; /* optional: adds breathing room */
  }

  .hero__lead p {
    margin-bottom: 20px; /* tighter spacing for small screens */
  }

  .hero__title {
    gap: 0.08em;
  }

  .hero__title .w1,
  .hero__title .w2,
  .hero__title .w3 {
    font-size: clamp(72px, 16vw, 100px);
    margin: 0 8px;
  }
}