@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/plex-sans-300.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Anta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anta-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}

:root {
  --paper: #f4f4f3;
  --paper-light: #fafafa;
  --paper-deep: #ececeb;
  --ink: #161616;
  --muted: #5f5f5f;
  --line: rgba(22, 22, 22, 0.16);
  --accent: #0f62fe;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --edge: clamp(0.9rem, 3vmin, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(120% 100% at 50% 30%, var(--paper-light) 0%, var(--paper) 55%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-height: 520px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

::selection {
  background: rgba(15, 98, 254, 0.14);
}

.crops {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.crop {
  position: absolute;
  width: 12px;
  height: 12px;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.crop::before {
  width: 12px;
  height: 1px;
}

.crop::after {
  width: 1px;
  height: 12px;
}

.crop--tl {
  top: var(--edge);
  left: var(--edge);
}

.crop--tr {
  top: var(--edge);
  right: var(--edge);
}

.crop--bl {
  bottom: var(--edge);
  left: var(--edge);
}

.crop--br {
  bottom: var(--edge);
  right: var(--edge);
}

.crop--tl::before,
.crop--tl::after {
  top: 0;
  left: 0;
}

.crop--tr::before,
.crop--tr::after {
  top: 0;
  right: 0;
}

.crop--bl::before,
.crop--bl::after {
  bottom: 0;
  left: 0;
}

.crop--br::before,
.crop--br::after {
  bottom: 0;
  right: 0;
}

.stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--edge);
}

.plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plate-top {
  padding-top: 0.55rem;
}

.plate-bottom {
  justify-content: center;
  padding-bottom: 0.55rem;
}

.plate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left center;
}

.plate-bottom::before {
  top: auto;
  bottom: 0;
}

.js:not(.is-drawn) .plate::before {
  transform: scaleX(0);
}

.is-drawn .plate::before {
  animation: rule 1s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.plate-label {
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vmin, 16px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.plate-label--brand {
  text-transform: none;
  letter-spacing: 0.08em;
}

.js .plate-label {
  opacity: 0;
}

.is-drawn .plate-label {
  animation: fadeUp 0.8s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.75rem, 2.6vh, 3.5rem);
  padding: 2vh 0 1vh;
}

.wordmark-wrap {
  display: inline-block;
}

.js:not(.is-drawn) .wordmark-wrap {
  clip-path: inset(-30% 100% -30% 0);
}

.is-drawn .wordmark-wrap {
  animation: wipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
}

.wordmark {
  margin: 0;
  font-family: "Anta", var(--sans);
  font-weight: 400;
  font-size: clamp(110px, 11vmin, 280px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: hsl(0deg 0% 0% / 80%);
}

.wordmark .dot {
  display: inline-block;
  color: var(--accent);
  transform-origin: 50% 80%;
}

.is-drawn .wordmark .dot {
  animation: dotIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s both;
}

.tagline {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 2.2vmin, 44px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.tagline .w + .w {
  margin-left: 0.38em;
}

.emblems {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.6rem, 5vmin, 7rem);
  margin-top: clamp(0.2rem, 1vh, 0.8rem);
}

.emblem {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.1vmin, 1.6rem);
}

.emblem svg {
  width: clamp(40px, 6.5vmin, 150px);
  height: auto;
}

.emblem path,
.emblem circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem .accent-stroke {
  stroke: var(--accent);
}

.emblem .accent-fill {
  fill: var(--accent);
  stroke: none;
}

.caption {
  font-family: var(--mono);
  font-size: clamp(11px, 1.35vmin, 20px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.js .caption {
  opacity: 0;
}

.is-drawn .caption {
  animation: fadeUp 0.8s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.statement {
  margin: clamp(1rem, 4vh, 5rem) 0 0;
  font-family: var(--mono);
  font-size: clamp(10px, 1.05vmin, 15px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.fade-up {
  opacity: 1;
}

.js .fade-up {
  opacity: 0;
}

.is-drawn .fade-up {
  animation: fadeUp 0.85s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.back {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.back:hover,
.back:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rule {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes wipe {
  from {
    clip-path: inset(-30% 100% -30% 0);
  }
  to {
    clip-path: inset(-30% -30% -30% -30%);
  }
}

@keyframes dotIn {
  from {
    opacity: 0;
    transform: scale(0.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.is-drawn .crop {
  animation: cropIn 0.6s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes cropIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js:not(.is-drawn) .wordmark-wrap {
    clip-path: none;
  }

  .js .fade-up,
  .js .plate-label,
  .js .caption,
  .fade-up,
  .plate-label,
  .caption {
    opacity: 1;
  }
}
