@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato/Lato-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202321;
  --gold: #efc766;
  --blue: #1d78bd;
  --red: #dd323c;
  --navy: #14224b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.welcome-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--navy);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.welcome-page main { min-height: 0; height: 100%; }

/* The original Loobow animation now introduces the main homepage. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0b0f;
  transition: opacity .55s ease, visibility .55s ease;
}
#preloader[hidden] { display: none; }
#preloader video {
  display: block;
  width: min(230px, 55vw);
  height: auto;
  mix-blend-mode: screen;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 200; padding: 12px 20px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

.welcome-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(28px, 4vw, 76px);
  border-bottom: 1px solid #e7e7eb;
  background: #fff;
}

.welcome-brand { display: flex; margin: 0; font: inherit; line-height: 1; }
.loobow-wordmark { font-family: "Lato", sans-serif; font-size: 32px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.welcome-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 16px; border: 1px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(221, 50, 60, .12); transition: background .2s ease, border-color .2s ease; }
.welcome-whatsapp > svg { width: 16px; height: 16px; flex-shrink: 0; }
.welcome-whatsapp:hover { background: #bf2934; border-color: #bf2934; }

/* Mosaic is the primary entrance; Digital remains a full, clickable panel. */
.worlds { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); height: 100%; }
.world {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 32px clamp(28px, 4vw, 76px) clamp(32px, 5vh, 60px);
  color: #fff;
}

.world--mosaic { background: var(--navy); }
.world--digital { padding-right: clamp(24px, 3vw, 48px); padding-left: clamp(24px, 3vw, 48px); background: #0b101c; }
.world-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .65, .3, 1); }
.world--mosaic .world-image { object-position: 62% 50%; }
.world--digital .world-image { object-position: 58% 50%; }
.world-shade { position: absolute; inset: 0; z-index: -1; }
.world--mosaic .world-shade { background: linear-gradient(180deg, rgba(12, 24, 48, .25), rgba(12, 24, 48, .02) 24%, rgba(12, 24, 48, .68) 58%, #101e3b 100%); }
.world--digital .world-shade { background: linear-gradient(180deg, rgba(8, 11, 21, .25), rgba(8, 11, 21, .05) 25%, rgba(8, 11, 21, .7) 58%, #0b101c 100%); }
.world:focus-visible { outline-offset: -4px; }

.world-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 1px 8px #101e3b; }
.world-symbol { position: relative; display: grid; width: 26px; height: 26px; flex-shrink: 0; }
.mosaic-symbol { grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(45deg); width: 19px; height: 19px; }
.mosaic-symbol i { background: var(--gold); }
.mosaic-symbol i:nth-child(2) { opacity: .55; }
.mosaic-symbol i:nth-child(3) { opacity: .75; }
.digital-symbol i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #318ecf; left: 0; bottom: 1px; }
.digital-symbol i + i { width: 17px; height: 17px; background: #f04850; top: 0; right: 0; left: auto; bottom: auto; }

.world-content { margin-top: 32px; }
.world-kicker { margin: 0 0 16px; color: var(--gold); font-size: 13px; line-height: 1.6; font-weight: 500; letter-spacing: .07em; }
.world--digital .world-kicker { color: #a6d1f2; }
.world h2 { margin: 0; font-size: clamp(48px, 6.2vw, 100px); font-weight: 500; line-height: 1.02; letter-spacing: -.06em; }
.world h2 > span:first-child { display: block; font-size: .46em; font-weight: 400; letter-spacing: -.025em; margin-bottom: 8px; }
.title-dot { color: var(--gold); }
.world--digital .title-dot { color: #eb4651; }
.world-description { margin: 24px 0 0; color: rgba(255, 255, 255, .84); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; }
.world-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, .3); }
.world-action { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.world-action > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; font-size: 20px; transition: background .25s ease, color .25s ease, transform .25s ease; }
.world-caption { color: rgba(255, 255, 255, .7); font-size: 10px; line-height: 1.65; text-align: right; }

@media (hover: hover) {
  .world:hover .world-image { transform: scale(1.045); }
  .world:hover .world-action > span { background: #fff; color: var(--ink); transform: rotate(45deg); }
}

@media (max-width: 1100px) {
  .world { padding-right: 28px; padding-left: 28px; }
  .world--digital { padding-right: 24px; padding-left: 24px; }
  .world--digital .world-bottomline { flex-wrap: wrap; }
  .world--digital .world-caption { text-align: left; }
  .world-description br { display: none; }
}

/* Fit both entrances on phones, with Mosaic receiving the larger image area. */
@media (max-width: 700px) {
  .welcome-page { height: 100vh; height: 100dvh; min-height: 646px; overflow: auto; }
  .welcome-header { min-height: 56px; padding: 8px 24px; gap: 14px; }
  .loobow-wordmark { font-size: 26px; }
  .welcome-whatsapp { min-height: 32px; padding: 6px 10px; gap: 6px; }
  .welcome-whatsapp > svg { width: 15px; height: 15px; }
  .worlds { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(min-content, 65fr) minmax(min-content, 35fr); }
  .world { height: auto; padding: 18px 22px; }
  .world--mosaic { min-height: 320px; }
  .world--digital { min-height: 250px; }
  .world-content { flex-shrink: 0; margin-top: 14px; }
  .world-topline { flex-shrink: 0; font-size: 9px; }
  .world-symbol { width: 22px; height: 22px; }
  .mosaic-symbol { width: 16px; height: 16px; }
  .world-kicker { margin-bottom: 8px; font-size: 11px; line-height: 1.5; }
  .world h2 { font-size: clamp(42px, 12vw, 54px); }
  .world h2 > span:first-child { margin-bottom: 4px; }
  .world-description { margin-top: 12px; max-width: 480px; font-size: 13px; line-height: 1.5; }
  .world-bottomline { gap: 10px; margin-top: 14px; padding-top: 12px; }
  .world-action { font-size: 13px; gap: 12px; }
  .world-action > span { width: 32px; height: 32px; font-size: 18px; }
  .world--digital .world-bottomline { flex-wrap: nowrap; }
  .world-caption, .world--digital .world-caption { font-size: 9px; text-align: right; }
}

/* Short desktop windows retain both entrances without clipping their copy. */
@media (min-width: 701px) and (max-height: 700px) {
  .welcome-header { min-height: 60px; }
  .world { padding-top: 22px; padding-bottom: 24px; }
  .world-content { margin-top: 20px; }
  .world h2 { font-size: clamp(44px, 8vh, 64px); }
  .world-kicker { margin-bottom: 10px; font-size: 12px; }
  .world-description { margin-top: 16px; font-size: 15px; line-height: 1.6; }
  .world-bottomline { margin-top: 20px; padding-top: 16px; }
}

@media (min-width: 701px) and (max-height: 500px) {
  .welcome-page { min-height: 520px; height: auto; overflow: auto; grid-template-rows: 60px minmax(460px, 1fr); }
  .worlds { min-height: 460px; }
}

@media (max-width: 380px) {
  .world, .welcome-header { padding-right: 22px; padding-left: 22px; }
  .world-caption, .world--digital .world-caption { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
