@font-face {
  font-family: "Telegraf-Regular";
  src: url("../fonts/Telegraf-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Telegraf-Bold";
  src: url("../fonts/Telegraf-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HWPano-Regular";
  src: url("fonts/HW Pano Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ExposureTrial-20";
  src: url("fonts/ExposureTrial[-20].otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ExposureTrial+20";
  src: url("fonts/ExposureTrial[+20].otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ExposureTrial-40";
  src: url("fonts/ExposureTrial[-40].otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior: none;
  font-family: "Telegraf-Regular", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #000000;
}

.homepage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.homepage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.homepage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.homepage.is-contact-active .homepage__bg::after,
.homepage.is-reports-active .homepage__bg::after {
  background: transparent;
}

.homepage__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.homepage.is-contact-active .homepage__bg-image,
.homepage.is-reports-active .homepage__bg-image {
  filter: grayscale(100%);
}

.homepage__center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 20px;
  width: 100%;
  pointer-events: none;
}

.homepage__center>* {
  pointer-events: auto;
}

.homepage__center-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.homepage__center-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.homepage__left-trigger {
  width: 70vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.homepage__eye-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 11;
  position: relative;
}

.homepage__left-trigger:focus,
.homepage__left-trigger:focus-visible,
.homepage__eye-btn:focus,
.homepage__eye-btn:focus-visible,
.homepage__contact:focus,
.homepage__contact:focus-visible,
.homepage__contact--overlay:focus,
.homepage__contact--overlay:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.homepage__eye {
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  -webkit-mask: url("../images/mutant-eye.png") no-repeat center / contain;
  mask: url("../images/mutant-eye.png") no-repeat center / contain;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  pointer-events: auto;
}

.homepage__eye:hover,
.homepage.is-reports-active .homepage__eye {
  background-color: #3BFF17;
}

.homepage__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: clamp(120px, 30vw, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.homepage__contact {
  font-family: "Telegraf-Bold", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding-right: 20px;
  transition: filter 0.3s ease, color 0.2s ease, opacity 0.3s ease;
  z-index: 11;
  position: absolute;
  right: 0;
  top: 0;
  width: 20vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.homepage__contact span {
  transition: color 0.2s ease;
}

.homepage__contact span:hover {
  color: #3BFF17;
}

.homepage__overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.homepage__overlay.is-visible {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.homepage__overlay-blur {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.homepage__overlay-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  color: #3BFF17;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.homepage__content-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.25vw, 24px);
  max-width: 1400px;
}

.homepage__overlay-title {
  font-family: "Telegraf-Regular", Helvetica, sans-serif;
  font-size: clamp(32px, 3.5vw, 68px);
  font-weight: 400;
  line-height: 0.85;
  margin: 0;
  color: #3BFF17;
  max-width: 40vw;
}

.homepage__overlay-intro {
  font-family: "Telegraf-Regular", Helvetica, sans-serif;
  font-size: clamp(16px, 1.1vw, 22px);
  line-height: 1;
  color: #3BFF17;
  max-width: 40vw;
  text-align: justify;
  text-align-last: left;
}

.homepage__overlay-intro p {
  margin: 0;
}

.homepage__overlay-addresses {
  display: flex;
  gap: clamp(40px, 8vw, 120px);
  font-family: "Telegraf-Regular", Helvetica, sans-serif;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1;
}

.homepage__overlay-addresses address {
  font-style: normal;
}

.homepage__overlay-addresses address a {
  color: inherit;
  text-decoration: none;
}

.homepage__overlay-addresses address a:hover {
  text-decoration: none;
}

.homepage__content-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-top: clamp(20px, 2vw, 40px);
}

.homepage__overlay-inquiries {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: "Telegraf-Regular", Helvetica, sans-serif;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1;
}

.link-item {
  display: flex;
  gap: 4rem;
}

.link-item .label {
  min-width: 180px;
}

.link-item a {
  color: inherit;
  text-decoration: none;
}

.link-item a:hover {
  text-decoration: none;
}

.homepage__overlay-contact-trigger .homepage__contact--overlay {
  position: relative;
  width: auto;
  height: auto;
  padding: 0;
  font-size: 20px;
  color: #3BFF17;
}

.homepage__contact--overlay {
  position: absolute;
  right: 20px;
  top: 0;
  width: auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 3;
  color: #3BFF17;
  pointer-events: auto;
}

.homepage__contact--overlay:hover {
  opacity: 0.9;
}

.words-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

.homepage__reports-link {
  font-family: "Telegraf-Bold", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, filter 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.homepage__reports-link:hover {
  color: #3BFF17;
}

.nav-description {
  font-family: "Telegraf-Regular", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #fff;
  white-space: nowrap;
  position: absolute;
  bottom: 100%;
  left: 100%;
  margin-left: 0.75em;
  margin-bottom: 0.25em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.homepage__reports-link:hover .nav-description {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --out-dur: 0.1s;
  --out-stag: 0.05s;
}

.reveal-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: transform 3.2s cubic-bezier(0.05, 1, 0, 1), opacity 0s linear;
  will-change: transform, opacity;
  pointer-events: none !important;
}

.reveal-item.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto !important;
  cursor: pointer;
}

.homepage__overlay-content .reveal-item {
  cursor: auto;
}

.delay-1 {
  transition-delay: 0s;
}

.delay-2 {
  transition-delay: 0.1s;
}

.delay-3 {
  transition-delay: 0.2s;
}

.delay-4 {
  transition-delay: 0.3s;
}

.closing .reveal-item {
  transition: transform var(--out-dur) ease-in, opacity 0s linear;
}

.closing .delay-1 {
  transition-delay: calc(var(--out-stag) * 3), calc(var(--out-stag) * 3 + var(--out-dur));
}

.closing .delay-2 {
  transition-delay: calc(var(--out-stag) * 2), calc(var(--out-stag) * 2 + var(--out-dur));
}

.closing .delay-3 {
  transition-delay: var(--out-stag), calc(var(--out-stag) + var(--out-dur));
}

.closing .delay-4 {
  transition-delay: 0s, var(--out-dur);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .homepage__contact {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 100%;
    padding: 0;
    padding-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .homepage__overlay {
    align-items: flex-start;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .homepage__overlay-title {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1;
    max-width: 100%;
  }

  .homepage__overlay-intro,
  .homepage__overlay-addresses,
  .homepage__overlay-inquiries {
    font-size: 16px;
    line-height: 1.25;
    max-width: 100%;
  }

  .homepage__overlay-addresses {
    flex-direction: column;
    gap: 1.5rem;
  }

  .homepage__content-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .link-item {
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
  }

  .link-item .label {
    min-width: auto;
  }

  .homepage__overlay-content {
    position: relative;
    padding: 40px 20px 10vh;
    min-height: auto;
    height: auto;
    display: block;
    inset: auto;
  }

  .homepage__overlay-contact-trigger {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
  }

  .homepage__overlay-contact-trigger .homepage__contact--overlay {
    font-size: 20px;
    padding-bottom: 1em;
  }

  .homepage__center {
    flex-direction: column;
    justify-content: space-between;
    padding: 0 20px;
    height: 100vh;
    height: 100dvh;
    align-items: center;
  }

  .homepage__center-left {
    flex: 0 0 15vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    pointer-events: auto;
  }

  .homepage__center-right {
    flex: 0 0 15vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
    pointer-events: auto;
  }

  .homepage__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: clamp(140px, 60vw, 240px);
    width: 100%;
    height: auto;
    pointer-events: none;
    flex: none;
  }

  .homepage__left-trigger {
    width: 100vw;
    height: 20vh;
    left: 0;
    top: 0;
    z-index: 12;
  }

  .homepage__eye-btn {
    justify-content: center;
    width: auto;
    height: auto;
    z-index: 13;
  }

  .words-container {
    flex-direction: column;
    gap: 4rem;
    z-index: 10;
    align-items: center;
  }

  .reveal-item {
    transform: translateY(-20px);
    text-align: center;
  }

  .reveal-item.active {
    transform: translateY(0);
  }

  .homepage__overlay-content .reveal-item {
    text-align: left;
  }

  .homepage__overlay-center {
    position: fixed;
    top: auto;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 15vh;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
  }

  .homepage__overlay-center-right {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: auto;
  }

  .homepage__overlay-center .homepage__contact--overlay {
    color: #3BFF17 !important;
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    padding: 0;
    padding-bottom: 1em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
}