:root {
  color-scheme: dark;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
}

main,
header,
footer,
section,
nav {
  display: block;
}

img,
svg,
video {
  max-width: 100%;
  vertical-align: middle;
}

img,
svg {
  display: inline-block;
}

button,
input,
textarea {
  margin: 0;
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

textarea {
  overflow: auto;
  resize: vertical;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a8dcea;
  outline-offset: 4px;
}

.inline-block {
  display: inline-block;
  max-width: 100%;
}

.layout-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-success,
.form-error {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  line-height: 1.5;
}

.form-success {
  color: #011024;
  background: #a8dcea;
}

.form-error {
  color: #5a1010;
  background: #ffdede;
}

.form-notice {
  max-width: 760px;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 24px;
}

.form-notice a {
  color: #a8dcea;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.background-video {
  overflow: hidden;
}

.background-video > video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-underline {
  width: 0;
  transition: width 400ms ease;
}

.link:hover .link-underline,
.link:focus-visible .link-underline {
  width: 100%;
}

.js .reveal {
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(.165, .84, .44, 1),
    transform 1000ms cubic-bezier(.165, .84, .44, 1);
}

.js .reveal-left {
  transform: translate3d(-100px, 0, 0);
}

.js .reveal-up {
  transform: translate3d(0, 100px, 0);
}

.js .reveal-down {
  transform: translate3d(0, -100px, 0);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mouse-scroll-weel {
  animation: mouse-wheel 1.1s ease-in-out infinite;
}

@keyframes mouse-wheel {
  0% { opacity: 1; transform: translateY(3px); }
  70% { opacity: 0; transform: translateY(9px); }
  100% { opacity: 1; transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .mouse-scroll-weel {
    opacity: 1;
    animation: none;
    transition: none;
    transform: none;
  }
}
