/* Hero composition: the mark assembles as the conversation comes together. */
@media (min-width:1051px) {
  .cafe-hero { padding-top: 94px; padding-bottom: 62px; }
  .cafe-hero .hero-grid { transform: translateY(clamp(-54px, -4.5vh, -34px)); }
  .cafe-hero .hero-copy { position: relative; top: 0; }
  .cafe-hero .cafe-mark { width: 82%; justify-self: center; top: -18px; }
  .cafe-hero .hero-copy h1 { margin-block: 17px; font-size: clamp(45px, 4.7vw, 76px); line-height: .94; }
  .cafe-hero .lead { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.58; }
  .cafe-hero .hero-actions { margin-top: clamp(86px, 10vh, 122px); }
}

.cafe-mark { isolation: isolate; aspect-ratio: 3 / 2; }
.cafe-mark .cafe-mark-source { width: 100%; height: 100%; opacity: 0; filter: none; }
.cafe-mark .logo-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background: url("/assets/cafe_v1.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .48));
  opacity: 0;
  will-change: transform, opacity, filter;
}
.cafe-mark .logo-symbol { transform-origin: 50% 23%; }
.cafe-mark:before { animation: cafeAura 4.8s 1.1s ease-in-out infinite alternate; }
.cafe-mark .logo-symbol { clip-path: polygon(27% 3%, 73% 3%, 73% 43%, 27% 43%); animation: cafeSymbolIn 1.05s .12s cubic-bezier(.16,.84,.24,1) forwards; }
.cafe-mark .logo-rcad { clip-path: polygon(5% 39%, 95% 39%, 95% 65%, 5% 65%); animation: cafeRcadIn 1s .36s cubic-bezier(.16,.84,.24,1) forwards; }
.cafe-mark .logo-world { clip-path: polygon(5% 61%, 95% 61%, 95% 83%, 5% 83%); animation: cafeWorldIn 1.04s .57s cubic-bezier(.16,.84,.24,1) forwards; }
.cafe-mark .logo-cafe { clip-path: polygon(27% 80%, 73% 80%, 73% 97%, 27% 97%); animation: cafeWordIn .92s .79s cubic-bezier(.16,.84,.24,1) forwards; }
.cafe-mark:after { content: ""; position: absolute; z-index: 2; right: 14%; bottom: 16%; left: 14%; height: 1px; background: linear-gradient(90deg, transparent, #f5c4ff, #9b55e5, transparent); box-shadow: 0 0 18px #a65ee9; opacity: 0; animation: cafeScan 1.1s 1.18s ease-out forwards; pointer-events: none; }
.cafe-mark figcaption { position: relative; z-index: 3; }

@keyframes cafeSymbolIn { from { opacity: 0; transform: translateY(-88px) scale(.72) rotate(-8deg); filter: blur(12px) brightness(1.8); } 72% { opacity: 1; transform: translateY(5px) scale(1.03) rotate(1deg); filter: blur(0) brightness(1.3); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cafeRcadIn { from { opacity: 0; transform: translateX(145px) skewX(-9deg); filter: blur(14px) brightness(1.7); } 70% { opacity: 1; transform: translateX(-7px) skewX(1deg); filter: blur(0) brightness(1.25); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cafeWorldIn { from { opacity: 0; transform: translateX(-155px) skewX(9deg); filter: blur(14px) brightness(1.8); } 70% { opacity: 1; transform: translateX(8px) skewX(-1deg); filter: blur(0) brightness(1.28); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cafeWordIn { from { opacity: 0; transform: translateY(76px) scale(.78); filter: blur(11px) brightness(1.8); } 72% { opacity: 1; transform: translateY(-4px) scale(1.02); filter: blur(0) brightness(1.24); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cafeScan { 0% { opacity: 0; transform: scaleX(.1); } 35% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(.72); } }
@keyframes cafeAura { from { opacity: .62; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@media (max-width:1050px) {
  .cafe-hero { min-height: auto; padding: 88px 0 64px; }
  .cafe-hero .hero-grid { gap: 28px; }
  .cafe-hero .hero-copy { max-width: 680px; }
  .cafe-hero .hero-copy h1 { margin-block: 18px; font-size: clamp(46px, 8vw, 68px); line-height: .96; }
  .cafe-hero .lead { max-width: 620px; font-size: 17px; line-height: 1.62; }
  .cafe-hero .hero-actions { margin-top: 29px; }
  .cafe-hero .cafe-mark { width: min(520px, 86vw); margin: 0 auto; top: 0; }
  .cafe-hero .hero-foot { position: static; margin: 36px auto 0; padding-inline: 24px; line-height: 1.7; }
}

@media (max-width:620px) {
  .cafe-hero { padding-top: 78px; padding-bottom: 50px; }
  .cafe-hero .hero-copy h1 { font-size: clamp(43px, 12vw, 54px); }
  .cafe-hero .lead { font-size: 16px; line-height: 1.58; }
  .cafe-hero .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .cafe-hero .hero-actions .button { width: 100%; min-height: 55px; }
  .cafe-hero .cafe-mark { width: min(420px, 92vw); }
  .cafe-mark figcaption { margin-top: 2px; line-height: 1.55; }
  .cafe-hero .hero-foot { max-width: 330px; margin-top: 30px; font-size: 7px; }
  .cafe-hero .hero-foot i { display: inline-block; margin: 0 6px; }
}
@media (prefers-reduced-motion:reduce) { .cafe-mark .logo-layer { opacity: 1; animation: none; } .cafe-mark:after { display: none; } }
