/* ---------- Base ---------- */
*,
*::before,
*::after{
  box-sizing: border-box;
}

:root{
  --base-bg: #050505;
  --text: #f1eee8;
  --text-soft: rgba(241,238,232,.82);
  --text-softer: rgba(241,238,232,.60);

  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  --surface: rgba(255,255,255,.05);
  --surface-strong: rgba(255,255,255,.10);
  --surface-stroke: rgba(255,255,255,.12);

  --accent: #9f2d2d;

  --info-strength: 1;
  --info-fade-v: 18%;
  --info-fade-h: 10%;

  --vh: 1vh;
}

html{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(130, 25, 25, .22), transparent 34%),
    linear-gradient(180deg, #070707 0%, #030303 55%, #090909 100%);
  position: relative;
}

/* ---------- WordPress / theme wrapper reset ---------- */
html,
body,
#page,
#content,
.site,
.site-content,
.site-main,
.content,
.content-area,
.entry-content,
.post-content,
.page-content,
.wp-site-blocks,
.wp-block-group,
.wp-block-post-content,
.wp-block-shortcode,
.wp-block-code,
.block-editor-block-list__layout,
.is-layout-flow,
.is-layout-constrained,
main,
article,
section{
  max-width: 100%;
  min-width: 0;
}

#page,
#content,
.site,
.site-content,
.site-main,
.content,
.content-area,
.entry-content,
.post-content,
.page-content,
.wp-site-blocks,
.wp-block-group,
.wp-block-post-content,
.wp-block-shortcode,
.wp-block-code,
.block-editor-block-list__layout,
.is-layout-flow,
.is-layout-constrained,
main,
article,
section{
  overflow-x: hidden !important;
}

#page,
#content,
.site,
.site-content,
.site-main,
.content,
.content-area,
.entry-content,
.post-content,
.page-content,
.wp-site-blocks,
.wp-block-group,
.wp-block-post-content,
.wp-block-shortcode,
.wp-block-code,
.block-editor-block-list__layout,
.is-layout-flow,
.is-layout-constrained,
main{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/* ---------- Lock only when overlay is open ---------- */
html.is-locked,
body.is-locked{
  overflow: hidden !important;
  height: 100% !important;
}

img,
svg,
video,
canvas,
iframe{
  max-width: 100%;
}

/* ---------- Topbar ---------- */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px 0;
  transition:
    background .22s ease,
    backdrop-filter .22s ease,
    -webkit-backdrop-filter .22s ease,
    box-shadow .22s ease,
    padding .22s ease;
}

.topbar.is-scrolled{
  background:
    linear-gradient(
      to bottom,
      rgba(6,6,6,.94),
      rgba(6,6,6,.84)
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  padding: 10px 14px 10px;
}

.topbar__nav{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.topbar__brand{
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  flex: 0 0 auto;
}

.topbar__logo{
  height: 50px;
  width: auto;
  display: block;
  opacity: .88;
  filter: grayscale(1) contrast(1.1) brightness(.92);
  transform: translateY(1px);
  transition: opacity .15s ease, transform .15s ease, filter .15s ease;
}

.topbar__brand:hover .topbar__logo{
  opacity: 1;
  transform: translateY(0);
  filter: grayscale(.6) contrast(1.15) brightness(.98);
}

.topbar__menu{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.topbar__link{
  position: relative;
  display: block;
  padding-top: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity .15s ease, color .15s ease;
}

.topbar__link:hover{
  opacity: .72;
  color: #fff;
}

.topbar__link::before{
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Burger ---------- */
.topbar__burger{
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-left: 10px;
}

.topbar__burger span{
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(255,255,255,.88);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

.topbar__burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(5.5px) rotate(45deg);
}

.topbar__burger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}

.topbar__burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Overlay moving text ---------- */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.overlay__text{
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .9;
  font-size: clamp(72px, 16vw, 240px);
  transform: translate3d(0,0,0);
  will-change: transform;
  padding-left: 2vw;
  color: #fff;
  opacity: .07;
  transition: opacity .35s ease;
}

#overlayText{
  display: inline-flex;
  gap: 0;
}

#overlayText .marquee-track{
  display: inline-block;
  white-space: nowrap;
}

/* ---------- Page + Scenes ---------- */
.bstil-page{
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  padding-top: 60px;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.scene{
  min-height: auto;
  padding: 8vh 6vw 18vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
}

.scene:first-of-type{
  min-height: 100svh;
}

/* ---------- Tagline ---------- */
.tagline{
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 32px;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
}

.tagline__text{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tagline__line{
  font-size: clamp(26px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: rgba(255,255,255,.84);
  text-shadow:
    0 10px 45px rgba(0,0,0,.28),
    0 0 24px rgba(159, 45, 45, .15);
}

.tagline__line--strong{
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: rgba(255,255,255,.96);
}

/* ---------- Scene info background ---------- */
.scene--info{
  padding-top: 12vh;
  isolation: isolate;
  overflow: hidden;
}

.scene--info::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 50% 12%,
      rgba(128, 23, 23, calc(.34 * var(--info-strength))),
      rgba(0,0,0,0) 62%),
    radial-gradient(980px 720px at 18% 42%,
      rgba(80, 20, 20, calc(.28 * var(--info-strength))),
      rgba(0,0,0,0) 64%),
    radial-gradient(980px 720px at 82% 58%,
      rgba(180, 50, 50, calc(.16 * var(--info-strength))),
      rgba(0,0,0,0) 66%),
    radial-gradient(1200px 900px at 55% 55%,
      rgba(255,255,255,.03),
      rgba(255,255,255,0) 60%),
    linear-gradient(
      to bottom,
      rgba(15, 15, 15, .76),
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,0) 60%,
      rgba(15, 15, 15, .76)
    );
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,1) var(--info-fade-v),
      rgba(0,0,0,1) calc(100% - var(--info-fade-v)),
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,1) var(--info-fade-h),
      rgba(0,0,0,1) calc(100% - var(--info-fade-h)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,1) var(--info-fade-v),
      rgba(0,0,0,1) calc(100% - var(--info-fade-v)),
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,1) var(--info-fade-h),
      rgba(0,0,0,1) calc(100% - var(--info-fade-h)),
      transparent 100%
    );
  mask-composite: intersect;
  opacity: 1;
  filter: saturate(1.02) contrast(1.04);
}

.scene--info > *{
  position: relative;
  z-index: 1;
}

/* ---------- Grid ---------- */
.grid{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.grid.roomy.roomy--4{
  gap: 6.2vw;
}

.row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.4vw;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tile{
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.tile[data-size="s"]  { max-width: 15%; }
.tile[data-size="m"]  { max-width: 22%; }
.tile[data-size="l"]  { max-width: 28%; }
.tile[data-size="xl"] { max-width: 34%; }

.tile img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
  transform: translateZ(0);
  filter: grayscale(.2) contrast(1.06) brightness(.8);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

/* ---------- Lazy fade-in ---------- */
.lazy{
  opacity: 0;
  filter: blur(10px) grayscale(.4) brightness(.72);
  transform: scale(1.01);
  transition: opacity .75s ease, filter .75s ease, transform .75s ease;
}

.lazy.is-loaded{
  opacity: 1;
  filter: blur(0) grayscale(.2) contrast(1.06) brightness(.8);
  transform: scale(1);
}

/* ---------- Center title ---------- */
.centerTitle{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 25;
  pointer-events: none;
}

.centerTitle__kicker{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  opacity: .72;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.centerTitle__sub{
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .68;
  text-align: center;
  color: var(--text);
}

/* ---------- Hero watermark ---------- */
.heroMark{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  opacity: .08;
  pointer-events: none;
  overflow: hidden;
  max-width: 100%;
}

.heroMark__logo{
  width: min(70vw, 1200px);
  max-width: 100%;
  filter: grayscale(1) contrast(1.05) brightness(.8);
  transform: translateY(10px);
}

/* ---------- Warm info content ---------- */
.warm{
  margin-top: 9vh;
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.warm__inner{
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  padding: clamp(14px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.warm__left,
.warm__right{
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.team{
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 10px;
  align-items: start;
}

.team__card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: none;
  min-width: 0;
  max-width: 100%;
}

.team__img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 14px;
  background: transparent;
  filter: grayscale(.22) contrast(1.05) brightness(.82);
  margin-bottom: 12px;
}

.team__name{
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: rgba(255,255,255,.94);
  line-height: 1.2;
  margin-bottom: 4px;
}

.team__role{
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,.62);
  line-height: 1.4;
  margin-bottom: 8px;
}

.team__contact{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
}

.team__link{
  color: rgba(255,255,255,.86);
  text-decoration: none;
  border: 0;
  padding-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team__link:hover{
  text-decoration: underline;
}

.team__sep{
  display: none;
}

/* ---------- Content ---------- */
.warm__eyebrow{
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .55;
  margin: 0 0 12px;
  color: var(--text);
  max-width: 100%;
}

.warm__title{
  margin: 0 0 18px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.warm__list li{
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: transparent;
  border-radius: 0;
  min-width: 0;
  max-width: 100%;
}

.warm__list span{
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.92);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__list em{
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.warm__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(159,45,45,.18);
  color: rgba(255,255,255,.94);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.warm__btn:hover{
  transform: translateY(-1px);
  background: rgba(159,45,45,.28);
  border-color: rgba(255,255,255,.22);
}

.warm__btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.76);
}

/* ---------- About typography ---------- */
.warm__p{
  margin: 0 0 14px;
  line-height: 1.8;
  opacity: .90;
  max-width: 60ch;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.chip{
  max-width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-stroke);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  letter-spacing: .02em;
  opacity: .92;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__stats{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.stat{
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--surface-stroke);
  background: rgba(255,255,255,.05);
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat__n{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 18px;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat__t{
  margin-top: 6px;
  opacity: .72;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warm__note{
  opacity: .78;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.footer{
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  width: calc(100% - 28px);
  max-width: calc(100% - 28px);
  margin: 40px 14px 18px;
  overflow-x: hidden;
}

.footer::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 1px;
  background: var(--line-strong);
  pointer-events: none;
}

.footer__left,
.footer__center,
.footer__right{
  min-width: 0;
}

.footer__small{
  font-size: 12px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  word-break: break-word;
  text-transform: lowercase;
}

.footer__small:hover{
  text-decoration: underline;
}

.footer__left{
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.footer__center{
  justify-self: center;
  min-width: 0;
}

.footer__right{
  justify-self: end;
  display: flex;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.footer__icon{
  width: 26px;
  height: 26px;
  min-width: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- TYPEFORM FULLSCREEN OVERLAY ---------- */
.tf{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  overflow: hidden;
}

.tf.is-open{
  opacity: 1;
  pointer-events: auto;
}

.tf__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tf__panel{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: calc(var(--vh) * 100);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.95);
  overflow: hidden;
}

.tf__top{
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.tf__title{
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.tf__close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.tf__close:hover{
  transform: scale(1.03);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
}

.tf__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#tfMount{
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#tfMount iframe{
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: auto !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){
  .topbar__menu{
    gap: 8px;
  }

  .topbar__link{
    font-size: 13px;
  }
}

@media (max-width: 900px){
  .topbar{
    padding: 10px 14px 0;
  }

  .topbar.is-scrolled{
    padding: 10px 14px 10px;
  }

  .topbar__nav{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .topbar__menu{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;

    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;

    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(10,10,10,.96);
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
  }

  .topbar__menu.is-open{
    display: flex;
  }

  .topbar__menu .topbar__link{
    width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
  }

  .topbar__menu .topbar__link::before{
    display: none;
  }

  .topbar__menu .topbar__link + .topbar__link{
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .topbar__burger{
    display: inline-flex;
    justify-self: end;
    margin-left: 8px;
  }

  .grid.roomy.roomy--4{ gap: 7vw; }
  .row{ gap: 6vw; }

  .tile[data-size="s"]  { max-width: 34%; }
  .tile[data-size="m"]  { max-width: 44%; }
  .tile[data-size="l"]  { max-width: 52%; }
  .tile[data-size="xl"] { max-width: 58%; }

  .team{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warm__inner{
    grid-template-columns: 1fr;
  }

  .warm__left{
    grid-column: 1;
    padding-right: 0;
  }

  .warm__right{
    grid-column: 1;
  }

  .team{
    grid-column: 1;
  }
}

@media (max-width: 640px){
  .topbar__logo{
    height: 44px;
  }
}

@media (max-width: 520px){
  html{
    overflow-y: auto !important;
  }

  body{
    overflow-y: visible !important;
  }

  .bstil-page{
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .scene{
    min-height: auto;
    padding: 14vh 5vw 22vh;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .scene:first-of-type{
    min-height: auto;
  }

  .scene--info{
    overflow: hidden;
  }

  .topbar__logo{
    height: 42px;
  }

  .topbar__burger{
    width: 40px;
    height: 40px;
  }

  .topbar__menu{
    top: calc(100% + 8px);
    padding: 10px 12px;
    border-radius: 14px;
  }

  .topbar__menu .topbar__link{
    font-size: 14px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .grid.roomy.roomy--4{ gap: 9vw; }
  .row{ gap: 6vw; }
  .tile{ max-width: 48% !important; }

  .team{
    grid-template-columns: 1fr;
  }

  .team__img{
    margin-bottom: 10px;
  }

  .footer{
    position: static;
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    margin: 28px 14px 18px;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-x: hidden;
  }

  .footer::before{
    display: none;
  }

  .footer__center{
    justify-self: start;
  }

  .footer__right{
    justify-self: start;
  }
}

/* ---------- Final anti-overflow safety ---------- */
.bstil-page,
.scene,
.scene--info,
.grid,
.row,
.tile,
.warm,
.warm__inner,
.warm__left,
.warm__right,
.team,
.team__card,
.footer{
  min-width: 0;
  max-width: 100%;
}

.warm *,
.footer *{
  max-width: 100%;
}

/* ---------- Mobile application CTA enhancement ---------- */
@keyframes topbarMenuIn{
  from{
    opacity: 0;
    transform: translateY(-8px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px){
  /* Make the menu trigger explain what it is for */
  .topbar__burger{
    position: relative;
    width: 112px;
    height: 44px;
    margin-left: 4px;
    padding: 0 15px;
    align-items: flex-end;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(174,49,49,.98), rgba(112,20,20,.98));
    box-shadow:
      0 10px 26px rgba(74,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.12);
    transition:
      transform .18s ease,
      border-color .18s ease,
      background .18s ease,
      box-shadow .18s ease;
  }

  .topbar__burger::after{
    content: "ANSØG";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .09em;
  }

  .topbar__burger[aria-expanded="true"]::after{
    content: "LUK";
  }

  .topbar__burger span{
    position: relative;
    z-index: 1;
    width: 16px;
    background: #fff;
  }

  .topbar__burger:hover,
  .topbar__burger:focus-visible{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.42);
    background:
      linear-gradient(135deg, rgba(198,57,57,.99), rgba(132,23,23,.99));
    box-shadow:
      0 13px 30px rgba(74,0,0,.42),
      inset 0 1px 0 rgba(255,255,255,.16);
  }

  .topbar__burger:focus-visible{
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 3px;
  }

  /* Turn the dropdown into a focused application panel */
  .topbar__menu{
    padding: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background:
      radial-gradient(circle at 85% 0%, rgba(159,45,45,.22), transparent 45%),
      rgba(8,8,8,.97);
    box-shadow:
      0 20px 50px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.05);
  }

  .topbar__menu.is-open{
    animation: topbarMenuIn .18s ease-out both;
  }

  .topbar__menu .topbar__link{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    min-height: 72px;
    padding: 17px 18px !important;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(166,45,45,.98), rgba(96,18,18,.98));
    box-shadow:
      0 10px 24px rgba(64,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.10);
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    opacity: 1;
  }

  .topbar__menu .topbar__link::after{
    content: "Åbn ansøgningsformularen  →";
    color: rgba(255,255,255,.76);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: .015em;
    text-transform: none;
  }

  .topbar__menu .topbar__link:hover,
  .topbar__menu .topbar__link:focus-visible{
    opacity: 1;
    color: #fff;
    background:
      linear-gradient(135deg, rgba(193,56,56,.99), rgba(119,22,22,.99));
    border-color: rgba(255,255,255,.30);
  }

  .topbar__menu .topbar__link:focus-visible{
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 2px;
  }
}

@media (max-width: 520px){
  .topbar__logo{
    width: auto;
    max-width: 46vw;
    height: auto;
    max-height: 42px;
  }

  .topbar__burger{
    width: 106px;
    height: 42px;
    padding-right: 14px;
  }

  .topbar__burger::after{
    left: 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce){
  .topbar__menu.is-open{
    animation: none;
  }
}


