/* lamda.ar coming-soon page — background = brand logo (lamda-bg.webp / .jpg)
 *
 * The λ and "INTELLIGENT SOLUTIONS" live in the image (2752×1536, aspect 0.5581).
 * Its tagline ends at ~0.79 of the image height, i.e. 0.29·H below the centre.
 * --img-h is the rendered image height, so the text block is placed relative to
 * the IMAGE (not the viewport) and always sits just under the tagline.
 */
:root {
  --ink: #c9f6f8;              /* pale cyan, sampled from the logo glow */
  --ink-muted: #8fb3c9;
  --glow: rgba(94, 234, 240, 0.55);
  --edge-top: #0d1929;         /* image edge colours, used as the fill */
  --edge: #040613;
  --img-h: max(55.81vw, 100vh); /* landscape: background-size: cover */
  color-scheme: dark;          /* the brand image is dark in both themes */
}

* { box-sizing: border-box; margin: 0; }

html { height: 100%; background: var(--edge); }

body {
  min-height: 100%;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui,
               -apple-system, Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--edge);
  background-image:
    url("/lamda-bg.jpg");                       /* fallback */
  background-image:
    image-set(url("/lamda-bg.webp") type("image/webp"),
              url("/lamda-bg.jpg")  type("image/jpeg")),
    linear-gradient(var(--edge-top), var(--edge) 70%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, 100% 100%;
}

/* Portrait: "cover" would crop the sides and cut the tagline off.
   Zoom so the logo + tagline fill ~75% of the width; the rest of the
   screen shows the image's own edge colours. */
@media (max-aspect-ratio: 1/1) {
  :root { --img-h: 156vw; }                     /* 280vw × 0.5581 */
  body  { background-size: 280vw auto, 100% 100%; }
}

main { min-height: inherit; position: relative; }

.soon {
  position: absolute;
  left: 0; right: 0;
  top: min(calc(50% + var(--img-h) * 0.33), calc(100% - 6rem));
  padding: 0 16px;
  text-align: center;
  animation: fade-in 1.6s ease-out 0.3s both;
}

.lead {
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  margin-right: -0.42em;                        /* re-centre after letter-spacing */
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--glow), 0 0 2px var(--glow);
}

.sub {
  margin-top: 0.6rem;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .soon { animation: none; }
}
