/* Shared by the portal entry screen and Keycloak. */
.bibi-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  color: #1d3430;
  background: #fff;
}

.bibi-story {
  position: sticky;
  top: 0;
  align-self: start;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 5vh, 64px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(32px, 5vw, 80px);
  overflow: hidden;
  background: #00774e;
  color: #fff;
}

/* A quiet set of curves, drawn entirely with CSS. */
.bibi-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -24%;
  bottom: -50%;
  width: clamp(320px, 48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ffffff0e, 0 0 0 68px #ffffff08;
  pointer-events: none;
}

.bibi-story-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.bibi-logo { width: 122px; height: auto; display: block; }
.bibi-portal-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .18em;
  text-align: right;
}
.bibi-story-copy { margin: 0; }
.bibi-sunline {
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 28px;
  background: #fce300;
  transform-origin: left center;
}
.bibi-story-title {
  margin: 0;
  font-size: clamp(32px, 3.65vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.bibi-story-description { margin: 24px 0 0; font-size: 16px; line-height: 1.8; }
.bibi-story-bottom {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .1em;
}

@media (prefers-reduced-motion: no-preference) {
  .bibi-story::before { animation: bibi-curves-arrive 1100ms ease-out both; }
  .bibi-sunline { animation: bibi-line-open 550ms cubic-bezier(.22, .61, .36, 1) both; }
}
@keyframes bibi-curves-arrive {
  from { opacity: 0; transform: translate(24px, 18px); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes bibi-line-open {
  from { transform: scaleX(.18); }
  to { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .bibi-shell { display: block; }
  .bibi-story { position: relative; min-height: 0; padding: 28px 24px 32px; gap: 28px; }
  .bibi-story::before { right: -175px; bottom: -235px; }
  .bibi-logo { width: 76px; }
  .bibi-sunline { height: 3px; width: 30px; margin-bottom: 18px; }
  .bibi-story-title { font-size: clamp(26px, 6vw, 36px); }
  .bibi-story-description, .bibi-story-bottom { display: none; }
}
