@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: flex-end;
  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: #080808; }
.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(0, 0, 0, .08), rgba(0, 0, 0, .04) 25%, rgba(0, 0, 0, .72) 56%, #080808 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-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--mosaic .world-kicker { color: #ffe3a0; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.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--mosaic .world-description { color: rgba(255, 255, 255, .95); }
.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; }
.world-action .arrow-icon { display: inline-block; transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.world:focus-visible .world-action > span { background: #fff; color: var(--ink); }
.world:focus-visible .world-action .arrow-icon { transform: translateX(4px) rotate(45deg); }
.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); }
  .world:hover .world-action .arrow-icon { transform: translateX(4px) 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; }
}

/* Mosaic leads the mobile opening view; Digital's title invites a natural scroll. */
@media (max-width: 700px) {
  .welcome-page { --digital-preview-height: clamp(152px, 20svh, 176px); display: block; height: auto; min-height: 100svh; overflow: visible; }
  .welcome-page main { height: auto; }
  .welcome-header { position: sticky; top: 0; 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 { display: flex; flex-direction: column; height: auto; }
  .world { flex: 0 0 auto; height: auto; padding: 26px 22px; }
  .world--mosaic { min-height: max(380px, calc(100svh - 56px - var(--digital-preview-height))); }
  .world--digital { justify-content: flex-start; min-height: 0; padding-top: 24px; padding-bottom: 28px; }
  .world--mosaic .world-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .1) 28%, rgba(0, 0, 0, .8) 58%, #080808 100%); }
  .world--digital .world-shade { background: linear-gradient(180deg, rgba(8, 11, 21, .68), rgba(8, 11, 21, .55) 50%, #0b101c 100%); }
  .world-content { flex-shrink: 0; width: 100%; margin-top: 0; }
  .world-kicker { margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
  .world--mosaic .world-kicker { margin-bottom: 16px; font-size: clamp(13px, 3.5vw, 15px); letter-spacing: .04em; }
  .world h2 { font-size: clamp(48px, 13vw, 60px); }
  .world h2 > span:first-child { margin-bottom: 4px; }
  .world-description { margin-top: 18px; max-width: 480px; font-size: 14px; line-height: 1.65; }
  .world-bottomline { gap: 10px; margin-top: 24px; padding-top: 18px; }
  .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; }
}
