/* The logo PNG has an opaque white background, so the page stays white. */
:root {
  --page-bg: #ffffff;
  --ink: #231f20; /* the logo's black */
}

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

html,
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
}

body {
  font-family: "Avenir Next", Avenir, "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.brand-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 16px;
  text-align: center;
}

.brand-page__logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: inherit;
}

/* Square stage as wide as the eye's diagonal (~240px), so the spinning eye never overlaps the name. */
.brand-page__eye {
  display: grid;
  place-items: center;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
}

/* The eye itself is the compass needle: it spins about its centre and settles with
   its long axis north-east / south-west. 462 px source at 231 CSS px = sharp on retina. */
.brand-page__needle {
  display: block;
  width: 231px;
  max-width: 96%;
  height: auto;
  transform-origin: 50% 50%;
  transform: rotate(-45deg);
  animation: compass-settle 3.2s 0.4s both;
}

/* Spin past the target, then a damped swing that settles on -45deg (= -765deg). */
@keyframes compass-settle {
  0%   { transform: rotate(0deg);    animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1); }
  38%  { transform: rotate(-835deg); animation-timing-function: ease-in-out; }
  54%  { transform: rotate(-728deg); animation-timing-function: ease-in-out; }
  68%  { transform: rotate(-786deg); animation-timing-function: ease-in-out; }
  80%  { transform: rotate(-755deg); animation-timing-function: ease-in-out; }
  90%  { transform: rotate(-769deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(-765deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-page__needle {
    animation: none;
  }
}

.brand-page__name {
  margin-top: 0.25rem;
  font-family: Futura, "Century Gothic", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.brand-page__tagline {
  margin: 0;
  max-width: 26rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
