:root {
  --navy: #08131c;
  --white: #ffffff;
  --accent: #0dff00; /* updated live by script.js */
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: 1.5rem;
  pointer-events: none;
}

.logo {
  position: relative;
  width: min(460px, 72vw);
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Coloured part of the logo, recoloured live. Only shown once script.js
   has split the logo into a white layer and a colour mask. */
.logo-mark {
  position: absolute;
  inset: 0;
  display: none;
  background-color: var(--accent);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.logo.is-split .logo-mark {
  display: block;
}

.email {
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  letter-spacing: 0.12em;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.email:hover,
.email:focus-visible {
  color: var(--white);
  border-bottom-color: var(--accent);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .email {
    transition: none;
  }
}
