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

html,
body {
  height: 100%;
}

:root {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --bg-base: #eef1f6;
  --bg-deep: #dde3ec;
  --text: #1a2332;
  --gold: rgba(160, 125, 55, 0.16);
  --gold-soft: rgba(160, 125, 55, 0.09);
  --gold-border: rgba(160, 125, 55, 0.22);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    155deg,
    #f8f9fc 0%,
    var(--bg-base) 42%,
    var(--bg-deep) 100%
  );
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      680px circle at var(--mouse-x) var(--mouse-y),
      var(--gold),
      transparent 62%
    ),
    radial-gradient(
      1100px circle at calc(var(--mouse-x) + 14%) calc(var(--mouse-y) - 10%),
      var(--gold-soft),
      transparent 68%
    );
  opacity: 0;
  transition: opacity 0.8s ease;
}

.ambient.is-active {
  opacity: 1;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.logo-wrap {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 4px;
  box-shadow:
    0 40px 80px rgba(26, 35, 50, 0.14),
    0 12px 32px rgba(26, 35, 50, 0.08);
  transition: box-shadow 0.5s ease;
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mouse-x) var(--mouse-y),
    rgba(201, 169, 98, 0.28),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: soft-light;
}

.logo-wrap.is-active::after {
  opacity: 1;
}

.logo-wrap.is-active {
  box-shadow:
    0 48px 96px rgba(26, 35, 50, 0.18),
    0 16px 40px rgba(26, 35, 50, 0.1);
}

.logo {
  display: block;
  width: min(92vw, calc(78vh * 800 / 450));
  max-height: 78vh;
  max-height: 78dvh;
  height: auto;
  border-radius: 4px;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .logo-wrap::after {
    display: none;
  }

  .logo-wrap {
    transition: none;
  }
}

@media (max-width: 480px) {
  .logo {
    width: min(94vw, calc(68vh * 800 / 450));
    max-height: 68vh;
    max-height: 68dvh;
  }
}
