* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #171944;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #171944;
  overflow: hidden;
  animation: preloaderOut .8s ease forwards;
  animation-delay: 2.65s;
}

.preloader-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.preloader-bg-text {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.04);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  white-space: nowrap;
  pointer-events: none;
}

.iso-logo {
  display: block;
  margin: 0 auto;
  width: clamp(260px, 44vw, 600px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .16));
  transform-origin: 50% 50%;
  animation: dock .75s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 1.9s;
}

.iso-logo path {
  fill: transparent;
  stroke: #ffffff;
  stroke-width: 30;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    isoDraw 1s ease forwards,
    isoFill .55s ease forwards;
}

.iso-logo .p-r {
  --c: #DA0710;
  animation-delay: .25s, .95s;
}

.iso-logo .p-y {
  --c: #FEB101;
  animation-delay: .45s, 1.15s;
}

.iso-logo .p-b {
  --c: #0119FF;
  animation-delay: .65s, 1.35s;
}

.preloader-text {
  position: absolute;
  bottom: 12vh;
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.28em;
  opacity: 0;
  transform: translateY(12px);
  animation: textIn .7s ease forwards;
  animation-delay: 1.7s;
}

.fv-sticky {
  position: relative;
  height: 200vh;
  background: #171944;
}

.fv {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #171944;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.fv-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  height: 100vh;
  padding: 32px;
  pointer-events: none;
  opacity: 0;
  animation: sceneIn .8s ease forwards;
  animation-delay: 2.55s;
}

.header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.nav a {
  color: #fff;
  text-decoration: none;
}

.copy {
  position: absolute;
  left: 32px;
  bottom: 56px;
  z-index: 20;
}

.copy-sub {
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.3em;
}

.copy-main {
  margin: 0;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.cta {
  position: absolute;
  right: 32px;
  bottom: 56px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px solid #111;
  border-radius: 50%;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta:hover {
  background: #111;
  color: #fff;
}

.mosaic-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  pointer-events: none;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

.mosaic-overlay .tile {
  opacity: 0;
  transform: scale(0.6);
}

.about {
  position: relative;
  z-index: 5;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  color: #111;
}

.about-marquee {
  position: absolute;
  top: 5vh;
  left: 0;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}

.about-marquee-track {
  display: inline-block;
  font-size: clamp(110px, 24vw, 320px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f0f0f4;
  will-change: transform;
}

#about-webgl {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 640px;
  padding: 0 32px;
}

.about-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #DA0710;
}

.about-title {
  margin: 0 0 26px;
  font-size: clamp(56px, 8vw, 116px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.about-title .ch {
  display: inline-block;
  will-change: transform;
}

.about-lead {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.6;
}

.about-text {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-chip {
  padding: 12px 22px;
  border: 2px solid #111;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.value-chip:nth-child(1) {
  background: #DA0710;
  border-color: #DA0710;
  color: #fff;
}

.value-chip:nth-child(2) {
  background: #FEB101;
  border-color: #FEB101;
  color: #111;
}

.value-chip:nth-child(3) {
  background: #0119FF;
  border-color: #0119FF;
  color: #fff;
}

@keyframes isoDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes isoFill {
  to {
    fill: var(--c);
    stroke: #101010;
  }
}

@keyframes dock {
  to {
    transform: translateY(3vh) scale(.44);
  }
}

@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sceneIn {
  to {
    opacity: 1;
  }
}

@keyframes preloaderOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .fv-sticky {
    height: 180vh;
  }

  .about-marquee {
    top: 3vh;
  }

  .about-content {
    justify-content: flex-end;
    padding: 0 20px 7vh;
  }

  .about-text {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .value-chip {
    padding: 9px 16px;
    font-size: 11px;
  }

  .fv-ui {
    padding: 20px;
  }

  .nav {
    display: none;
  }

  .copy {
    left: 20px;
    bottom: 40px;
  }

  .copy-sub {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .cta {
    right: 10px;
    bottom: 10px;
    width: 68px;
    height: 68px;
    font-size: 12px;
  }

  .iso-logo {
    width: clamp(240px, 78vw, 460px);
  }

  .preloader-text {
    width: 100%;
    padding: 0 20px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}
