@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');


/* ============================================================
   OZLI POSTER LOADER
   ============================================================ */

:root {

  /* Cream / teal / Oz red — keep in lockstep with static/style.css --ozli-* tokens. */
  --cream: #EFE9D5;

  --green: #497D74;
  --green-dark: #335775;

  --yellow: #f2c957;
  --yellow-light: #f6d76f;

  --red: #d91e37;

  --font-display: 'Lexend', 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease:
    cubic-bezier(.76, 0, .24, 1);
}


* {
  box-sizing: border-box;
}


html:not(:has(.auth-page)),
body:not(.auth-page) {

  width: 100%;
  height: 100%;

  margin: 0;

  overflow: hidden;

  background: var(--green);
}


body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-body);
}


/* ============================================================
   FULL-PAGE LOADER

   The green artwork fills the browser.

   The cream is ONLY the thin border.
   ============================================================ */

#loader {

  position: fixed;

  inset: 0;

  z-index: 1000;

  background: var(--cream);

  padding: 7px;

  transition:
    transform 0.85s var(--ease);

  will-change: transform;
}


.poster {

  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: var(--green);
}


/* ============================================================
   SPIRAL SVG
   ============================================================ */

#brick-spiral {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;

}


.spiral-opening {
  fill: var(--green);
}


/* ============================================================
   BRICKS

   Flat printed colours.
   No gradients.
   No shadows.
   No outlines.
   ============================================================ */

.brick {

  fill: var(--yellow);

}


.brick.light {

  fill: var(--yellow-light);

}


/* ============================================================
   FOOTPRINTS
   ============================================================ */

#footprints {

  position: absolute;

  inset: 0;

  z-index: 5;

  pointer-events: none;
}


.footprint {

  position: absolute;

  width: 34px;
  height: 58px;

  opacity: 0;

  transform-origin: 50% 50%;

  transition:
    opacity .28s ease;
}


/*
   Toe / front of footprint
*/

.footprint::before {

  content: "";

  position: absolute;

  left: 50%;
  top: 0;

  width: 27px;
  height: 37px;

  transform:
    translateX(-50%)
    rotate(-8deg);

  background: var(--red);

  border-radius:
    52% 52% 42% 42% /
    48% 48% 35% 35%;
}


/*
   Heel
*/

.footprint::after {

  content: "";

  position: absolute;

  left: 50%;
  bottom: 1px;

  width: 17px;
  height: 24px;

  transform:
    translateX(-50%)
    rotate(8deg);

  background: var(--red);

  border-radius:
    35% 35% 45% 45% /
    35% 35% 55% 55%;
}


.footprint.visible {
  opacity: 1;
}


/* ============================================================
   OZLI

   Bottom-right placement inspired by the poster.

   Oz = red
   li = cream
   ============================================================ */

.ozli {

  position: absolute;

  right: 4.5%;
  bottom: 5%;

  z-index: 10;

  display: flex;

  align-items: baseline;

  white-space: nowrap;

  font-family: var(--font-display);

  font-size:
    clamp(90px, 13vw, 190px);

  font-weight: 600;

  line-height: .72;

  letter-spacing: -.075em;

  opacity: 0;

  transform:
    translateY(25px)
    scale(.94);

  transition:
    opacity .4s ease,
    transform .55s cubic-bezier(.16, 1, .3, 1);
}


.ozli .oz {
  color: var(--red);
}


.ozli .li {
  color: var(--cream);
}


.ozli.show {

  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}


/* ============================================================
   FINAL REVEAL
   ============================================================ */

#loader.finished {

  transform:
    translateY(-100%);

}


/* ============================================================
   APPLICATION UNDERNEATH
   ============================================================ */

#app {

  position: fixed;

  inset: 0;

  z-index: 1;

  background: var(--cream);

  opacity: 0;

  transform: scale(1.02);

  transition:
    opacity 0.7s var(--ease),
    transform 0.85s var(--ease);
}


#app.visible {

  opacity: 1;

  transform: scale(1);

}


.app-placeholder {

  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: white;

  font-family: var(--font-display);

  font-size: 100px;

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  #loader {
    padding: 5px;
  }


  .ozli {

    right: 6%;

    bottom: 7%;

    font-size:
      clamp(70px, 20vw, 120px);

  }


  .footprint {

    width: 25px;
    height: 44px;

  }


  .footprint::before {

    width: 20px;
    height: 29px;

  }


  .footprint::after {

    width: 13px;
    height: 18px;

  }

}