:root {
  --gradient: linear-gradient(45deg, #6A8AFF, #B2FBFF);
  --background: #01050E;
  --light-background: #303950;
  --text-color: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

html {
  font-size: 125%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

body {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text-color);
  background: var(--background);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sector-dialog__panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.sector-dialog__panel::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.sector-dialog__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.sector-dialog__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .22);
  background-clip: content-box;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none;
}

.logo {
  width: 1rem;
  height: 1rem;
}

.logo.big {
  width: 10rem;
  height: 10rem;
}

.pill {
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  padding-inline: 1rem;
  padding-block: .5rem;
  border: 1px solid;
  border-radius: calc(infinity * 1px);
  border-color: var(--text-color);
  transition: color 150ms, border-color 150ms;
  background: var(--gradient);
  background-clip: text;
}

.pill:hover {
  color: transparent;
  border-color: #6A8AFF;
}

.card {
  background: var(--light-background);
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid;
  border-color: #FFFFFF11;
}

.color-text {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  font-weight: 800;
}

.gradient-border {
  background: var(--gradient);
  border-radius: .5rem;
  padding: 3px;
}

.gradient-border > * {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: sticky;
  z-index: 10;
  margin-top: 10;
  top: 0;
  transition: top 500ms, background 250ms;
}

header div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-hide {
  top: -100%;
}

.header-background {
  background: var(--light-background);
}

.title span {
  mix-blend-mode: difference;
}

h1 {
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 800;
  margin-block: 0 .15rem;
  line-height: .9;
}

.tag-line {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 600;
  margin-block: 0 .45rem;
  line-height: 1.05;
}

.lang {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .15rem;
  border: 1px solid #FFFFFF66;
  border-radius: calc(infinity * 1px);
  background: rgba(1, 5, 14, .5);
}

.lang button {
  color: var(--text-color);
  font: inherit;
  font-size: .8rem;
  border: 0;
  border-radius: inherit;
  padding: .35rem .65rem;
  background: transparent;
  cursor: pointer;
  transition: color 150ms, background 150ms;
}

.lang button:hover,
.lang button:focus-visible {
  color: #B2FBFF;
}

.lang button.active {
  color: #01050E;
  background: var(--gradient);
  font-weight: 700;
}

.account {
  text-decoration: none;
  font-size: .8rem;
}

.hero {
  position: relative;
  padding-inline: 0;
  padding-block: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  height: calc(100lvh - 8rem);
}

.hero .background {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 15s infinite;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  20% {
    opacity: .8;
  }
  33% {
    opacity: .8;
  }
  53% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-content {
  width: 100%;
  max-width: 100%;
}

.hero-content div {
  color: white;
  background: linear-gradient(0deg, var(--background) 0%, rgba(1, 5, 14, 0) 100%);
  padding: 1.25rem 16px 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-content hgroup p {
  margin-top: 0;
}

main {
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1rem;
  gap: 2rem;
  padding-inline: 16px;
}

.sectors {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sector-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.sector {
  flex: 0 0 auto;
  height: 20rem;
  width: min(20rem, 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
}

.sector:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .25);
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.sector-card:focus-visible {
  outline: 2px solid #B2FBFF;
  outline-offset: -2px;
}

.sector-titles {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
}

.sector-titles h3 {
  margin: 0;
}

.sector-supplychain {
  background: center / cover no-repeat url("/assets/screens/supplychain.jpg");
}

.sector-pharma {
  background: center / cover no-repeat url("/assets/screens/pharma.jpg");
}

.sector-healthcare {
  background: center / cover no-repeat url("/assets/screens/healthcare.jpg");
}

.sector p {
  width: 100%;
  margin: 0;
  color: #FFFFFFE5;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sector .default-title {
  opacity: 1;
  visibility: visible;
  color: #B2FBFF;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-shadow: 0 2px 14px rgba(1, 5, 14, .85);
  text-transform: uppercase;
}

.sector .hover-title {
  opacity: 1;
  visibility: visible;
  position: static;
  inset: auto;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sector .hover-title,
.sector p,
.sector-open {
  display: none;
}

.sector-open {
  margin-top: auto;
  font: inherit;
  cursor: pointer;
  border-color: #FFFFFF33;
  background: rgba(1, 5, 14, .32);
  background-clip: border-box;
  color: var(--text-color);
}

.sector-open:hover,
.sector-open:focus-visible {
  color: var(--text-color);
  border-color: #B2FBFF;
  background: rgba(1, 5, 14, .5);
}

.sector-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto .5rem;
  padding: .5rem;
  border: 0;
  background: transparent;
  color: inherit;
  width: min(44rem, calc(100vw - 1rem));
  max-width: 100%;
}

.sector-dialog[open] {
  display: block;
}

.sector-dialog::backdrop {
  background: rgba(1, 5, 14, .78);
  backdrop-filter: blur(6px);
}

.sector-dialog__panel {
  width: 100%;
  max-height: min(85vh, 44rem);
  padding: 0;
  overflow: auto;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
  animation: sector-dialog-sheet 220ms ease-out;
  transition: transform 180ms ease-out;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

.sector-dialog__panel.is-dragging {
  transition: none;
}

.sector-dialog__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(48, 57, 80, 1) 0%, rgba(48, 57, 80, .96) 100%);
}

@keyframes sector-dialog-sheet {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sector-dialog__titles {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sector-dialog__eyebrow {
  margin: 0;
  color: #B2FBFF;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sector-dialog__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.sector-dialog__close {
  font: inherit;
  cursor: pointer;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.sector-dialog__close:hover,
.sector-dialog__close:focus-visible {
  color: #FFFFFF;
}

.sector-dialog__media {
  padding: 0 1.25rem;
}

.sector-dialog__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .75rem;
  border: 1px solid #FFFFFF1A;
}

.sector-dialog__content {
  padding: 1rem 1.25rem 1.25rem;
  color: #FFFFFFE5;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.statements {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.presentation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.presentation div {
  padding-block: 1rem;
  padding-inline: 1rem;
}

.presentation img {
  object-fit: contain;
}

.presentation-artwork {
  background: transparent;
}

.presentation-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 500ms, transform 500ms;
}

.presentation-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 500ms, transform 500ms;
}

.in-view {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cta {
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 13rem;
  width: 100%;
  transition: scale 150ms;
}

.cta:hover {
  scale: 102%;
}

.cta > .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  inset: 2px;
  position: absolute;
  z-index: 2;
  gap: 1.25rem;
}

.cta > .card h2 {
  margin: 0;
}

.cta > .card .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  min-width: 8.5rem;
  white-space: nowrap;
}

.track-wrapper {
  display: flex;
  overflow-x: hidden;
  width: 100%;
  align-self: center;
  mask: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  animation: track 60s linear infinite;
}

.track * {
  margin-right: 5rem;
  height: 10rem;
  width: 10rem;
  object-fit: contain;
}

@keyframes track {
  0% {
    transform: translateZ(0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

footer {
  background: var(--background);
  border-top: 1px solid #FFFFFF11;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  font-size: .8rem;
  color: #FFFFFFAA;
}

footer p {
  margin-block: .25rem;
}

@media (width > 480px) {
  header {
    top: 1rem;
    margin-top: 1rem;
    width: 60lvw;
    margin-inline: auto;
    border-radius: .25rem;
  }

  main {
    padding-block: 4rem;
    padding-inline: 10%;
    gap: 8rem;
  }

  .hero {
    align-items: flex-start;
    padding-inline: 0;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content div {
    padding-inline: calc(20lvw + 1rem);
  }

  .sector-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sector {
    width: 20rem;
  }

  .statements {
    gap: 8rem;
    width: 50lvw;
  }

  .presentation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .presentation.mirror {
    flex-direction: row-reverse;
  }

  .presentation div {
    text-wrap: wrap;
  }

  .presentation img {
    min-width: 0;
    max-width: 30%;
  }

  .cta-wrapper {
    padding-block: 4rem;
    margin-block: -4rem;
  }

  .cta {
    height: 40lvh;
    width: 50lvw;
  }

  .cta-wrapper:hover .cta::after {
    opacity: 1;
  }
  
  .cta::after {  
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    transition: opacity 500ms;
    width: 100%;
    background: var(--gradient);
    mask-image: radial-gradient(
      600px circle at var(--mouse-x) var(--mouse-y), 
      black,
      transparent 40%
    );
    z-index: 1;
  }

  .cta > .card {
    inset: 4px;
    position: absolute;
    z-index: 2;
  }

  .cta > .card .pill {
    font-size: 1.2rem;
  }

  .track-wrapper {
    width: 60%;
  }
  
}

@media (width >= 768px) and (width <= 1100px) {
  header {
    width: min(48rem, calc(100vw - 2rem));
  }

  main {
    padding-inline: 6%;
    gap: 6rem;
  }

  .hero-content div {
    padding-inline: clamp(2rem, 8vw, 4.5rem);
  }

  .statements {
    width: min(44rem, 100%);
  }

  .cta {
    width: min(44rem, 100%);
  }
}

@media (width > 1080px) {
  .sector {
    width: 20rem;
  }
}
