:root {
  --base-100: #f5fffd;
  --base-200: #586961;
  --base-300: #d8dfda;
  --base-400: #24312b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-family: var(--face), sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 500;
  line-height: 1.25;
}

p {
  font-family: var(--face), sans-serif;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1;
}

p.btn,
a.btn {
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--face), monospace;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: 2px;
  background-color: var(--base-200);
  color: var(--base-400);
  display: block;
  width: max-content;
}

.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--base-200);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  z-index: 100;
  --wipe: 0deg;
  -webkit-mask: conic-gradient(
    from 0deg at 0% 100%,
    transparent var(--wipe),
    var(--base-400) var(--wipe)
  );
  mask: conic-gradient(
    from 0deg at 0% 100%,
    transparent var(--wipe),
    var(--base-400) var(--wipe)
  );
}

.preloader-copy p {
  text-transform: uppercase;
  font-family: var(--face);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1;
  color: var(--base-400);
}

.preloader-copy p .char {
  opacity: 0;
}

.preloader {
  position: relative;
  width: 70px;
  height: 16px;
  overflow: visible;
}

.preloader-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: var(--base-400);
}

.preloader-block .preloader-block {
  left: calc(100% + 2px);
  transform-origin: left center;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: translateY(-300px);
  will-change: transform;
  z-index: 10;
}

.nav-logo,
.nav-toggler,
.nav-cta {
  flex: 1;
}

.nav-logo img {
  width: 6rem;
}

.nav-toggler {
  display: flex;
  justify-content: center;
}

.nav-toggler p {
  background-color: var(--base-400);
  color: var(--base-100);
}

.nav-cta {
  display: flex;
  justify-content: flex-end;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--base-400);
  overflow: hidden;
  display: flex;
  gap: 2rem;
  z-index: 1;
}

.hero-copy,
.hero-media {
  flex: 1;
}

.hero-copy {
  padding: 2rem;
  color: var(--base-100);
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

.hero-copy h1 .block-line-wrapper {
  position: relative;
  width: max-content;
  display: block;
}

.hero-copy h1 .block-line {
  position: relative;
  display: block;
}

.hero-copy h1 .block-revealer {
  position: absolute;
  top: 0;
  left: 0;
  width: 101%;
  height: 101%;
  pointer-events: none;
  will-change: transform;
}

.hero-copy h1 .block-revealer.block-orange {
  background-color: var(--base-200);
  z-index: 2;
}

.hero-copy h1 .block-revealer.block-white {
  background-color: var(--base-100);
  z-index: 1;
}

.hero-copy a.btn {
  position: relative;
  transform: translateY(40px);
  will-change: transform, opacity;
  opacity: 0;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-media .hero-img {
  position: relative;
  width: 85%;
  aspect-ratio: 5/7;
}

.hero-media .hero-img img {
  opacity: 0;
}

.hero-footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

.hero-footer p {
  color: var(--base-300);
}

.hero-footer p .word {
  position: relative;
  transform: translateY(100%);
  will-change: transform;
}

.ascii-grid {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--face), monospace;
  line-height: 0.8;
  white-space: pre;
  user-select: none;
}

.ascii-grid .ascii-char {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base-100);
  will-change: opacity, color;
  opacity: 0;
}

@media (max-width: 1000px) {
  p.btn,
  a.btn {
    font-size: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .hero {
    padding-top: 10svh;
    flex-direction: column;
  }

  .hero-media {
    justify-content: flex-end;
  }

  .hero-media .hero-img {
    width: 75%;
    aspect-ratio: 1;
  }

  .hero-footer p {
    color: var(--base-100);
  }
}

:root { --face: "Satoshi"; }
html:lang(ar) { --face: "Alexandria"; }
.preloader-copy { position: relative; }
.intro-logo { position:absolute; width:132px; height:132px; object-fit:contain; left:50%; bottom:38px; transform:translateX(-50%); }
.preloader-block { background:var(--base-100); }
.preloader-copy p, a.btn { color:var(--base-100); }
.preloader-copy p { font-family:"Satoshi",sans-serif; }
.nav-logo img { object-fit:contain; height:auto; }
.hero-copy h1 {font-weight:500;}
.nav-toggler .btn {cursor:pointer; border:0; font:inherit;}
.hero-footer p {line-height:1.5;}
html:lang(ar) .hero-copy, html:lang(ar) .hero-footer {direction:rtl;}
html:lang(ar) .hero-copy h1 {line-height:1.5;}
.ascii-grid {font-family:monospace;}
/* The fully wiped overlay still occupies the viewport in Chromium. */
.preloader-overlay { pointer-events:none; }
