/* Home page invitation to HR-LAB Headquarters (/hq/). Light and Dark share one
   geometry; colours come from the site's own tokens. */
html.hq-invite-open,
html.hq-invite-open body { overflow: hidden; }

.hq-invite {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(44, 36, 28, .34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .26s ease;
}
html[data-theme="dark"] .hq-invite { background: rgba(0, 4, 10, .62); }
.hq-invite.is-open { opacity: 1; }
.hq-invite.is-leaving { opacity: 0; transition-duration: .2s; }

.hq-invite__card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--text);
  background: var(--surface-strong, #fffdfa);
  box-shadow: 0 30px 80px rgba(46, 36, 26, .28);
  transform: translateY(12px) scale(.985);
  transition: transform .26s ease, background-color .3s ease, border-color .3s ease;
}
html[data-theme="dark"] .hq-invite__card { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.hq-invite.is-open .hq-invite__card { transform: none; }

.hq-invite__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
  background: var(--bg-deep, #eee7dd);
}
.hq-invite__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hq-invite__content { padding: 22px 28px 14px; text-align: center; }
.hq-invite__eyebrow {
  margin: 0 0 6px;
  font: 700 12px/1.4 Manrope, "Noto Sans Thai", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm-dark, #866b4f);
}
.hq-invite h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-strong, #201b17);
}
.hq-invite__body { max-width: 440px; margin: 0 auto 18px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.hq-invite__nowrap { white-space: nowrap; }

.hq-invite__enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fffaf2;
  background: #2f2821;
  text-decoration: none;
  transition: filter .2s ease, background-color .3s ease, color .3s ease;
}
html[data-theme="dark"] .hq-invite__enter { color: #1b140b; background: #e2bf86; }
.hq-invite__enter:hover { filter: brightness(1.12); }
.hq-invite__enter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.hq-invite__skip {
  display: block;
  min-height: 44px;
  margin: 6px auto 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.hq-invite__skip:hover { color: var(--text-strong, #201b17); text-decoration: underline; text-underline-offset: 3px; }
.hq-invite__enter:focus-visible,
.hq-invite__skip:focus-visible { outline: 3px solid var(--blue, #174ce0); outline-offset: 3px; }

@media (max-width: 560px) {
  .hq-invite__card { border-radius: 24px; }
  .hq-invite__media { border-radius: 23px 23px 0 0; }
  .hq-invite__content { padding: 18px 18px 10px; }
  .hq-invite__body { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hq-invite, .hq-invite__card { transition: none; }
}
