@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1c1d1b;
  --lime: #d2fc52;
  --ink: #080a04;
  --ink-2: #3e4436;
  --body: #deded6;
  --muted: #a4a69e;
  --paper: #eef0e8;
  --ease: cubic-bezier(0.83, 0, 0.17, 1);
  --composition-scale: 1;
  --hero-composition-top: 0px;
  --content-scale: 1;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html.model-loading,
html.menu-open {
  overflow: hidden;
}

body {
  overflow-x: hidden;
}

button,
a,
input,
select {
  font: inherit;
  color: inherit;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2,
h3 {
  width: fit-content;
}

#model-preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: #d2fc52;
  touch-action: none;
}

#model-preloader.is-leaving {
  opacity: 0;
  transition: opacity 550ms ease;
  pointer-events: none;
}

#model-preloader.is-gone {
  display: none;
}

.preloader-count {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font: 500 clamp(96px, 22vw, 360px) / 1 "JetBrains Mono", monospace;
  letter-spacing: -0.07em;
}

.preloader-value {
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.preloader-unit {
  font-size: 0.28em;
  letter-spacing: -0.04em;
}

.preloader-bar {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 48px;
  height: 4px;
  background: #d2fc5229;
}

.preloader-fill {
  display: block;
  height: 100%;
  background: #d2fc52;
  transform: scaleX(var(--load-progress, 0));
  transform-origin: left center;
}

.site-header {
  position: fixed;
  z-index: 8;
  top: 48px;
  left: 48px;
  right: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.brand {
  width: auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d2fc52;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter 250ms ease;
}

.brand.is-on-light {
  color: #080a04;
}

.brand.is-on-light img {
  filter: brightness(0);
}

.menu-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-btn.is-on-light {
  color: #050505;
  background: #0505050d;
}

.menu-icon {
  position: relative;
  width: 32px;
  height: 24px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 32px;
  height: 2px;
  background: currentColor;
}

.menu-icon::before {
  top: 7px;
}

.menu-icon::after {
  top: 17px;
}

.cta {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 56px;
  text-decoration: none;
  color: #050505;
}

.cta-sq,
.cta-label {
  height: 56px;
  background: #d2fc52;
  color: #050505;
  transition: transform 700ms var(--ease), background 250ms ease, color 250ms ease;
}

.cta-sq {
  width: 56px;
  display: grid;
  place-items: center;
  flex: none;
}

.cta-left {
  transform: rotate(-45deg) scale(0);
  transform-origin: left center;
}

.cta-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-62px);
}

.cta-right {
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: right center;
}

.cta:hover .cta-left,
.cta:focus-visible .cta-left {
  transform: rotate(0deg) scale(1);
}

.cta:hover .cta-label,
.cta:focus-visible .cta-label {
  transform: translateX(0);
}

.cta:hover .cta-right,
.cta:focus-visible .cta-right {
  transform: rotate(-45deg) scale(0);
}

.cta.is-on-light .cta-sq,
.cta.is-on-light .cta-label {
  background: #050505;
  color: #d2fc52;
}

.journey {
  height: 920svh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.showcase-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d2fc52;
}

.showcase-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.28;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  to {
    background-position: 12px 12px;
  }
}

.composition {
  position: absolute;
  width: 1600px;
  height: 1000px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scale(var(--composition-scale));
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 2;
}

#composition {
  top: var(--hero-composition-top);
  bottom: auto;
  transform-origin: center top;
}

.hero-heading {
  position: absolute;
  top: 490px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  text-align: center;
  font: 500 25.6px/1.45 "JetBrains Mono", monospace;
  color: #050505;
  pointer-events: auto;
}

.hero-row {
  display: block;
}

.hero-line {
  display: inline-block;
  background: #d2fc52;
  padding: 0 7px;
}

.model-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
}

.model-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top left;
}

#architecture {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 800ms ease;
  touch-action: pan-y;
}

.hero[data-ready="true"] #architecture {
  opacity: 1;
}

.showcase-layout {
  color: #080a04;
  font: 500 14px/1.6 "JetBrains Mono", monospace;
}

.showcase-model-anchor {
  position: absolute;
  left: 580px;
  top: 280px;
  width: 440px;
  height: 440px;
}

.showcase-intro {
  position: absolute;
  left: 100px;
  top: 360px;
  width: 350px;
}

.showcase-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.showcase-intro h2,
.showcase-facts h3 {
  font: 500 32px/1.25 "JetBrains Mono", monospace;
  letter-spacing: -0.04em;
  pointer-events: auto;
}

.showcase-facts h3 {
  font-size: 22px;
  line-height: 1.2;
}

.showcase-intro h2 span {
  display: block;
}

.showcase-description {
  position: absolute;
  left: 100px;
  bottom: 280px;
  width: 350px;
}

.showcase-facts {
  position: absolute;
  left: 1110px;
  top: 500px;
  width: 370px;
  transform: translateY(-50%);
}

.showcase-facts article {
  border-top: 1px solid #080a0424;
  padding: 18px 0 20px;
}

.showcase-facts article:last-child {
  border-bottom: 1px solid #080a0424;
}

.showcase-facts p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

.showcase-caption {
  position: absolute;
  left: 580px;
  top: 736px;
  width: 440px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.showcase-copy {
  opacity: 0;
  pointer-events: auto;
}

.section-title,
.showcase-layout h2,
.showcase-layout h3,
.continuation h3,
.mobile-showcase-details h3 {
  width: fit-content;
}

.guide-speech {
  position: absolute;
  z-index: 3;
  max-width: min(320px, calc(100% - 40px));
  padding: 11px 15px;
  background: var(--lime);
  color: #050505;
  font: 500 14px/1.5 "JetBrains Mono", monospace;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
}

.guide-speech::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--lime);
  transform: translate(-50%, -50%) rotate(45deg);
}

.guide-speech.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide-speech.is-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 340ms ease-in-out, transform 340ms ease-in-out;
}

.logo-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: 80px;
  background: #121311;
  border-top: 1px solid #ffffff0f;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 80px;
  min-width: 100vw;
  padding: 0 40px;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a3a3a3;
  font: 500 15px/1.2 "JetBrains Mono", monospace;
  white-space: nowrap;
}

.logo-item img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mobile-showcase-details {
  display: none;
}

html.static-hero .journey {
  height: auto;
}

html.static-hero .hero {
  position: relative;
}

html.static-hero .showcase-layout,
html.static-hero #model-stage,
html.static-hero .menu-nav [data-journey="0.43"] {
  display: none;
}

html.static-hero .model-frame {
  background-image: radial-gradient(circle, #deded62e 1px, transparent 1.6px);
  background-size: 14px 21px;
}

html.static-hero .mobile-showcase-details {
  display: block;
  margin-top: 0;
}

html.static-hero .logo-marquee {
  position: relative;
}

@media (min-width: 901px) {
  html.static-hero .mobile-showcase-details {
    padding: calc(140px * var(--content-scale)) max(48px, calc((100% - 1400px * var(--content-scale)) / 2));
    background: #d2fc52;
    color: #080a04;
    font-size: max(13px, calc(16px * var(--content-scale)));
    line-height: 1.6;
  }

  html.static-hero .mobile-showcase-details > p {
    max-width: 760px;
  }

  html.static-hero .mobile-showcase-details .showcase-facts {
    position: static;
    width: auto;
    margin-top: calc(56px * var(--content-scale));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(48px * var(--content-scale));
    transform: none;
  }

  html.static-hero .mobile-showcase-details .showcase-facts article {
    border-bottom: 1px solid #080a0424;
  }
}

#ascii-controls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  width: 320px;
  padding: 16px;
  background: #1b1b1b;
  color: #f4f4f4;
  border-radius: 12px;
  font-family: system-ui, sans-serif;
  font-weight: 500;
}

#ascii-controls-open {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  font-family: system-ui, sans-serif;
  background: #1b1b1b;
  color: #ff986f;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
}

#ascii-controls label {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
}

#ascii-controls button,
#ascii-controls select,
#ascii-controls input[type="text"] {
  font-family: system-ui, sans-serif;
}

#ascii-controls .accent {
  color: #ff986f;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #how-we-work {
    height: auto;
  }

  #how-we-work .pin {
    position: static;
    height: auto;
  }
}
