/* Scene 02: the cup moves; the text and choices stay legible and stationary. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  padding: 18px 0 78px;
  overflow: hidden;
  background: radial-gradient(ellipse at 32% 47%, #67452b 0%, var(--espresso) 47%, #281a11 100%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
}
.cup-stage {
  position: relative;
  width: min(60vw, calc(100svh - 136px), 760px);
  width: min(60vw, calc(100dvh - 136px), 760px);
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
}
.cup-media { position: absolute; inset: 0; z-index: -1; }
.cup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(15, 8, 3, .36));
  animation: coffee-orbit 27s linear infinite paused;
  transform-origin: center;
}
.hero.is-active .cup-image { animation-play-state: running; }
@keyframes coffee-orbit { to { transform: rotate(360deg); } }
.hero .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24% 22% 24% 17%;
  text-align: center;
  pointer-events: none;
}
.hero .eyebrow {
  color: #f4cd95;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .12em;
  text-shadow: 0 1px 8px #170a04;
}
.hero h1 {
  width: max-content;
  max-width: 100%;
  margin: 12px 0 13px;
  color: var(--cream);
  font: 400 clamp(52px, 5.2vw, 78px)/.95 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em;
  text-shadow: 0 2px 20px #170a04, 0 1px 4px #170a04;
}
.hero h1 span { display: block; }
.hero h1 .serif-italic { color: #e6b87d; }
.hero .hero-description {
  max-width: 350px;
  color: var(--cream);
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.45;
  text-shadow: 0 2px 15px #170a04, 0 1px 3px #170a04;
}
.hero .hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  margin: 0;
  align-self: center;
}
.hero-actions .button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-actions .button-outline { border-color: rgba(255,250,241,.67); }
.experience-cue {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 8px 14px;
  color: var(--cream);
  font: 700 12px/1.3 Cuyabra, Arial, sans-serif;
  letter-spacing: .14em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.experience-cue span { color: var(--gold); font: 400 22px/1 Arial, sans-serif; }
@media (hover:hover) and (pointer:fine) {
  .experience-cue:hover { color: var(--gold); }
}
@media (max-width: 900px) {
  .hero { padding: 10px 14px 72px; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: clamp(8px, 1.8vh, 18px);
    width: 100%;
  }
  .cup-stage {
    width: min(105vw, calc(100svh - 222px), 560px);
    width: min(105vw, calc(100dvh - 222px), 560px);
  }
  .hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 500px);
  }
  .hero-actions .button {
    min-width: 0;
    min-height: 58px;
    padding: 11px 12px;
    gap: 7px;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
  }
  .hero-actions .button .arrow { font-size: 20px; flex: none; }
  .hero .hero-copy { padding: 21% 22% 21% 17%; }
  .hero .eyebrow { font-size: clamp(10px, 2.6vw, 12px); letter-spacing: .08em; }
  .hero h1 { font-size: clamp(37px, 10.3vw, 59px); margin: 7px 0 8px; }
  .hero .hero-description { font-size: clamp(13px, 3.4vw, 15px); line-height: 1.3; }
  .experience-cue { bottom: max(19px, env(safe-area-inset-bottom)); font-size: 11px; gap: 10px; }
}
@media (max-width: 360px) {
  .hero .hero-actions { gap: 7px; }
  .hero-actions .button { font-size: 13px; padding-inline: 9px; }
  .hero h1 { font-size: 35px; }
  .hero .hero-description { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cup-image { animation: none; }
}

/* Clear hierarchy for the welcome scene. */
.hero .hero-copy{padding:14% 21% 14% 16%}
.hero .welcome-title{width:100%;margin:0;color:#fff9ef;font:700 clamp(42px,4vw,56px)/1.03 Cuyabra,Arial,sans-serif;letter-spacing:.01em;text-shadow:0 2px 12px rgba(18,7,2,.96),0 0 24px rgba(18,7,2,.85)}
.hero .welcome-title span,.hero .sip-line span{display:block}
.hero .sip-line{margin:12px 0;color:var(--cream);font:400 clamp(30px,2.8vw,38px)/.98 Georgia,'Times New Roman',serif;letter-spacing:-.045em;text-shadow:0 2px 18px #170a04,0 1px 4px #170a04}
.hero .sip-line .serif-italic{color:#e6b87d}
.hero .hero-description{width:100%;max-width:350px;margin:0;padding:9px 12px;border:1px solid rgba(255,250,241,.22);border-radius:10px;background:rgba(27,11,5,.78);color:#fffaf1;font-size:clamp(15px,1.25vw,17px);font-weight:600;line-height:1.35;text-shadow:none}
@media(max-width:900px){.hero .hero-copy{padding:13% 21% 13% 16%}.hero .welcome-title{font-size:clamp(31px,8.8vw,38px)}.hero .sip-line{font-size:clamp(23px,6.2vw,28px);margin:8px 0 10px}.hero .hero-description{font-size:clamp(14px,3.8vw,16px);line-height:1.27;padding:8px 9px}}
@media(max-width:360px){.hero .welcome-title{font-size:31px}.hero .sip-line{font-size:23px}.hero .hero-description{font-size:14px}}

/* Scene 02: shared serif type, glowing copy, and cup motion on the active screen. */
.hero.is-current .cup-image,html:not(.js-scenes) .hero .cup-image{animation-play-state:running}
.hero .hero-copy{padding:14% 13%}
.hero .welcome-title{font:400 clamp(39px,3.8vw,52px)/1.02 Georgia,'Times New Roman',serif;letter-spacing:-.035em;text-shadow:0 1px 4px #170a04,0 3px 15px #170a04,0 0 18px rgba(255,231,190,.42)}
.hero .hero-description{max-width:400px;padding:0;border:0;border-radius:0;background:none;color:#fff9ef;font:400 clamp(16px,1.45vw,19px)/1.34 Georgia,'Times New Roman',serif;text-shadow:0 1px 3px #180902,0 2px 10px #180902,0 0 10px rgba(255,222,166,.82),0 0 20px rgba(244,164,93,.32);animation:coffee-copy-glow 3.8s ease-in-out infinite alternate paused}
.hero.is-current .hero-description,html:not(.js-scenes) .hero .hero-description{animation-play-state:running}
@keyframes coffee-copy-glow{to{text-shadow:0 1px 3px #180902,0 2px 10px #180902,0 0 15px rgba(255,232,180,.98),0 0 32px rgba(244,164,93,.65)}}
@media(max-width:900px){.hero .hero-copy{padding:12% 12%}.hero .welcome-title{font-size:clamp(28px,7.6vw,34px)}.hero .hero-description{font-size:clamp(15px,3.8vw,17px);line-height:1.27}}
@media(max-width:360px){.hero .welcome-title{font-size:28px}.hero .hero-description{font-size:15px}}
@media(max-height:540px){.hero .hero-copy{padding:9% 10%}.hero .welcome-title{font-size:clamp(25px,3.2vw,31px)}.hero .sip-line{font-size:clamp(21px,2.5vw,25px);margin:5px 0 6px}.hero .hero-description{font-size:clamp(14px,1.6vw,16px);line-height:1.18}}
@media(prefers-reduced-motion:reduce){.hero .hero-description{animation:none}}

html.js-scenes .hero:not(.is-current) .cup-image,html.js-scenes .hero:not(.is-current) .hero-description{animation-play-state:paused}
