@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@view-transition {
  navigation: auto;
}

:root {
  --ink: #292929;
  --muted: #999;
  --line: #eaeaea;
  --hover: #f6f6f6;
  --motion-fast: 140ms;
  --motion-base: 180ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-opacity: cubic-bezier(.4, 0, .2, 1);
  --font-sans: "Alexandria", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100svh;
  margin: 0;
  background: #fff;
}

.page-content {
  min-height: inherit;
  view-transition-name: page-content;
}

img {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-header,
.product-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 92px;
  pointer-events: none;
}

.icon-button,
.brand-symbol--small,
.site-menu {
  pointer-events: auto;
}

.icon-button {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.icon-button img {
  width: 100%;
  height: 100%;
}

.menu-button {
  position: absolute;
  top: 24px;
  right: 24px;
}

.menu-dots {
  position: absolute;
  top: 20px;
  left: 12px;
  display: flex;
  width: 20px;
  height: 4px;
  align-items: center;
  justify-content: space-between;
}

.menu-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #666;
  transition: transform 160ms var(--ease-out);
}

.menu-button:hover .menu-dot--left,
.menu-button[aria-expanded="true"] .menu-dot--left {
  transform: translateX(1.5px);
}

.menu-button:hover .menu-dot--center,
.menu-button[aria-expanded="true"] .menu-dot--center {
  transform: none;
}

.menu-button:hover .menu-dot--right,
.menu-button[aria-expanded="true"] .menu-dot--right {
  transform: translateX(-1.5px);
}

.site-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 270px;
  height: 175px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.985);
  transform-origin: top right;
  visibility: hidden;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    visibility 0s linear var(--motion-fast);
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-duration: var(--motion-base), var(--motion-base), 0s;
  transition-delay: 0s;
}

.menu-label {
  position: absolute;
  top: 8px;
  left: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: normal;
}

.product-link {
  position: absolute;
  top: 31px;
  left: -1px;
  display: flex;
  width: 270px;
  height: 41px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 5px;
  text-decoration: none;
  transition: background-color var(--motion-base) var(--ease-out);
}

.product-link:hover,
.product-link:focus-visible {
  background: var(--hover);
}

.product-link:focus-visible {
  outline-offset: -2px;
}

.product-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: transform var(--motion-base) var(--ease-out);
}

.product-copy {
  display: flex;
  width: 196px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: normal;
  transition: transform var(--motion-base) var(--ease-out);
}

.product-link:hover .product-icon,
.product-link:focus-visible .product-icon {
  transform: scale(1.04);
}

.product-link:hover .product-copy,
.product-link:focus-visible .product-copy {
  transform: translateX(2px);
}

.product-name {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}

.product-description {
  width: 100%;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

.support-label {
  top: 115px;
}

.support-link {
  position: absolute;
  top: 142px;
  left: 9px;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page {
  position: relative;
  overflow-x: hidden;
}

.home-main {
  display: flex;
  min-height: 768px;
  align-items: center;
  flex-direction: column;
  padding: 159px 24px 96px;
  text-align: center;
}

.brand-symbol {
  display: grid;
  overflow: hidden;
  place-items: center;
  background: transparent;
  view-transition-name: brand-logo;
}

@keyframes page-content-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes page-content-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(page-content) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  opacity: 0;
}

::view-transition-old(page-content) {
  animation: page-content-fade-out 500ms var(--ease-opacity) both;
  mix-blend-mode: normal;
}

::view-transition-new(page-content) {
  animation: page-content-fade-in 700ms var(--ease-opacity) 1050ms both;
  mix-blend-mode: normal;
}

::view-transition-group(brand-logo) {
  animation-duration: 1700ms;
  animation-timing-function: cubic-bezier(.05, .95, .15, 1);
}

::view-transition-old(brand-logo),
::view-transition-new(brand-logo) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(brand-logo) {
  opacity: 0;
}

.brand-symbol--home {
  width: 110px;
  height: 110px;
}

.brand-symbol--home img {
  width: 87.6px;
  height: auto;
}

.brand-logotype {
  width: 158px;
  height: auto;
  margin-top: 3.8px;
}

.company-statement {
  margin: 54.9px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.disciplines {
  margin: 55px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.site-footer {
  position: absolute;
  right: 24px;
  bottom: 16px;
  left: 24px;
  color: var(--muted);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
  text-align: center;
}

.site-footer a,
.privacy a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.privacy a:hover,
.privacy a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.huelor-page {
  position: relative;
}

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
}

.back-button img {
  opacity: .92;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms var(--ease-out);
}

.back-button:hover img,
.back-button:focus-visible img {
  opacity: 1;
  transform: translateX(-3px);
}

.back-button:active img {
  transform: translateX(-1px);
}

.brand-symbol--small {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
}

.brand-symbol--small img {
  width: 47.8px;
  height: auto;
}

.product-main {
  display: flex;
  min-height: 768px;
  align-items: center;
  flex-direction: column;
  padding: 140px 24px 80px;
  text-align: center;
}

.huelor-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
}

.product-main h1 {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
}

.product-introduction {
  width: min(709px, 100%);
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.privacy {
  width: min(709px, 100%);
  margin-top: 22px;
  scroll-margin-top: 24px;
}

.privacy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.privacy h3 {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.privacy p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

@media (max-height: 767px) and (min-width: 601px) {
  .home-main {
    min-height: 100svh;
    padding-top: max(112px, 20.7svh);
  }

  .product-main {
    min-height: 100svh;
    padding-top: max(112px, 18.2svh);
  }
}

@media (max-width: 600px) {
  .menu-button,
  .site-menu {
    top: 16px;
    right: 16px;
  }

  .site-menu {
    width: min(270px, calc(100vw - 32px));
  }

  .home-main {
    min-height: 100svh;
    padding: clamp(116px, 18svh, 146px) 20px 104px;
  }

  .brand-symbol--home {
    width: 100px;
    height: 100px;
  }

  .brand-symbol--home img {
    width: 80px;
  }

  .brand-logotype {
    margin-top: 4px;
  }

  .company-statement {
    margin-top: clamp(42px, 7svh, 55px);
  }

  .disciplines {
    max-width: 280px;
    margin-top: clamp(38px, 6svh, 55px);
  }

  .site-footer {
    right: 16px;
    bottom: 12px;
    left: 16px;
    font-size: 10px;
  }

  .back-button {
    top: 16px;
    left: 16px;
  }

  .brand-symbol--small {
    top: 8px;
  }

  .product-main {
    min-height: 100svh;
    padding: 120px 20px 64px;
  }

  .huelor-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .product-main h1 {
    margin-top: 12px;
  }

  .product-introduction br {
    display: none;
  }

  .privacy {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-menu,
  .menu-dot,
  .back-button img,
  .product-link,
  .product-icon,
  .product-copy {
    transition: none !important;
  }

  .site-menu,
  .site-menu.is-open,
  .menu-button:hover .menu-dot,
  .menu-button[aria-expanded="true"] .menu-dot,
  .back-button:hover img,
  .back-button:focus-visible img,
  .back-button:active img,
  .product-link:hover .product-icon,
  .product-link:focus-visible .product-icon,
  .product-link:hover .product-copy,
  .product-link:focus-visible .product-copy {
    transform: none;
  }

  .brand-symbol {
    view-transition-name: none;
  }

  .page-content {
    view-transition-name: none;
  }

  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}
