/* Art Is Essential 2 — "Can you stop and Create?" Core Crew popup.
   Roy Lichtenstein / Andy Warhol pop-art style. CSS only; no images. */
@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");

.pc-root{
  position:fixed;inset:0;z-index:4000;
  display:none;align-items:center;justify-content:center;
  padding:12px;box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.pc-root.is-open{display:flex}
.pc-root *,.pc-root *::before,.pc-root *::after{box-sizing:border-box}

.pc-backdrop{
  position:absolute;inset:0;
  background:
    radial-gradient(circle,#111 1.1px,transparent 1.2px) 0 0/10px 10px,
    rgba(8,0,20,.78);
  cursor:pointer;
}

.pc-wrap{
  position:relative;z-index:1;
  width:min(520px,100%);
  max-height:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:44px 36px 40px;
}

.pc-burst{
  position:absolute;
  inset:0;
  background:#FF0033;
  clip-path:polygon(
    50% 0,58% 11%,71% 3%,69% 16%,86% 10%,78% 22%,100% 20%,86% 32%,
    98% 42%,82% 45%,94% 58%,76% 58%,86% 74%,68% 66%,70% 86%,56% 74%,
    50% 100%,44% 74%,32% 88%,32% 68%,16% 76%,24% 60%,2% 60%,18% 46%,
    0 38%,18% 32%,4% 18%,22% 24%,14% 6%,32% 16%,30% 2%,42% 12%
  );
  pointer-events:none;
  filter:drop-shadow(3px 3px 0 #111);
}

.pc-burst::before{
  content:"";
  position:absolute;inset:6px;
  background:#00E5FF;
  clip-path:polygon(
    50% 3%,58% 13%,70% 6%,68% 18%,84% 13%,76% 24%,96% 23%,84% 34%,
    96% 43%,80% 46%,92% 58%,76% 58%,84% 72%,68% 66%,70% 84%,56% 74%,
    50% 96%,44% 74%,34% 86%,34% 68%,20% 74%,26% 60%,6% 58%,20% 46%,
    4% 38%,20% 34%,8% 20%,24% 26%,16% 10%,34% 18%,32% 6%,44% 14%
  );
}

.pc-burst::after{
  content:"";
  position:absolute;inset:14px;
  background:#FF3B9A;
  clip-path:polygon(
    50% 6%,59% 16%,72% 9%,69% 21%,86% 16%,77% 27%,96% 27%,84% 37%,
    96% 46%,81% 48%,90% 60%,76% 59%,84% 72%,68% 67%,70% 82%,56% 74%,
    50% 92%,44% 74%,32% 84%,33% 68%,20% 74%,27% 60%,8% 58%,22% 47%,
    8% 38%,22% 35%,12% 22%,26% 28%,18% 12%,35% 20%,34% 8%,44% 16%
  );
}

.pc-bubble{
  position:relative;z-index:1;
  background-color:#FFE135;
  background-image:radial-gradient(#E10600 1.15px,transparent 1.25px);
  background-size:9px 9px;
  background-position:0 0;
  border:5px solid #111;
  border-radius:42px 46px 40px 48px / 50px 42px 54px 44px;
  box-shadow:8px 8px 0 #111;
  padding:28px 18px 22px;
  color:#111;
}

.pc-bubble::after{
  /* Speech-bubble tail */
  content:"";
  position:absolute;
  left:28px;bottom:-22px;
  width:28px;height:28px;
  background:#FFE135;
  background-image:radial-gradient(#E10600 1.15px,transparent 1.25px);
  background-size:9px 9px;
  border-right:5px solid #111;
  border-bottom:5px solid #111;
  transform:rotate(45deg);
  box-shadow:5px 5px 0 #111;
}

.pc-close{
  position:absolute;
  top:8px;right:8px;
  width:44px;height:44px;
  border:4px solid #111;
  border-radius:50%;
  background:#FF3B9A;
  color:#111;
  font:700 28px/1 Arial,sans-serif;
  cursor:pointer;
  box-shadow:3px 3px 0 #111;
  display:flex;align-items:center;justify-content:center;
  padding:0;
  z-index:2;
}
.pc-close:hover,.pc-close:focus-visible{
  background:#00E5FF;
  outline:3px solid #111;
  outline-offset:2px;
}

.pc-headline{
  margin:0 36px 12px 0;
  font-family:"Bangers",Impact,"Arial Black",sans-serif;
  font-weight:400;
  font-size:clamp(1.7rem,7.2vw,2.7rem);
  line-height:1.05;
  letter-spacing:.03em;
  text-align:center;
  color:#111;
  text-shadow:
    3px 0 0 #00E5FF,
   -2px 0 0 #FF3B9A,
    3px 3px 0 #111;
  -webkit-text-stroke:0;
}

.pc-sub{
  margin:0 0 16px;
  text-align:center;
  font:700 15px/1.35 Arial,Helvetica,sans-serif;
  color:#111;
  background:rgba(255,225,53,.82);
  border:3px solid #111;
  border-radius:14px;
  padding:10px 12px;
}

.pc-form{display:grid;gap:10px}
.pc-form label{
  display:block;
  font:700 13px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:4px;
  color:#111;
}
.pc-form input{
  width:100%;
  min-height:48px;
  font:400 16px/1.3 Arial,Helvetica,sans-serif;
  color:#111;
  background:#fff;
  border:3px solid #111;
  border-radius:10px;
  padding:10px 12px;
  box-shadow:3px 3px 0 #111;
}
.pc-form input:focus{
  outline:3px solid #00E5FF;
  outline-offset:1px;
}
.pc-form input::placeholder{color:#666}

.pc-opt{font-weight:400;text-transform:none;letter-spacing:0}

.pc-hp{position:absolute;left:-9999px;height:0;overflow:hidden}

.pc-submit{
  margin-top:6px;
  width:100%;
  min-height:52px;
  border:4px solid #111;
  border-radius:12px;
  background:#00E5FF;
  color:#111;
  font-family:"Bangers",Impact,"Arial Black",sans-serif;
  font-size:1.55rem;
  letter-spacing:.04em;
  line-height:1;
  cursor:pointer;
  box-shadow:5px 5px 0 #111;
  padding:8px 12px;
}
.pc-submit:hover,.pc-submit:focus-visible{
  background:#FF3B9A;
  outline:3px solid #111;
  outline-offset:2px;
}
.pc-submit:active{transform:translate(2px,2px);box-shadow:3px 3px 0 #111}
.pc-submit:disabled{opacity:.7;cursor:wait}

.pc-thanks{
  display:none;
  text-align:center;
  padding:8px 4px 4px;
}
.pc-root.is-sent .pc-form,
.pc-root.is-sent .pc-sub{display:none}
.pc-root.is-sent .pc-thanks{display:block}
.pc-thanks p{
  margin:0;
  font-family:"Bangers",Impact,"Arial Black",sans-serif;
  font-size:clamp(1.5rem,6vw,2.1rem);
  line-height:1.15;
  letter-spacing:.03em;
  text-shadow:3px 3px 0 #111, 3px 0 0 #00E5FF;
}

.pc-root.is-open .pc-wrap{
  animation:pc-pop .42s cubic-bezier(.2,1.4,.4,1) both;
}
@media (prefers-reduced-motion:reduce){
  .pc-root.is-open .pc-wrap{animation:none}
}
@keyframes pc-pop{
  0%{transform:scale(.72) rotate(-4deg);opacity:0}
  70%{transform:scale(1.05) rotate(1deg);opacity:1}
  100%{transform:scale(1) rotate(0);opacity:1}
}

/* Keep the bubble usable on a 375px-wide phone, and on short screens. */
@media (max-width:400px){
  .pc-root{padding:6px}
  .pc-wrap{padding:30px 22px 28px}
  .pc-bubble{padding:24px 12px 18px;border-width:4px;box-shadow:6px 6px 0 #111}
  .pc-headline{margin-right:32px;font-size:clamp(1.55rem,8vw,2.1rem)}
  .pc-sub{font-size:14px;padding:8px 10px}
  .pc-bubble::after{left:20px;bottom:-18px;width:22px;height:22px}
}

@media (max-height:560px){
  .pc-wrap{padding:12px 8px 10px}
  .pc-headline{margin-bottom:8px}
  .pc-sub{margin-bottom:10px}
  .pc-burst,.pc-bubble::after{display:none}
  .pc-bubble{box-shadow:5px 5px 0 #111}
}
