@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08080b;
  --paper: #f4f1ea;
  --muted: #a8a3ad;
  --amber: #ffb347;
  --lilac: #b3a1ff;
  --line: rgba(244, 241, 234, 0.12);
  --glass: rgba(244, 241, 234, 0.045);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p,
h1,
figure {
  margin: 0;
}

/* Background light */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 46vmax;
  height: 46vmax;
  right: -14vmax;
  top: -12vmax;
  background: radial-gradient(circle, #ff9d3c 0%, rgba(255, 157, 60, 0) 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.orb-b {
  width: 40vmax;
  height: 40vmax;
  left: -16vmax;
  bottom: -18vmax;
  background: radial-gradient(circle, #6f56ff 0%, rgba(111, 86, 255, 0) 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

.orb-c {
  width: 26vmax;
  height: 26vmax;
  left: 38%;
  top: 46%;
  opacity: 0.22;
  background: radial-gradient(circle, #ffd9a0 0%, rgba(255, 217, 160, 0) 70%);
  animation: drift-a 38s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  to {
    transform: translate3d(-6vmax, 5vmax, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(7vmax, -4vmax, 0) scale(1.12);
  }
}

/* Top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 3.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
  border-radius: 10px;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 500;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem rgba(255, 179, 71, 0);
  }
}

/* Stage */

.stage {
  display: grid;
  align-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  padding-top: clamp(1rem, 3vw, 2rem);
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 11.5vw, 7.25rem);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--amber) 10%, #ff7a59 55%, var(--lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 30ch;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Mascot tile */

.tile {
  position: relative;
  justify-self: start;
  width: min(72vw, 21rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2.5rem;
  background:
    linear-gradient(150deg, rgba(244, 241, 234, 0.1), rgba(244, 241, 234, 0.02) 55%),
    var(--glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2.5rem 5rem -2rem rgba(0, 0, 0, 0.7);
  transform: rotate(-3deg);
  transition: transform 0.7s var(--ease);
}

.tile:hover {
  transform: rotate(-1deg) translateY(-4px);
}

.gus {
  width: 78%;
  height: 78%;
  overflow: visible;
}

.gus-float {
  animation: float 5.5s ease-in-out infinite;
  transform-origin: 100px 110px;
}

@keyframes float {
  50% {
    transform: translateY(-5px);
  }
}

.antenna {
  stroke: #cfc9bc;
  stroke-width: 5;
  stroke-linecap: round;
}

.lamp {
  animation: lamp 2.4s ease-in-out infinite;
  transform-origin: 100px 21px;
}

@keyframes lamp {
  50% {
    opacity: 0.55;
    transform: scale(0.86);
  }
}

.ear {
  transition: transform 0.6s var(--ease);
}

.ear-left {
  transform-origin: 44px 52px;
  transform: rotate(16deg);
}

.ear-right {
  transform-origin: 156px 52px;
  transform: rotate(-16deg);
}

.tile:hover .ear-left {
  transform: rotate(30deg);
}

.tile:hover .ear-right {
  transform: rotate(-30deg);
}

.eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
}

@keyframes blink {
  0%,
  46%,
  50%,
  100% {
    transform: scaleY(1);
  }
  48% {
    transform: scaleY(0.08);
  }
}

.pupil {
  transition: transform 0.12s ease-out;
}

.smile {
  fill: none;
  stroke: #08080b;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.chip {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
}

.chip span {
  color: var(--muted);
  font-weight: 400;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 3.5rem) 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Wide screens: words left, mascot right and lower */

@media (min-width: 60rem) {
  .stage {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 2rem;
  }

  .tile {
    justify-self: end;
    width: min(100%, 27rem);
    margin-top: 9rem;
    transform: rotate(4deg);
  }

  .tile:hover {
    transform: rotate(2deg) translateY(-6px);
  }

  .chip {
    left: 1.4rem;
    bottom: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .status-dot,
  .gus-float,
  .lamp,
  .eye {
    animation: none;
  }

  .tile,
  .ear,
  .pupil {
    transition: none;
  }
}
