/* ============================================================
   COFFEE SCENE — isolated hero artwork + steam
   Change these variables to reposition and resize the artwork.
   Does not change the main portfolio stylesheet.
   ============================================================ */

.hero .hero-inner {
  position: relative;
  isolation: isolate;
}

.hero .hero-copy {
  position: relative;
  z-index: 2;
}

.coffee-scene {
  --coffee-width: min(40vw, 600px);
  --coffee-right: 50px;
  --coffee-top: 80%;
  --coffee-opacity: 1;
  --steam-color: #d9e5df;

  position: absolute;
  z-index: 1;
  top: var(--coffee-top);
  right: var(--coffee-right);
  width: var(--coffee-width);
  aspect-ratio: 756 / 555;
  transform: translateY(-50%);
  opacity: var(--coffee-opacity);
  pointer-events: none;
  user-select: none;
}

.coffee-scene__image,
.coffee-scene__smoke,
.coffee-scene__smoke svg {
  display: block;
  width: 100%;
  height: 100%;
}

.coffee-scene__image {
  object-fit: contain;
}

.coffee-scene__smoke {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.coffee-scene__smoke svg {
  overflow: visible;
}

.coffee-scene__smoke .steam-thread {
  fill: none;
  stroke: var(--steam-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  opacity: 0;
}

.coffee-scene__smoke .steam-soft {
  fill: none;
  stroke: var(--steam-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
  filter: blur(4px);
  opacity: 0;
}

/* At narrower desktop sizes the artwork stays behind the text. */
@media (max-width: 1100px) {
  .coffee-scene {
    --coffee-width: min(45vw, 540px);
    --coffee-right: -20px;
    --coffee-opacity: 0.88;
  }
}

/* On small screens move artwork below text instead of covering it. */
@media (max-width: 760px) {
  .hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .coffee-scene {
    --coffee-width: min(100%, 440px);
    --coffee-right: 0px;
    --coffee-opacity: 1;

    position: relative;
    top: auto;
    right: auto;
    width: var(--coffee-width);
    margin-left: auto;
    margin-top: 14px;
    transform: none;
  }
}
