:root {
  --page-black: #000;
  --text: #fff;
  --glass: rgba(13, 13, 13, 0.8);
  --glass-hover: rgba(20, 20, 20, 0.92);
  --border: rgba(225, 225, 225, 0.13);
  --border-hover: rgba(225, 225, 225, 0.28);
  --focus: #8de7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-black);
}

body {
  color: var(--text);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing-page {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 195px;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background: #052650;
}

.hero-media,
.hero-poster,
.hero-poster img,
.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-poster img,
.hero-video {
  object-fit: cover;
}

.hero-poster,
.hero-video {
  transition: opacity 700ms ease;
}

.hero-poster {
  opacity: 1;
}

.hero-video {
  opacity: 0;
}

.hero-media--ready .hero-poster {
  opacity: 0;
}

.hero-media--ready .hero-video {
  opacity: 1;
}

.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: video-loader-spin 900ms linear infinite;
}

@keyframes video-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-header {
  position: absolute;
  z-index: 2;
  top: 46.43px;
  right: 41.76px;
  left: 36.78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: 0.2px;
}

.brand img {
  display: block;
  flex: none;
}

.hero h1 {
  max-width: min(360px, 48vw);
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.2px;
  text-align: right;
  text-wrap: balance;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 336px minmax(60px, 1fr) 187px 187px;
  align-items: start;
  column-gap: 37px;
  padding: 40px 109px 28.44px 32px;
  background: #000;
}

.subscribe-block,
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscribe-block {
  position: relative;
  z-index: 11;
  grid-column: 1;
}

.contact-block {
  position: relative;
  z-index: 11;
}

.inquiry-block {
  grid-column: 3;
}

.follow-block {
  grid-column: 4;
}

.control-label {
  min-height: 12px;
  margin: 0;
  padding-left: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: 0.2px;
}

.email-pill,
.pill-link {
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 60px;
  background: var(--glass);
  color: #fff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.email-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 57px;
  padding: 9px 9px 9px 22px;
  border-radius: 49px;
  overflow: hidden;
  backdrop-filter: blur(12.5px);
}

.email-pill > img,
.pill-link > img {
  display: block;
  flex: none;
}

.email-pill input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.2px;
}

.subscription-success {
  min-width: 0;
  flex: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.2px;
}

.email-pill input::placeholder {
  color: #fff;
  opacity: 1;
}

.email-pill input:disabled {
  cursor: wait;
  opacity: 0.64;
}

.email-pill .form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.email-pill button {
  min-width: 93px;
  height: 39px;
  padding: 0 16px;
  border: 0.383px solid #b2b2b2;
  border-radius: 58px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.pill-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 187px;
  padding: 15px 24px 15px 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.email-pill:hover,
.email-pill:focus-within,
.pill-link:hover {
  border-color: var(--border-hover);
  background: var(--glass-hover);
  box-shadow: 0 10px 28px rgba(0, 92, 158, 0.12);
}

.pill-link:hover {
  transform: translateY(-1px);
}

.email-pill button:hover {
  background: #eefbff;
  box-shadow: 0 5px 16px rgba(115, 226, 255, 0.2);
}

.email-pill button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.subscribe-block[data-state="success"] .email-pill {
  border-color: rgba(141, 231, 255, 0.26);
  box-shadow: 0 8px 24px rgba(0, 126, 178, 0.1);
}

.subscribe-block[data-state="success"] .email-pill button:disabled {
  cursor: default;
  opacity: 1;
}

.email-pill button:active,
.pill-link:active {
  transform: scale(0.975);
}

.email-pill:focus-within,
.pill-link:focus-visible,
.email-pill button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.subscription-status {
  position: absolute;
  top: calc(100% + 5px);
  left: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  letter-spacing: 0.2px;
}

.subscription-status--error {
  color: #ffaaa5;
}

.copyright {
  position: absolute;
  z-index: 11;
  bottom: 28.44px;
  left: 39.23px;
  margin: 0;
  color: rgba(255, 255, 255, 0.27);
  font-size: 14px;
  font-weight: 300;
  line-height: 0.855;
  letter-spacing: 0.42px;
  white-space: nowrap;
}

.grain {
  position: absolute;
  z-index: 10;
  inset: -4px -3px;
  pointer-events: none;
  background-image: url("/assets/teknosis-grain.png");
  background-position: left top;
  background-size: 366.29px 366.29px;
  opacity: 0.15;
  mix-blend-mode: screen;
}

@media (max-width: 900px) {
  .landing-page {
    grid-template-rows: minmax(0, 1fr) clamp(280px, 33.2svh, 326px);
  }

  .brand,
  .hero h1,
  .control-label,
  .email-pill input,
  .subscription-success,
  .email-pill button,
  .pill-link,
  .subscription-status {
    font-size: 16px;
  }

  .subscription-status {
    line-height: 1;
  }

  .hero-header {
    right: clamp(16px, 5vw, 28px);
    left: clamp(16px, 5vw, 28px);
    gap: 20px;
  }

  .hero h1 {
    max-width: 190px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 83px 83px 1fr;
    gap: 37px clamp(10px, 3vw, 16px);
    padding: 43px clamp(14px, 4vw, 20px) 28.44px;
  }

  .subscribe-block {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .inquiry-block {
    grid-column: 1;
    grid-row: 2;
  }

  .follow-block {
    grid-column: 2;
    grid-row: 2;
  }

  .pill-link {
    width: 100%;
    gap: 6px;
    padding-inline: 8px;
  }

  .email-pill {
    gap: 10px;
    padding-left: 16px;
  }

  .email-pill button {
    min-width: 90px;
    padding-inline: 20px;
  }

  .copyright {
    position: static;
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    max-width: 170px;
  }

  .brand {
    gap: 12px;
  }

  .copyright {
    font-size: 12px;
  }

  .email-pill {
    gap: 8px;
    padding-left: 12px;
  }

  .email-pill button {
    min-width: 84px;
    padding-inline: 20px;
  }

  .pill-link {
    gap: 5px;
    padding-inline: 6px;
  }
}

@media (max-height: 760px) and (max-width: 900px) {
  .landing-page {
    grid-template-rows: minmax(0, 1fr) 258px;
  }

  .hero-header {
    top: 28px;
  }

  .contact-panel {
    grid-template-rows: 72px 72px 1fr;
    gap: 21px clamp(10px, 3vw, 16px);
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .subscribe-block,
  .contact-block {
    gap: 10px;
  }

  .email-pill,
  .pill-link {
    height: 50px;
  }

  .email-pill button {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .video-loader {
    display: none;
  }
}
