/* Tech Expo popup (Figma: TECH EXPO 407:1051). Desktop-first: base = 1920, then max-width queries. */

html.sqp-open { overflow: hidden; }

.sqp {
  --sqp-font: "Futura PT", "Trebuchet MS", Arial, sans-serif;
  width: fit-content;
  height: fit-content;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sqp-font);
}
.sqp::backdrop {
  background: rgba(0, 13, 37, 0.3);
  -webkit-backdrop-filter: blur(21.5px);
  backdrop-filter: blur(21.5px);
}
.sqp[open] .sqp__panel { animation: sqp-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes sqp-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.sqp *,
.sqp *::before,
.sqp *::after { box-sizing: border-box; }
.sqp :where(p, h2, ul, dl, dt, dd, form) { margin: 0; padding: 0; }
.sqp :where(ul) { list-style: none; }
.sqp :where(img) { display: block; max-width: none; }

/* Panel: 630 x 659, background art placed exactly as in the design. */
.sqp__panel { position: relative; width: 630px; height: 659px; padding: 35px; }
/* The panel takes focus when the popup opens (so no button shows a focus ring straight away). */
.sqp__panel:focus { outline: none; }
.sqp__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sqp .sqp__bg img { position: absolute; top: -4.85%; left: -2.87%; width: 105.91%; height: 110.84%; }

.sqp__content { position: relative; display: flex; flex-direction: column; gap: 16px; width: 560px; }

/* White card: "We're exhibiting at" + Booth, then date and place. */
.sqp__card { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 20px; background: #fff; }
.sqp__row { display: flex; gap: 16px; align-items: stretch; }
.sqp__expo {
  position: relative;
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
  background: #e9f1ff;
}
.sqp__expo-text { width: 127px; color: #000; font-family: var(--sqp-font); font-size: 24px; font-weight: 500; line-height: normal; }
.sqp .sqp__expo-logo { width: 116px; height: 89px; object-fit: cover; }
.sqp__squiggle { position: absolute; top: 8px; left: 107px; display: flex; align-items: center; justify-content: center; width: 69.432px; height: 69.432px; }
.sqp .sqp__squiggle img { width: 50px; height: 50px; transform: rotate(-55.91deg); }

.sqp__booth {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  border: 2px solid #009fff;
  border-radius: 16px;
  background: #001232;
  text-align: center;
}
.sqp__glow { position: absolute; top: -46px; left: -47px; width: 84px; height: 82px; pointer-events: none; }
.sqp .sqp__glow img { position: absolute; top: -80px; left: -80px; width: 244px; height: 242px; }
.sqp__booth-text { position: relative; color: #fff; line-height: normal; white-space: nowrap; }
.sqp__booth-text span { display: block; font-family: var(--sqp-font); font-size: 32px; font-weight: 500; letter-spacing: 5px; }
.sqp__booth-text strong { display: block; font-family: var(--sqp-font); font-size: 36px; font-weight: 700; letter-spacing: 1px; }

.sqp__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; padding: 4px 8px; border-radius: 6px; background: #e9f1ff; }
.sqp__meta li { display: flex; align-items: center; gap: 6px; color: #000; font-family: var(--sqp-font); font-size: 16px; font-weight: 500; line-height: normal; white-space: nowrap; }
.sqp .sqp__meta img { width: 16px; height: 16px; }

/* Stats */
.sqp__stats { display: flex; gap: 10px; }
.sqp__stats > div {
  display: flex;
  flex: 1 0 0;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0, 18, 50, 0.4);
  color: #fff;
  letter-spacing: 1px;
  line-height: normal;
  text-align: center;
}
.sqp__stats dd { margin: 0; font-family: var(--sqp-font); font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sqp__stats dt { font-family: var(--sqp-font); font-size: 16px; font-weight: 500; text-transform: uppercase; }

/* Heading, text and button */
.sqp__text { display: flex; flex-direction: column; gap: 10px; color: #fff; text-align: center; }
.sqp .sqp__title { color: #fff; font-family: var(--sqp-font); font-size: 28px; font-weight: 700; line-height: normal; letter-spacing: 0; text-wrap: balance; }
.sqp__text p { font-family: "Futura PT Book", var(--sqp-font); font-size: 18px; font-weight: 400; line-height: normal; }
.sqp .sqp__btn {
  align-self: center;
  margin-top: 4px;
  padding: 12px 50px;
  border-radius: 43px;
  background: #ffaf11;
  color: #000;
  font-family: var(--sqp-font);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
/* Hover: a light sheen sweeps across once and a soft ring appears. The button itself never moves. */
.sqp .sqp__btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.sqp .sqp__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sqp .sqp__btn:focus-visible::before { transform: translateX(400%) skewX(-20deg); transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Close button, overlapping the top-right corner as in the design. */
.sqp__close-form { position: absolute; top: -13px; right: -15px; z-index: 2; }
.sqp .sqp__close {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.sqp .sqp__close-bg { position: absolute; top: 0; left: 0; width: 48px; height: 48px; }
.sqp .sqp__close-x { position: absolute; top: 11.08px; left: 11.08px; width: 25.8462px; height: 25.8462px; }
.sqp .sqp__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (hover: hover) {
  .sqp .sqp__btn:hover { background: #ffbd2e; color: #000; box-shadow: 0 0 0 4px rgba(255, 175, 17, 0.35), 0 10px 24px rgba(255, 175, 17, 0.28); }
  .sqp .sqp__btn:hover::before { transform: translateX(400%) skewX(-20deg); transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .sqp .sqp__close:hover { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .sqp[open] .sqp__panel { animation: none; }
  .sqp .sqp__btn { transition: none; }
  .sqp .sqp__btn::before { display: none; }
}

/* Phones: full-width panel, stacked card, background art covers the panel. */
@media only screen and (max-width: 575px) {
  .sqp { max-height: 100svh; overflow-y: auto; }
  .sqp__panel {
    width: calc(100vw - 24px);
    height: auto;
    margin: 12px 0;
    padding: 60px 16px 80px;
    overflow: hidden;
    border: 2px solid #1e8bff;
    border-radius: 22px;
    background: #0a1f5c;
  }
  /* Cover the panel and scale slightly, so the artwork's transparent edges stay outside the frame. */
  .sqp .sqp__bg img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.14); }
  .sqp__content { width: 100%; gap: 14px; }
  .sqp__card { gap: 12px; padding: 12px; border-radius: 16px; }
  .sqp__row { flex-direction: column; gap: 12px; }
  .sqp__expo { gap: 16px; padding: 14px; }
  .sqp__expo-text { width: auto; max-width: 6.2em; font-size: 20px; text-wrap: balance; }
  .sqp .sqp__expo-logo { width: 96px; height: 74px; }
  .sqp__squiggle { display: none; }
  .sqp__booth { flex-direction: row; padding: 12px; }
  .sqp__booth-text { display: flex; align-items: baseline; gap: 12px; }
  .sqp__booth-text span { font-size: 20px; letter-spacing: 4px; }
  .sqp__booth-text strong { font-size: 26px; }
  .sqp__meta { gap: 4px 14px; padding: 6px 8px; }
  .sqp__meta li { font-size: 16px; }
  .sqp__stats { gap: 6px; }
  .sqp__stats > div { padding: 8px 4px; letter-spacing: 0.5px; }
  .sqp__stats dd { font-size: 22px; }
  .sqp__stats dt { font-size: 12px; }
  .sqp .sqp__title { font-size: 22px; }
  .sqp__text p { font-size: 16px; line-height: 1.45; }
  .sqp .sqp__btn { align-self: stretch; padding: 12px 20px; }
  .sqp__close-form { top: 6px; right: 8px; }
}

@media only screen and (max-width: 374px) {
  .sqp__expo { gap: 12px; }
  .sqp__expo-text { font-size: 18px; }
  .sqp .sqp__expo-logo { width: 84px; height: 64px; }
  .sqp__stats dd { font-size: 19px; }
}
