@font-face { font-family: Inter; src: url("/assets/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/assets/fonts/inter-display-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root,
html[data-theme="black"] {
  --page-bg: #0b0d10;
  --page-fg: #f2f3f5;
  --ink-2: #8b919c;
  --line: #ffffff14;
  --tint: #0f1115;
}
:root {
  --sans: Inter, Arial, sans-serif;
  --display: "Inter Display", Inter, Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --am-brand: #2563eb;
  --cursor-surface: #0f1115;
  --cursor-panel: #15181e;
  --cursor-border: #1e222a;
  --cursor-accent: #3b82f6;
  --hh: 70px;
  --cursor-gutter: clamp(16px, 3.4vw, 36px);
}
body { font-family: var(--sans); background: var(--page-bg); color: var(--page-fg); }
h1,h2,h3 { font-family: var(--display); font-weight: 600; }
h2 { line-height: 1.06; letter-spacing: -.048em; }
a:hover { color: #a8c8ff; }
.wrap, .wrap-wide { width: min(1200px, calc(100% - 2 * var(--cursor-gutter))); padding-inline: 0; }
.btn {
  font: 500 14px/1.25 var(--sans); text-transform: none; letter-spacing: 0;
  border-radius: 9px; gap: 10px; min-height: 45px; padding: 0 18px;
}
.btn--primary { box-shadow: 0 4px 17px #2563eb42, inset 0 1px 0 #ffffff28; }
.btn--ghost { background: #111318 !important; border-color: #414754 !important; }

.site-header {
  height: var(--hh); background: #0b0d10 !important; backdrop-filter: none;
}
.site-header__in {
  position: relative; height: var(--hh); min-height: var(--hh);
  border-bottom: 1px solid #ffffff14; margin-inline: auto;
}
.site-header .brand--full, .site-header .brand img { width: clamp(123px, 11vw, 145px) !important; }
.site-nav__scrim { display: none; }
.site-header .site-nav__list a {
  font: 500 14px/1.3 var(--sans); letter-spacing: 0; color: #959ba6; text-decoration: none;
}
.site-header .site-nav__list a:is(:hover,[aria-current]) { color: #f2f3f5; }
.site-header .site-nav .btn--sm {
  min-height: 42px; padding-inline: 16px; border-radius: 9px;
  font: 600 14px/1.25 var(--sans); letter-spacing: 0;
}
@media (min-width: 900px) {
  .site-header__in { gap: 22px; }
  .site-header .site-nav { flex: 1; justify-content: flex-end; margin: 0; }
  .site-header .site-nav__list { position: absolute; left: 50%; transform: translateX(-50%); gap: clamp(16px, 2.3vw, 30px); }
}
@media (max-width: 899px) {
  .site-header__in { width: min(1200px, calc(100% - 2 * var(--cursor-gutter))); }
  .js .site-header .site-nav { left: calc(-1 * var(--cursor-gutter)); right: calc(-1 * var(--cursor-gutter)); }
  .site-header .site-nav__list a { font-size: 22px; padding: 14px 0; }
}

.cursor-hero.am-hero {
  display: block; position: relative; isolation: isolate; min-height: 0;
  padding-block: clamp(62px, 7.2vw, 96px) clamp(48px, 5.7vw, 72px);
}
.cursor-hero.am-hero::before {
  inset: 0 auto auto 50%; width: min(1200px, 100vw); height: calc(100% + 250px);
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 310px 310px at 90px 250px, #6d28d952, #6d28d900 70%),
    radial-gradient(ellipse 360px 260px at calc(50% + 60px) 760px, #2f6bff38, #c026d31a 45%, #2f6bff00 72%);
  filter: blur(40px);
}
.cursor-hero__in { display: grid; place-items: center; }
.cursor-hero .am-hero__copy { width: min(100%, 820px); text-align: center; }
.cursor-hero .am-kicker {
  display: block; margin: 0 0 28px; color: #7d8491;
  font: 500 12px/1.45 var(--mono); letter-spacing: .015em; text-transform: none;
}
.cursor-hero h1 {
  font: 600 clamp(42px, 6.4vw, 80px)/1.015 var(--display);
  letter-spacing: -.062em; text-wrap: initial;
}
.cursor-hero h1 .am-selection {
  font: inherit; letter-spacing: inherit; margin: .075em 0 0; padding: 0 .075em .035em;
  outline-color: #3b82f6;
}
.cursor-hero h1 .am-selection small {
  left: 50%; right: auto; transform: translateX(-50%); bottom: -18px;
  padding: 1px 6px; border-radius: 3px; background: #2563eb; white-space: nowrap;
}
.cursor-hero__intro {
  display: grid; grid-template-columns: auto minmax(0, 335px); align-items: center; justify-content: center;
  gap: clamp(14px, 2.6vw, 34px); margin-top: clamp(28px, 3.1vw, 42px); text-align: left;
}
.cursor-hero__mascot { position: relative; width: clamp(118px, 12vw, 166px); aspect-ratio: 1; }
html:not(.js) .cursor-hero__mascot {
  background: url("/assets/img/capsule-pal-faces.png") 16.6667% 0 / 700% 100% no-repeat;
}
.cursor-hero .am-hero__description {
  margin: 0 0 16px; font-size: clamp(15px, 1.45vw, 18px); line-height: 1.55; color: #939aa7;
}
.cursor-hero .hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.cursor-hero .hero__actions .btn { min-height: 45px; font-size: 14px; padding-inline: 17px; }
.cursor-replay { cursor: pointer; }
.cursor-replay svg { width: 15px; height: 15px; }
.cursor-hero__note { color: #737986; margin-top: 18px; font: 500 11px/1.45 var(--mono); }
.cursor-hero__note-touch { display: none; }
html:not(.am-has-build) :is(.cursor-replay,.cursor-hero__note) { display: none; }

.cursor-showcase { position: relative; padding-bottom: clamp(52px, 7vw, 96px); }
.cursor-showcase__frame {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: clamp(410px, 45vw, 540px); padding: clamp(16px, 2.5vw, 34px);
  background: #17131e; border-radius: 16px;
}
.cursor-showcase__art, .cursor-showcase__selection { position: absolute; inset: 0; border-radius: inherit; }
.cursor-showcase__art { overflow: hidden; z-index: -1; }
.cursor-showcase__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.cursor-showcase__selection { pointer-events: none; border: 1px solid #3b82f6; }
.cursor-showcase__selection i {
  position: absolute; width: 7px; height: 7px; background: white; border: 1px solid #3b82f6;
}
.cursor-showcase__selection i:nth-child(1) { left: -4px; top: -4px; }
.cursor-showcase__selection i:nth-child(2) { right: -4px; top: -4px; }
.cursor-showcase__selection i:nth-child(3) { left: -4px; bottom: -4px; }
.cursor-showcase__selection i:nth-child(4) { right: -4px; bottom: -4px; }
.cursor-showcase .cursor-showcase__player {
  width: min(51%, 525px); max-width: none; margin: 0; padding: 13px;
  background: #111318de; border: 1px solid #ffffff2c; border-radius: 12px;
  box-shadow: 0 20px 50px #0008, 0 2px 6px #0005; backdrop-filter: blur(14px);
}
.cursor-showcase .am-film .hero2__panel {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9 !important;
}
.cursor-showcase .am-film__bar { padding: 2px 1px 10px; font-size: 10px; }
.cursor-showcase .am-film__bar h2 {
  display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0;
}
.cursor-showcase .am-film__bar b { background: #34d399; width: 6px; height: 6px; }
.cursor-showcase .am-film__caption { padding: 8px 0 0; }
.cursor-showcase #hero-art { inset: 0; aspect-ratio: auto; }
@media (max-width: 809px) {
  .cursor-showcase .cursor-showcase__player { width: min(72%, 470px); }
}
@media (max-width: 570px) {
  .cursor-hero.am-hero { padding-block: clamp(34px, 9vw, 50px) 38px; }
  .cursor-hero .am-kicker { font-size: 10px; margin-bottom: 21px; }
  .cursor-hero h1 { font-size: clamp(36px, 8.8vw, 49px); }
  .cursor-hero__intro {
    grid-template-columns: minmax(0, 320px); justify-items: center;
    gap: 10px; margin-top: 27px; text-align: center;
  }
  .cursor-hero__mascot { width: clamp(84px, 25vw, 106px); }
  .cursor-hero .am-hero__description { max-width: 29ch; margin: 0 auto 15px; }
  .cursor-hero .hero__actions { justify-content: center; }
  .cursor-hero .hero__actions .btn { padding-inline: 13px; font-size: 13px; }
  .cursor-showcase__frame { padding: 13px; min-height: 300px; }
  .cursor-showcase .cursor-showcase__player { width: 100%; padding: 9px; }
}
@media (max-width: 570px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .cursor-hero__note-key { display: none; }
  .cursor-hero__note-touch { display: inline; }
  .cursor-showcase .am-film .hero2__panel { aspect-ratio: 4/5 !important; }
  .cursor-showcase .hero-sound { min-height: 44px; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .cursor-showcase__frame { justify-content: center; min-height: 0; }
  .cursor-showcase .cursor-showcase__player { width: clamp(154px, calc((100svh - 150px) * .8), 330px); }
}

/* Cursor tips are the rotation origin. Labels and the typing beam stay screen-aligned. */
.am-airmail { z-index: 105; }
.am-airmail .am-plane, .am-airmail .am-plane:nth-child(even) {
  width: 17px; height: 22px; transform-origin: 0 0; opacity: 1 !important; color: var(--plane-color);
}
.am-plane .am-pointer-shape { position: absolute; top: -2px; left: -2px; width: 17px; height: 22px; overflow: visible; }
.am-plane .am-pointer-type { display: none; position: absolute; left: -4px; top: -8px; width: 8px; height: 16px; }
.am-plane[data-build-typing] .am-pointer-shape { display: none; }
.am-plane[data-build-typing] .am-pointer-type { display: block; }
.am-plane.is-building .am-pointer-label {
  top: 16px; left: 9px; font: 700 9px/1.25 var(--sans); padding: 2px 6px;
  border-radius: 7px; color: #0b0d10;
}
.am-build-outline { z-index: 99; border-color: #3b82f6; }
.am-build-outline span { background: #2563eb; }
.am-build-caret { z-index: 104; }
.am-build-line {
  position: fixed; left: 0; right: 0; top: 86%; z-index: 96; height: 1px;
  background: #ef4444ab; color: #ff8282; pointer-events: none; opacity: 0;
  transition: opacity .22s ease;
}
.am-build-line span {
  position: absolute; right: 15px; bottom: 4px; font: 600 8px var(--mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.am-building .am-build-line { opacity: .72; }
.site-header.is-open ~ .am-build-line { display: none; }

details.am-build-toolbar {
  left: 50%; right: auto; bottom: 19px; transform: translateX(-50%);
  border-color: #252932; background: #111318f0; max-width: calc(100vw - 24px);
}
.am-build-toolbar > summary { justify-content: center; gap: 9px; min-height: 36px; font: 500 11px var(--mono); }
.am-motion-avatars { display: flex; align-items: center; padding-left: 4px; }
.am-motion-avatars i {
  display: grid; place-items: center; width: 15px; height: 15px;
  margin-left: -4px; border: 1px solid #111318; border-radius: 50%;
  color: #0b0d10; background: var(--agent); font: 700 8px/1 var(--sans); font-style: normal;
}
.am-build-toolbar > summary > .am-motion-inline-count { color: #d7dbe2; font: inherit; white-space: nowrap; }
.am-build-toolbar > summary > .am-build-track { height: 3px; display: block; background: #ffffff1b; }
.am-build-track b { background: #3b82f6; }
@media(max-width:640px) {
  details.am-build-toolbar { bottom: 10px; }
  .am-build-toolbar > summary { min-height: 32px; }
  .am-build-line { display: none; }
}
@media (max-width: 570px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  details.am-build-toolbar {
    left: auto; right: max(12px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
    transform: none;
  }
  .am-build-toolbar > summary { min-height: 44px; }
  .am-build-toolbar > summary > :is(.am-motion-avatars, .am-motion-inline-count, .am-build-track) { display: none; }
}
