:root {
  --header-height: 81px;
  --footer-height: 151px;
  --home-banner-height: 100vh;
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.55, 0, 1, 0.45);
  --page-text: #0a0a0a;
  --muted-text: #4a5565;
  --field-border: #d1d5dc;
  --content-width: 1276px;
  --form-width: 574px;
}

@supports (height: 100svh) {
  :root {
    --home-banner-height: 100svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--page-text);
  background: #fff;
  font-family: "MiSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body[data-route="contact"] {
  overflow: hidden;
}

body.is-transitioning {
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

img {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 54px 0 64px;
  color: #fff;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 420ms var(--ease-apple), border-color 420ms var(--ease-apple), color 420ms var(--ease-apple);
}

body[data-route="contact"] .site-header {
  color: #000;
  background: #fff;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.brand {
  width: 159px;
  height: 29px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.brand-logo {
  position: relative;
  display: block;
  width: 159px;
  height: 29px;
}

.brand-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 30.74px;
  height: 29px;
}

.brand-wordmark {
  position: absolute;
  left: 3.45px;
  top: 4.22px;
  width: 155.56px;
  height: 17.19px;
}

.brand-logo img {
  transition: filter 420ms var(--ease-apple), opacity 420ms var(--ease-apple);
}

body:not([data-route="contact"]) .brand-logo img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: var(--header-height);
}

.nav-link {
  position: relative;
  width: 106px;
  height: var(--header-height);
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: color 260ms var(--ease-apple);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.55);
  transform-origin: center;
  transition: opacity 420ms var(--ease-apple), transform 520ms var(--ease-apple);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #fff;
}

body[data-route="contact"] .nav-link {
  color: rgba(0, 0, 0, 0.7);
}

body[data-route="contact"] .nav-link:hover,
body[data-route="contact"] .nav-link:focus-visible,
body[data-route="contact"] .nav-link.is-active {
  color: #000;
}

body[data-route="contact"] .nav-link::after {
  width: 63px;
}

.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.page-stage {
  position: relative;
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

body[data-route="contact"] .page-stage {
  background: #fff;
}

.view {
  position: relative;
  z-index: 1;
  width: 100%;
  display: none;
  overflow: hidden;
  opacity: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.view.is-active,
.view.is-exiting {
  display: block;
}

.view.is-active {
  opacity: 1;
  animation: pageEnter 820ms var(--ease-apple) both;
}

.view.is-exiting {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  animation: pageExit 540ms var(--ease-exit) both;
}

.home-view {
  margin-top: 0;
  height: calc(100vh - var(--footer-height));
  height: calc(100svh - var(--footer-height));
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  background: #020203;
  box-shadow: 0 0 0 2px #020203;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #030304;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.015) translateZ(0);
  transform-origin: center;
}

.hero-canvas[data-background="prism"] {
  filter: blur(0.5px);
}

.hero-canvas[data-background="color-bends"] {
  transform: scale(1.04) translateZ(0);
  filter: brightness(0.72) contrast(1.2) saturate(0.96);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.12) 44%, rgba(0, 0, 0, 0.3) 72%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.16) 100%),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.04), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(9, 17, 28, 0.22), transparent 40%);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(36px, 3.44vw, 66px);
  bottom: 74px;
  width: min(68vw, 1214px);
  color: #fff;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(24px, 1.875vw, 36px);
  font-weight: 400;
  line-height: 1.4;
}

.hero-copy h1 {
  margin: 0;
  max-width: 1214px;
  font-size: clamp(44px, calc(3.438vw + 4px), 70px);
  font-weight: 500;
  line-height: 1.4;
}

.keep-phrase {
  display: inline-block;
}

.banner-tabs {
  position: absolute;
  z-index: 4;
  right: clamp(40px, 4.79vw, 92px);
  bottom: 82px;
  display: flex;
  gap: 13px;
  align-items: center;
}

.banner-tab {
  position: relative;
  width: 80px;
  height: 24px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.banner-tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.banner-tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scaleX(1);
  transition: background 420ms var(--ease-apple), transform 520ms var(--ease-apple), opacity 420ms var(--ease-apple);
}

.banner-tab:hover::before,
.banner-tab:focus-visible::before {
  background: rgba(255, 255, 255, 0.66);
}

.banner-tab.is-active::before {
  background: #fff;
  transform: translateY(-50%) scaleX(1.02);
}

.contact-view {
  height: calc(100vh - var(--footer-height));
  height: calc(100svh - var(--footer-height));
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 186px 32px 72px;
  background: #fff;
}

.contact-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading {
  text-align: center;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(34px, 2.492vw, 47.84px);
  font-weight: 500;
  line-height: 1;
}

.section-heading p {
  margin: 15.95px 0 0;
  color: var(--muted-text);
  font-size: clamp(16px, 1.038vw, 19.93px);
  line-height: 1.4;
  text-wrap: balance;
}

.contact-form {
  width: min(100%, var(--form-width));
  margin: 64px auto 0;
}

.contact-form h2 {
  margin: 0 0 31.89px;
  font-size: clamp(24px, 1.557vw, 29.9px);
  font-weight: 500;
  line-height: 1.2;
}

.field {
  display: block;
  margin: 0 0 23.92px;
}

.field span {
  display: block;
  padding-bottom: 7.97px;
  color: var(--page-text);
  font-size: 13.95px;
  font-weight: 500;
  line-height: 19.93px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--page-text);
  background: #fff;
  font-size: 15.95px;
  outline: none;
  transition: border-color 220ms var(--ease-apple), box-shadow 260ms var(--ease-apple);
}

.field input {
  height: 49.83px;
  padding: 0 16.94px;
}

.field textarea {
  min-height: 169.43px;
  resize: vertical;
  padding: 12.96px 16.94px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.field input:focus,
.field textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c62828;
}

.field-error {
  display: block;
  min-height: 18px;
  padding-top: 4px;
  color: #c62828;
  font-size: 12px;
  line-height: 18px;
}

.submit-button {
  width: 100%;
  height: 59.8px;
  border-radius: 10px;
  color: #fff;
  background: #000;
  font-size: 17.94px;
  font-weight: 500;
  line-height: 27.91px;
  cursor: pointer;
  transition: transform 260ms var(--ease-apple), background 260ms var(--ease-apple), box-shadow 260ms var(--ease-apple);
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #1f1f1f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.submit-button:active {
  transform: translateY(1px) scale(0.998);
}

.form-note {
  margin: 23.92px 0 0;
  color: #6a7282;
  font-size: 13.95px;
  line-height: 19.93px;
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 10;
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 77px;
  color: rgba(255, 255, 255, 0.4);
  background: #000;
}

.footer-copy {
  width: min(100%, 860px);
  text-align: left;
  transform: translateX(-18px);
}

.footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  line-height: 24px;
}

.footer-copy p + p {
  margin-top: 6px;
}

.footer-mark {
  width: 39.22px;
  height: 37px;
  flex: 0 0 auto;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  background: #000;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 260ms var(--ease-apple), transform 320ms var(--ease-apple);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
}

.view.is-active .reveal-item {
  animation: revealUp 820ms var(--ease-apple) both;
}

.view.is-active .hero-kicker {
  animation-delay: 160ms;
}

.view.is-active .hero-copy h1 {
  animation-delay: 280ms;
}

.view.is-active .section-heading {
  animation-delay: 140ms;
}

.view.is-active .contact-form {
  animation-delay: 260ms;
}

.home-view.is-active {
  animation: homeEnter 760ms var(--ease-apple) both;
}

.home-view.is-exiting {
  top: 0;
  bottom: auto;
  height: calc(100vh - var(--footer-height));
  height: calc(100svh - var(--footer-height));
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  margin-top: 0;
  background: #020203;
  animation: homeExit 640ms var(--ease-apple) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(1.006);
    filter: blur(8px);
  }
}

@keyframes homeEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes homeExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 1180px) {
  .site-header {
    padding-left: 40px;
    padding-right: 34px;
  }

  .hero-copy {
    width: min(76vw, 920px);
  }

  .hero-copy h1 {
    line-height: 1.28;
  }

  .banner-tabs {
    right: 44px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
    --footer-height: 136px;
  }

  .site-header {
    padding: 0 24px;
  }

  .brand,
  .brand-logo {
    width: 132px;
    height: 24px;
  }

  .brand-mark {
    width: 25.44px;
    height: 24px;
  }

  .brand-wordmark {
    left: 2.85px;
    top: 3.49px;
    width: 128.76px;
    height: 14.22px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-link {
    width: auto;
    min-width: 56px;
    padding: 0 8px;
    font-size: 14px;
  }

  .nav-link::after {
    width: calc(100% - 16px);
  }

  .home-view {
    min-height: calc(100vh - var(--footer-height));
    min-height: calc(100svh - var(--footer-height));
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 104px;
    width: auto;
  }

  .hero-kicker {
    font-size: 22px;
  }

  .hero-copy h1 {
    max-width: 680px;
    font-size: 42px;
  }

  .banner-tabs {
    left: 24px;
    right: auto;
    bottom: 52px;
    gap: 10px;
  }

  .banner-tab {
    width: 58px;
  }

  .contact-view {
    padding: 132px 24px 72px;
  }

  .contact-form {
    margin-top: 48px;
  }

  .site-footer {
    min-height: var(--footer-height);
    padding: 28px 24px;
  }

  .footer-copy p {
    font-size: 13px;
    line-height: 21px;
  }

  .footer-copy {
    transform: none;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 64px;
    --footer-height: 156px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand,
  .brand-logo {
    width: 118px;
    height: 22px;
  }

  .brand-mark {
    width: 23.31px;
    height: 22px;
  }

  .brand-wordmark {
    left: 2.62px;
    top: 3.2px;
    width: 118.08px;
    height: 13.04px;
  }

  .nav-link {
    min-width: 48px;
    padding: 0 5px;
    font-size: 13px;
  }

  .nav-link::after {
    width: calc(100% - 10px);
  }

  .home-view {
    min-height: calc(100vh - var(--footer-height));
    min-height: calc(100svh - var(--footer-height));
  }

  .hero-copy {
    bottom: 110px;
  }

  .hero-kicker {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 35px;
    line-height: 1.22;
  }

  .banner-tabs {
    bottom: 48px;
  }

  .banner-tab {
    width: 48px;
  }

  .contact-view {
    padding: 112px 18px 56px;
  }

  .section-heading h1 {
    font-size: 32px;
  }

  .section-heading p {
    max-width: 354px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    word-break: keep-all;
  }

  .contact-form {
    margin-top: 40px;
  }

  .field {
    margin-bottom: 18px;
  }

  .field input {
    height: 48px;
  }

  .field textarea {
    min-height: 148px;
  }

  .submit-button {
    height: 54px;
    font-size: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-mark {
    align-self: flex-end;
    width: 34px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
