/* BOIGAN — splash page
   ------------------------------------------------------------------ */

:root {
  --orange: #F78B0F;
  --ink: #000;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--orange);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }

/* Single-screen shell: centered lockup on top row, footer pinned to the
   bottom row. Grid keeps the two from ever colliding or overflowing. */
.stage {
  height: 100dvh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 3vw, 3rem);
}

/* ---------- lockup ---------- */

.lockup {
  place-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Capped on both axes — the third term keeps the wordmark inside short and
   landscape viewports (wordmark aspect ratio is 1661:292 ≈ 5.69). */
.logo {
  display: block;
  width: min(88vw, 1100px, calc(38dvh * 5.69));
  height: auto;
  /* The viewBox is cropped tight to the glyphs, and an SVG root clips to its
     viewport by default — without this, a letter mid-bounce gets sliced off. */
  overflow: visible;
}

/* Each letter group transforms about its own bounding box, pivoting on its
   baseline centre — that's what makes the per-letter bounce read correctly. */
.ltr {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  will-change: transform;
}

.tagline,
.services {
  overflow: hidden; /* masks the clip reveal of the inner span */
}

.tagline span,
.services span {
  display: block;
}

.tagline {
  margin-top: clamp(0.75rem, 1.8vh, 1.75rem);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.services {
  margin-top: clamp(1.5rem, 5vh, 4rem);
  color: #fff;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.7vw, 1.5rem);
  line-height: 1.3;
}

/* ---------- footer ---------- */

.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}

.loc,
.contact__lead {
  font-weight: 700;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.contact a {
  color: inherit;
  text-decoration: none;
  width: fit-content;
}

.contact a.contact__email {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .meta {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .contact {
    align-items: center;
    text-align: center;
  }
}

/* ---------- reduced motion ---------- */

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

  .ltr { will-change: auto; }
}
