:root {
  color: #111111;
  background: #f4f7fb;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scroll-behavior: auto;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.66) 30%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #eef7ff 0%, #ffffff 48%, #f2f4f7 100%);
  color: #111111;
}

body.page-loading {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(180deg, rgba(239, 248, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 36%, rgba(255, 255, 255, 0) 64%, rgba(207, 214, 222, 0.16) 100%);
}

body::after {
  left: 50%;
  top: 60%;
  width: min(94vw, 1700px);
  height: min(44vw, 840px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.64) 0%, rgba(244, 248, 252, 0.28) 42%, rgba(244, 248, 252, 0) 76%);
  filter: blur(16px);
  opacity: 0.82;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

#scroll-space {
  position: relative;
  z-index: 0;
  height: 640vh;
}

.chrome {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(22px, env(safe-area-inset-top)) 28px 20px;
  z-index: 3;
  pointer-events: none;
}

.product-summary {
  position: fixed;
  left: clamp(24px, 2.7vw, 40px);
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 2.2vw));
  z-index: 3;
  display: grid;
  grid-template-columns: 72px 1px minmax(300px, 420px);
  column-gap: 20px;
  align-items: start;
  width: min(620px, calc(100vw - 48px));
  padding: 0;
  color: #111111;
  pointer-events: none;
}

.product-summary__index {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(17, 17, 17, 0.9);
  font-variant-numeric: tabular-nums;
  transform: translateY(-7px);
}

.product-summary__rule {
  display: block;
  width: 1px;
  height: 40px;
  margin-top: -1px;
  background: rgba(17, 17, 17, 0.28);
}

.product-summary__copy {
  display: grid;
  gap: 12px;
  min-width: 0;
  transform: translateY(11px);
}

.product-summary__body {
  margin: 0;
  min-height: 24px;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(17, 17, 17, 0.9);
  white-space: nowrap;
}

.product-summary__detail {
  margin: 0;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(17, 17, 17, 0.5);
  white-space: nowrap;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 40%, rgba(244, 246, 249, 0.92) 100%),
    rgba(244, 247, 251, 0.96);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__panel {
  width: min(100%, 420px);
  padding: 30px 28px 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(120, 92, 54, 0.14);
  backdrop-filter: blur(18px);
}

.page-loader__eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.54);
}

.page-loader__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-loader__status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.72);
}

.page-loader__progress {
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.page-loader__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111111 0%, #7f684d 100%);
  transition: width 180ms ease;
}

.page-loader__percent {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.62);
}

.logo,
.menu {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111111;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.logo-mark {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(17, 17, 17, 0.8);
  border-radius: 50%;
  flex: 0 0 auto;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
}

.logo-mark::before {
  width: 3px;
  height: 3px;
  left: 2px;
  top: 5px;
}

.logo-mark::after {
  width: 3px;
  height: 3px;
  right: 2px;
  top: 5px;
}

.logo-text {
  transform: translateY(0.5px);
}

.menu {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  padding: 10px 0;
  text-transform: uppercase;
  cursor: pointer;
}

.logo,
.menu {
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.logo:hover,
.menu:hover {
  opacity: 1;
}

.menu:focus-visible,
.logo:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.35);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .chrome {
    padding-inline: 18px;
  }

  .product-summary {
    left: 16px;
    right: 16px;
    bottom: max(22px, env(safe-area-inset-bottom));
    grid-template-columns: 44px 1px minmax(0, 1fr);
    column-gap: 14px;
    width: auto;
  }

  .product-summary__index {
    font-size: 20px;
    font-weight: 700;
    transform: translateY(-5px);
  }

  .product-summary__rule {
    height: 34px;
    margin-top: 0;
  }

  .product-summary__copy {
    gap: 8px;
    transform: translateY(5px);
  }

  .product-summary__body {
    min-height: 22px;
    font-size: 20px;
    line-height: 1.12;
    white-space: normal;
  }

  .product-summary__detail {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .logo,
  .menu {
    letter-spacing: 0.22em;
    font-size: 11px;
  }

  .page-loader__panel {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
}
