/* S!GNAL visual system: identity first, interface second, texture everywhere else. */
:root {
  --green: #12ff6c;
  --blue: #000dff;
  --gutter: clamp(20px, 3.2vw, 52px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --origin-x: 50%;
  --origin-y: 50%;
}

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

html {
  background: var(--blue);
  color: var(--green);
  color-scheme: dark;
  font-family: var(--sans);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--blue);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--green);
  color: var(--blue);
  font: 700 .65rem/1 var(--sans);
  text-transform: uppercase;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.ripple-field,
.fallback-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ripple-field {
  z-index: 1;
}

.fallback-field {
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--origin-x) var(--origin-y),
      rgba(18, 255, 108, .18),
      transparent 42%
    ),
    var(--blue);
}

.webgl-unavailable .ripple-field {
  display: none;
}

.landing {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 4;
  top: clamp(20px, 3.2vw, 42px);
  right: var(--gutter);
}

.employee-access {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  padding: .55rem .7rem;
  border: 1px solid var(--green);
  background: rgba(0, 13, 255, .68);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 1px 2px var(--blue);
  transition: color .15s linear, background-color .15s linear;
}

.employee-access:hover,
.employee-access:focus-visible {
  color: var(--blue);
  background: var(--green);
  text-shadow: none;
}

.employee-access__lock {
  position: relative;
  width: 9px;
  height: 8px;
  border: 1px solid currentColor;
}

.employee-access__lock::before {
  position: absolute;
  bottom: 100%;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.emblem-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.emblem {
  display: block;
  width: clamp(132px, 15vw, 218px);
  aspect-ratio: 1;
  background: var(--green);
  -webkit-mask: url('/identity.svg') center / contain no-repeat;
  mask: url('/identity.svg') center / contain no-repeat;
}

.construction {
  position: absolute;
  top: calc(50% + clamp(102px, 11vw, 146px));
  left: 50%;
  color: var(--green);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .055em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 1px 2px var(--blue);
  transform: translateX(-50%);
}

.site-footer {
  position: fixed;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: var(--gutter);
  background: transparent;
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px var(--blue);
  pointer-events: none;
  text-align: center;
}

.site-footer a {
 position: absolute;
 right: var(--gutter);
 color: inherit;
 pointer-events: auto;
}

.site-footer .privacy-choices-link {
  position: absolute;
  left: var(--gutter);
}

.site-footer a:hover,
.site-footer a:focus-visible {
 text-decoration: underline;
 text-underline-offset: 3px;
}

.not-found {
  display: grid;
  place-items: center;
  overflow: auto;
  background: var(--blue);
}

.not-found main {
  width: min(100% - 40px, 820px);
}

.not-found p {
  font: 600 .62rem/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 2rem 0 3rem;
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 500;
  letter-spacing: -.06em;
}

.not-found a {
  border-bottom: 1px solid;
  padding-bottom: .25rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .site-header {
    top: 20px;
    right: 18px;
  }

  .employee-access {
    font-size: .52rem;
  }

  .emblem {
    width: clamp(126px, 40vw, 166px);
  }

  .construction {
    top: calc(50% + 108px);
    max-width: calc(100vw - 36px);
    font-size: .52rem;
    letter-spacing: .04em;
    text-align: center;
  }

  .site-footer {
    height: 42px;
    padding-inline: 18px;
    font-size: .46rem;
  }

 .site-footer a { right: 18px; }
}

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