/**
 * High Wycombe Escape Rooms — lean homepage layout
 * Know Escape–style showreel hero + Sandy-style game cards / chrome.
 * Linked from public/hwer/website/index.html
 */
:root {
  --kb-hw-blue: #0e90d0;
  --kb-hw-blue-soft: #6ec1e4;
  --kb-hw-ink: #020617;
  --kb-hw-slate: #0f172a;
  --kb-hw-card: #1e293b;
  --kb-hw-muted: #94a3b8;
  --kb-hw-line: rgba(255, 255, 255, 0.08);
  --kb-hw-text: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body.kb-lean-site,
body.home.kb-lean-site {
  margin: 0;
  background: var(--kb-hw-ink) !important;
  color: var(--kb-hw-text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
}

body.kb-lean-site .site-main,
body.kb-lean-site .page-content {
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
}

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
}
.skip-link.screen-reader-text:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2147483647;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

/* ── Hero (Know Escape showreel pattern) ── */
#home-hero.kb-hw-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--kb-hw-slate);
  color: #fff;
  text-align: center;
}

#home-hero .kb-hw-hero-showreel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--kb-hw-slate);
  z-index: 0;
}

#home-hero .kb-hw-hero-showreel__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  z-index: 0;
}

#home-hero .kb-hw-hero-showreel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 1;
}

#home-hero .kb-hw-hero-showreel video.is-playing {
  opacity: 1;
}

#home-hero .kb-hw-hero-showreel__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.72) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}

#home-hero .kb-hw-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.5rem 1.35rem 3.25rem;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home-hero .kb-hw-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
}

#home-hero .kb-hw-hero-subwrap {
  max-width: 48rem;
  width: 100%;
  margin: 0 auto 0.25rem;
  transition: opacity 0.32s ease;
  text-align: center;
  /* Reserve 2 lines so shorter rotating copy doesn’t shift the CTA */
  min-height: calc(3px + 1rem + (2 * 1.25 * clamp(1.25rem, 3.2vw, 2rem)) + 1.5rem);
}

#home-hero .kb-hw-hero-rule {
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--kb-hw-blue-soft), transparent);
  box-shadow: 0 0 18px rgba(14, 144, 208, 0.55);
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

#home-hero .kb-hw-hero-sub {
  margin: 0 0 1.5rem;
  /* Match knowescape.co.uk NetworkHubHeroSection: text-xl → lg:text-[2rem] */
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.25;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: calc(2 * 1.25 * 1em);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 520px) {
  /* Longest rotating lines can wrap to 3 on narrow screens */
  #home-hero .kb-hw-hero-subwrap {
    min-height: calc(3px + 1rem + (3 * 1.25 * clamp(1.25rem, 3.2vw, 2rem)) + 1.5rem);
  }
  #home-hero .kb-hw-hero-sub {
    min-height: calc(3 * 1.25 * 1em);
  }
}

#home-hero .kb-hw-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: var(--kb-hw-blue);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(14, 144, 208, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
  margin: 0 auto;
}
#home-hero .kb-hw-hero-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Coventry-style moving reviews under game cards */
#kb-hw-games .kb-hw-hero-reviews {
  width: 100%;
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 0 0.25rem;
}

#kb-hw-games .kb-hw-hero-reviews__viewport {
  position: relative;
  min-height: 6.5rem;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.15rem 0.95rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

#kb-hw-games .kb-hw-hero-reviews__slide {
  margin: 0;
  position: absolute;
  inset: 1rem 1.15rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(1.1rem);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#kb-hw-games .kb-hw-hero-reviews__slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#kb-hw-games .kb-hw-hero-reviews blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
}

#kb-hw-games .kb-hw-hero-reviews__quote {
  margin: 0 0 0.45rem;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--kb-hw-blue-soft);
  text-shadow: none;
}

#kb-hw-games .kb-hw-hero-reviews footer {
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 300;
  color: #ededed;
  opacity: 0.92;
}

#kb-hw-games .kb-hw-hero-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

#kb-hw-games .kb-hw-hero-reviews__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ededed;
  opacity: 0.85;
  cursor: pointer;
  transition: background-color 0.35s ease, transform 0.2s ease;
}

#kb-hw-games .kb-hw-hero-reviews__dots button.is-active,
#kb-hw-games .kb-hw-hero-reviews__dots button:hover {
  background: var(--kb-hw-blue);
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 640px) {
  #kb-hw-games .kb-hw-hero-reviews__viewport {
    min-height: 7.25rem;
    padding: 0.9rem 0.95rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-hero .kb-hw-hero-showreel video {
    display: none !important;
  }
  #home-hero .kb-hw-hero-subwrap {
    transition: none;
  }
  #kb-hw-games .kb-hw-hero-reviews__slide {
    transition: none;
  }
}

/* ── Games catalogue (Sandy twin — single vertical) ── */
#kb-hw-games {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.85rem;
  box-sizing: border-box;
}
#kb-hw-games * {
  box-sizing: border-box;
}
.kb-hw-games__head {
  text-align: center;
  margin: 0 0 1.5rem;
}
.kb-hw-games__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kb-hw-blue);
  font-weight: 700;
}
.kb-hw-games__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
}
.kb-hw-games__sub {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--kb-hw-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.kb-hw-games__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .kb-hw-games__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
.kb-hw-game {
  display: flex;
  flex-direction: column;
  background: var(--kb-hw-card);
  border: 1px solid var(--kb-hw-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kb-hw-game:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 144, 208, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.kb-hw-game__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1220;
}
.kb-hw-game__sticker {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.kb-hw-game:hover .kb-hw-game__sticker {
  transform: scale(1.04);
}
.kb-hw-game__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
}
.kb-hw-game__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}
.kb-hw-game__title a {
  color: #fff;
  text-decoration: none;
}
.kb-hw-game__title a:hover {
  color: var(--kb-hw-blue);
}
.kb-hw-game__meta {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--kb-hw-muted);
  font-weight: 600;
}
.kb-hw-game__teaser {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
  flex: 1;
}
.kb-hw-game__cta {
  display: block;
  margin-top: 0.3rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff !important;
  background: var(--kb-hw-blue);
  border-radius: 8px;
  padding: 0.68rem 0.85rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.kb-hw-game__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}
.kb-hw-games__foot {
  margin: 1.35rem 0 0;
  text-align: center;
}
.kb-hw-games__foot a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-hw-games__foot a:hover {
  color: var(--kb-hw-blue);
}

/* ── Rest of home ── */
#kb-hw-rest {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  box-sizing: border-box;
}
.kb-hw-section-spacer {
  height: 1.75rem;
}
.kb-hw-pane {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--kb-hw-line);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.45rem;
  margin: 0 0 1.1rem;
}
.kb-hw-pane__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kb-hw-blue);
  font-weight: 800;
}
.kb-hw-pane__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.15;
  color: #fff;
  font-weight: 900;
}
.kb-hw-pane__text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.55;
}
.kb-hw-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 720px) {
  .kb-hw-faq-grid {
    grid-template-columns: 1fr;
  }
}
.kb-hw-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
}
.kb-hw-why-grid li {
  position: relative;
  padding-left: 1.15rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.4;
}
.kb-hw-why-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--kb-hw-blue);
}
@media (max-width: 720px) {
  .kb-hw-why-grid {
    grid-template-columns: 1fr;
  }
}

.kb-hw-mail-cta {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 144, 208, 0.18), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(14, 144, 208, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  margin: 0 0 1.1rem;
  position: relative !important;
  top: 0 !important;
  transform: none !important;
}
@media (max-width: 720px) {
  .kb-hw-mail-cta {
    grid-template-columns: 1fr;
  }
}
.kb-hw-mail-cta__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kb-hw-blue-soft);
  font-weight: 800;
}
.kb-hw-mail-cta__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
.kb-hw-mail-cta__copy {
  margin: 0;
  color: var(--kb-hw-muted);
  font-size: 0.92rem;
}
.kb-hw-mail-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.78rem 1.05rem;
  background: var(--kb-hw-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}
.kb-hw-mail-open svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
.kb-hw-mail-open:hover {
  filter: brightness(1.08);
}

.kb-hw-find-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  margin-top: 0.85rem;
}
@media (max-width: 860px) {
  .kb-hw-find-grid {
    grid-template-columns: 1fr;
  }
}
.kb-hw-find-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--kb-hw-line);
  min-height: 240px;
  background: #0b1220;
}
.kb-hw-find-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}
.kb-hw-find-ways {
  display: grid;
  gap: 0.85rem;
}
.kb-hw-way {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--kb-hw-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.kb-hw-way__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.kb-hw-way__text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
}
.kb-hw-way__text a {
  color: var(--kb-hw-blue-soft);
}

/* Awards strip if present */
.kb-hw-awards,
[data-kb-hw-awards] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 0.25rem;
  opacity: 0.92;
}
.kb-hw-awards img,
[data-kb-hw-awards] img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* Mute noisy Autoptimize leftovers on lean home */
body.kb-lean-site .kbex,
body.kb-lean-site .kbex-location-header,
body.kb-lean-site .kbex-location-footer {
  display: none !important;
}


/* ── Site footer ── */
.kb-hw-site-footer {
  --kb-hw-blue: #0e90d0;
  --kb-hw-muted: #94a3b8;
  position: relative;
  margin-top: 0;
  /* Must stay visible — overflow:hidden clipped the mailing-list popup */
  overflow: visible;
  background: #020617;
  color: #cbd5e1;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.kb-hw-site-footer * { box-sizing: border-box; }
.kb-hw-site-footer a { color: inherit; text-decoration: none; }
.kb-hw-site-footer a:hover { color: #fff; }
.kb-hw-site-footer__accent {
  position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--kb-hw-blue), transparent);
  pointer-events: none;
}
.kb-hw-site-footer__fx {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.kb-hw-site-footer__glow {
  position: absolute; top: -6rem; right: -2rem; width: 22rem; height: 22rem;
  border-radius: 50%; background: var(--kb-hw-blue); opacity: .14; filter: blur(64px);
  pointer-events: none;
}
.kb-hw-site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.35rem 1.25rem;
}
.kb-hw-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: 1.5rem 2rem;
  margin-bottom: .35rem;
  align-items: start;
}
.kb-hw-site-footer__visit-block {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 1.35fr);
  gap: 1rem 1.15rem;
  align-items: stretch;
}
.kb-hw-site-footer__venue {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0b1220;
  min-height: 11rem;
  align-self: stretch;
}
.kb-hw-site-footer__venue img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.kb-hw-site-footer__logo {
  display: block; width: 200px; max-width: 100%; height: auto; margin-bottom: 1rem;
}
.kb-hw-site-footer__blurb {
  margin: 0 0 1rem; max-width: 22rem;
  color: #94a3b8; font-size: .92rem; line-height: 1.55;
}
.kb-hw-site-footer__social {
  display: flex; gap: .65rem; align-items: center;
}
.kb-hw-site-footer__social a {
  display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(148,163,184,.25); color: #e2e8f0;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.kb-hw-site-footer__social a:hover {
  border-color: var(--kb-hw-blue); background: rgba(14,144,208,.12); color: #fff;
}
.kb-hw-site-footer__social svg { width: 14px; height: 14px; fill: currentColor; }
.kb-hw-site-footer__col-title {
  margin: 0 0 .9rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #64748b;
}
.kb-hw-site-footer__links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem;
}
.kb-hw-site-footer__links a {
  font-size: .92rem; color: #cbd5e1; transition: color .15s ease;
}
.kb-hw-site-footer__links a:hover { color: #fff; }
.kb-hw-site-footer__contact {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .7rem; font-size: .9rem; line-height: 1.45; color: #e2e8f0;
}
.kb-hw-site-footer__contact a { color: #e2e8f0; }
.kb-hw-site-footer__contact a:hover { color: #7dd3fc; }
.kb-hw-site-footer__contact span {
  display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #64748b; margin-bottom: .15rem; font-weight: 700;
}

/* Mailing list CTA — own row so it never overlaps Explore/Visit columns.
   Kill legacy Kbex/Autoptimize #mailinglist { top: -105px } which pulled
   this block up over the footer columns. */
#mailinglist.kb-hw-mail-cta,
.kb-hw-mail-cta#mailinglist,
.kb-hw-site-footer #mailinglist {
  display: grid !important;
  position: relative !important;
  top: 0 !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-top: 1.25rem !important;
  clear: both !important;
  float: none !important;
  z-index: 1;
}
/* Homepage: CTA sits in #kb-hw-rest before Visit us — match pane spacing */
#kb-hw-rest > #mailinglist.kb-hw-mail-cta,
#kb-hw-rest > .kb-hw-mail-cta {
  margin: 0 !important;
  width: 100%;
  max-width: none;
}
.kb-hw-mail-cta {
  margin: 1.25rem 0 0;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(14,144,208,.35);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(14,144,208,.22), transparent 55%),
    linear-gradient(180deg, rgba(30,41,59,.95), rgba(15,23,42,.92));
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .85rem 1.25rem;
  align-items: center;
  max-width: none;
  width: 100%;
}
.kb-hw-mail-cta__text { min-width: 0; }
.kb-hw-mail-cta__eyebrow {
  margin: 0 0 .3rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #7dd3fc;
}
.kb-hw-mail-cta__title {
  margin: 0 0 .35rem; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.25;
}
.kb-hw-mail-cta__copy {
  margin: 0; color: #94a3b8; font-size: .86rem; line-height: 1.4;
}
.kb-hw-mail-open {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.15rem; border-radius: 10px;
  white-space: nowrap;
  background: var(--kb-hw-blue); color: #0f172a; font: inherit; font-weight: 800; font-size: .92rem;
  transition: filter .15s ease, transform .15s ease;
}
.kb-hw-mail-open:hover { filter: brightness(1.08); transform: translateY(-1px); }
.kb-hw-mail-open svg { width: 1rem; height: 1rem; fill: currentColor; flex-shrink: 0; }

/* Newsletter popup (ported to document.body so footer overflow cannot clip it) */
#kb-hw-mail-modal[hidden] { display: none !important; }
#kb-hw-mail-modal {
  position: fixed; inset: 0; z-index: 2147483100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.kb-hw-mail-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kb-hw-mail-modal__dialog {
  position: relative; z-index: 1;
  width: min(100%, 26rem);
  max-height: min(94vh, 36rem);
  overflow: auto;
  border-radius: 1.15rem;
  border: 1px solid rgba(148,163,184,.22);
  background:
    radial-gradient(90% 70% at 10% -10%, rgba(14,144,208,.35), transparent 55%),
    radial-gradient(80% 60% at 110% 0%, rgba(56,189,248,.12), transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  padding: 1.35rem 1.25rem 1.25rem;
  animation: kbHwMailIn .28s ease-out;
}
@keyframes kbHwMailIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.kb-hw-mail-modal__close {
  position: absolute; top: .7rem; right: .7rem;
  appearance: none; border: 0; cursor: pointer;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: rgba(255,255,255,.06); color: #e2e8f0;
  font-size: 1.25rem; line-height: 1;
  display: grid; place-items: center;
}
.kb-hw-mail-modal__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.kb-hw-mail-modal__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 .75rem; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid rgba(14,144,208,.4);
  background: rgba(14,144,208,.12);
  color: #7dd3fc; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.kb-hw-mail-modal__title {
  margin: 0 0 .4rem; color: #fff; font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.kb-hw-mail-modal__sub {
  margin: 0 0 1rem; color: #94a3b8; font-size: .95rem; line-height: 1.5;
}
.kb-hw-mail-modal__form { margin: 0; }
.kb-hw-mail-modal__err {
  display: none; margin: 0 0 .75rem; padding: .65rem .75rem;
  border-radius: 10px; border: 1px solid rgba(248,113,113,.35);
  background: rgba(127,29,29,.35); color: #fecaca; font-size: .85rem; line-height: 1.4;
}
.kb-hw-mail-modal__err[data-show="1"] { display: block; }
.kb-hw-mail-modal__field { margin: 0 0 .75rem; }
.kb-hw-mail-modal__field label {
  display: block; margin: 0 0 .35rem;
  font-size: .78rem; font-weight: 700; color: #94a3b8; letter-spacing: .02em;
}
.kb-hw-mail-modal__field input {
  width: 100%; box-sizing: border-box;
  appearance: none; border: 1px solid rgba(148,163,184,.28);
  border-radius: 10px; padding: .75rem .9rem;
  background: rgba(15,23,42,.85); color: #fff;
  font: inherit; font-size: .95rem;
}
.kb-hw-mail-modal__field input:focus {
  outline: 2px solid rgba(14,144,208,.55); outline-offset: 1px;
  border-color: rgba(14,144,208,.7);
}
.kb-hw-mail-modal__math {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.kb-hw-mail-modal__math-q {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 .85rem; border-radius: 10px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(30,41,59,.85); color: #e2e8f0; font-weight: 700;
}
.kb-hw-mail-modal__math input { width: 7.5rem; }
.kb-hw-mail-modal__hp {
  position: absolute !important; left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important; pointer-events: none !important;
}
.kb-hw-mail-modal__submit {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  min-height: 2.85rem; margin-top: .15rem; border-radius: 10px;
  background: var(--kb-hw-blue); color: #0f172a;
  font: inherit; font-weight: 800; font-size: .98rem;
  transition: filter .15s ease, opacity .15s ease;
}
.kb-hw-mail-modal__submit:hover { filter: brightness(1.08); }
.kb-hw-mail-modal__submit:disabled { opacity: .65; cursor: wait; }
.kb-hw-mail-modal__thanks {
  margin: 0; color: #cbd5e1; font-size: .98rem; line-height: 1.5;
}
.kb-hw-mail-modal__thanks strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.kb-hw-mail-modal__note {
  margin: .85rem 0 0; color: #64748b; font-size: .75rem; line-height: 1.35;
}
body.kb-hw-mail-modal-is-open { overflow: hidden; }
#mailinglist { scroll-margin-top: calc(var(--kb-hw-book-flick-h, 0px) + 90px); }

.kb-hw-site-footer__licence {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas:
    "mark actions"
    "main main";
  gap: .75rem 1.25rem;
  align-items: center;
  padding: .85rem 0 0;
  margin-top: .25rem;
  border-top: 1px solid rgba(148,163,184,.14);
}
.kb-hw-site-footer__licence > a:first-child {
  grid-area: mark;
  display: block;
  line-height: 0;
}
.kb-hw-site-footer__licence-mark {
  flex: none;
  display: block;
  width: 210px;
  max-width: min(210px, 56vw);
  height: auto;
  opacity: 1;
}
.kb-hw-site-footer__licence-main {
  grid-area: main;
  flex: none;
  min-width: 0;
  width: 100%;
}
.kb-hw-site-footer__licence-copy {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 52rem;
}
.kb-hw-site-footer__licence-actions {
  grid-area: actions;
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-left: 0;
  justify-content: flex-end;
  justify-self: end;
  align-items: center;
  align-self: center;
}
.kb-hw-site-footer__licence-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .5rem 1rem;
  border-radius: .65rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.kb-hw-site-footer__licence-btn--primary {
  background: var(--kb-hw-blue);
  color: #0f172a !important;
  border: 1px solid transparent;
}
.kb-hw-site-footer__licence-btn--primary:hover {
  filter: brightness(1.08);
  color: #0f172a !important;
}
.kb-hw-site-footer__licence-btn--ghost {
  background: transparent;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148,163,184,.35);
}
.kb-hw-site-footer__licence-btn--ghost:hover {
  border-color: rgba(125,211,252,.55);
  background: rgba(14,144,208,.12);
  color: #fff !important;
}

.kb-hw-site-footer__bottom {
  margin-top: .85rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(148,163,184,.12);
  display: grid;
  gap: .7rem;
}
.kb-hw-site-footer__meta {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: #94a3b8;
}
.kb-hw-site-footer__meta strong { color: #cbd5e1; font-weight: 700; }
.kb-hw-site-footer__meta a {
  color: #7dd3fc !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  line-height: inherit !important;
}
.kb-hw-site-footer__meta a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 2px; }

.kb-hw-site-footer__nav-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kb-hw-site-footer__nav-legal a,
.kb-hw-site-footer__nav-legal button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: #94a3b8;
  font: inherit;
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.kb-hw-site-footer__nav-legal a:hover,
.kb-hw-site-footer__nav-legal button:hover { color: #fff; }

.kb-hw-site-footer__brand-details {
  margin: 0;
  border: 0;
  padding: 0;
}
.kb-hw-site-footer__brand-details summary {
  cursor: pointer;
  list-style: none;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
}
.kb-hw-site-footer__brand-details summary::-webkit-details-marker { display: none; }
.kb-hw-site-footer__brand-details summary::after {
  content: " +";
  color: #64748b;
  font-weight: 700;
}
.kb-hw-site-footer__brand-details[open] summary::after { content: " −"; }
.kb-hw-site-footer__brand-body {
  margin-top: .65rem;
  display: grid;
  gap: .55rem;
}
.kb-hw-site-footer__brand-body p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.5;
  color: #64748b;
}

.kb-hw-site-footer__copy {
  margin: 0;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .kb-hw-site-footer__grid { grid-template-columns: 1fr 1fr; }
  .kb-hw-site-footer__visit-block { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .kb-hw-mail-cta { grid-template-columns: 1fr; }
  .kb-hw-mail-open { width: 100%; }
  .kb-hw-site-footer__visit-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kb-hw-site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .kb-hw-site-footer__licence {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "actions"
      "main";
    gap: .75rem;
    align-items: start;
  }
  .kb-hw-site-footer__licence-mark {
    width: 180px;
    max-width: 70%;
  }
  .kb-hw-site-footer__licence-actions {
    justify-content: flex-start;
    justify-self: start;
  }
  .kb-hw-site-footer__licence-copy {
    font-size: .84rem;
  }
}

/* Hide leftover Kbex sticky offers bar if any remnant exists outside footer */
.kbex-element-9f6b9d7 { display: none !important; }


/* Homepage FAQ accordion (native details — one open at a time via kb-hw-faq-accordion.js) */
.kb-hw-home-faq,
#faq.kb-hw-home-faq {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.5rem 1rem 0.25rem;
  /* sticky lab bar + home header — so FAQ nav lands on “What is an escape room?” */
  scroll-margin-top: calc(var(--kb-hw-book-flick-h, 0px) + 120px);
}
@media (max-width: 920px) {
  .kb-hw-home-faq,
  #faq.kb-hw-home-faq {
    scroll-margin-top: calc(var(--kb-hw-book-flick-h, 0px) + 130px);
  }
}
.kb-hw-home-faq__inner {
  max-width: 820px;
  margin: 0 auto;
}

.kb-hw-faq__list{display:grid;gap:.55rem;margin-top:0;max-width:820px;margin-left:auto;margin-right:auto}
.kb-hw-faq__item{
  border:1px solid rgba(255,255,255,.12);border-radius:14px;
  background:rgba(15,23,42,.72);overflow:hidden;
}
.kb-hw-faq__q{
  cursor:pointer;list-style:none;padding:1rem 1.1rem;font-weight:800;font-size:1rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#f8fafc;
}
.kb-hw-faq__q::-webkit-details-marker{display:none}
.kb-hw-faq__q::after{content:"+";color:#38bdf8;font-weight:900;font-size:1.2rem;flex:0 0 auto}
.kb-hw-faq__item[open] .kb-hw-faq__q::after{content:"–"}
.kb-hw-faq__a{padding:0 1.1rem 1.05rem;color:#e2e8f0}
.kb-hw-faq__a p{margin:0 0 .65rem;line-height:1.55}
.kb-hw-faq__a p:last-child{margin-bottom:0}
.kb-hw-faq__a a{color:#38bdf8;font-weight:700;text-decoration:underline}

