/* Galaxy Group — minimal holding-company homepage */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6a6a6a;
  --faint: #6e6e6e;
}

[data-theme="dark"] {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #8a8a8a;
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Jost", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5.5rem;
}

.logo {
  display: block;
  width: min(22.5rem, 64vw);
  height: auto;
  opacity: 0;
  animation: rise-in 1.35s ease 0.15s forwards;
}

.tagline {
  margin-top: 2.75rem;
  max-width: 28rem;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1.7;
  color: var(--fg);
  opacity: 0;
  animation: rise-in 1.35s ease 0.55s forwards;
}

.contact {
  margin-top: 3.25rem;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0;
  animation: rise-in 1.35s ease 0.95s forwards;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--fg);
  border-bottom-color: currentColor;
  outline: none;
}

footer {
  flex: 0 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--faint);
  opacity: 0;
  animation: rise-in 1.2s ease 1.2s forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.static .logo,
body.static .tagline,
body.static .contact,
body.static footer {
  opacity: 1;
  animation: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .tagline,
  .contact,
  footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  main {
    padding: 6rem 1.35rem 4.5rem;
  }

  .logo {
    width: min(18.5rem, 78vw);
  }

  .tagline {
    margin-top: 2.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .contact {
    margin-top: 2.75rem;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 700px) {
  main {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .tagline {
    margin-top: 2rem;
  }

  .contact {
    margin-top: 2.25rem;
  }
}
