@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/web/raleway-latin.woff2") format("woff2");
}

:root {
  --ink: #243b5a;
  --ink-soft: #5a6f86;
  --sky: #eef8ff;
  --sky-deep: #d8ecf8;
  --white: #ffffff;
  --accent: #2459c9;
  --focus: #14264f;
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: "Raleway", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 11px 17px;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.site-header {
  flex: 0 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark,
.brand-mark img {
  width: 38px;
  height: 38px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark img {
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(20, 38, 79, 0.16);
}

main {
  flex: 1;
  display: flex;
}

.announcement {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(24px, 4vh, 40px);
  text-align: center;
}

.announcement-copy {
  margin-bottom: clamp(24px, 4vh, 38px);
}

.announcement-line {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.announcement h1 {
  margin: 12px 0 0;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.announcement h1 span {
  color: var(--accent);
}

.platform-list {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 13px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.platform-separator {
  color: #a8bac8;
  font-weight: 400;
}

.machine-stage {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 1672 / 941;
  margin: 0;
  filter: drop-shadow(0 22px 28px rgba(20, 38, 79, 0.16));
}

.machine-base,
.machine-base img {
  width: 100%;
  height: 100%;
}

.machine-base {
  position: absolute;
  inset: 0;
}

.machine-base img {
  object-fit: contain;
}

.gear {
  position: absolute;
  transform: translate(-50%, -50%);
}

.gear picture,
.gear img {
  width: 100%;
  height: 100%;
}

.gear img {
  transform-origin: 50% 50%;
  animation: gear-spin 6.2s linear infinite;
  will-change: transform;
}

.gear-yellow {
  top: 43.6%;
  left: 32.3%;
  width: 20.26%;
}

.gear-coral {
  top: 43.6%;
  left: 48.2%;
  width: 22.79%;
}

.gear-coral img {
  animation-name: gear-spin-counter;
  animation-duration: 7s;
}

.gear-blue {
  top: 43.6%;
  left: 69%;
  width: 17.73%;
}

.gear-blue img {
  animation-duration: 5.5s;
}

@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gear-spin-counter {
  from { transform: rotate(10deg); }
  to { transform: rotate(-350deg); }
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--sky-deep);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.footer-inner p {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.studio-link {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.studio-link:hover,
.studio-link:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-links a {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.legal-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: currentColor;
}

/* Long-form legal pages */
.legal-body .site-header {
  border-bottom: 1px solid var(--sky-deep);
}

.legal-main {
  display: block;
  padding: clamp(56px, 7vw, 84px) 0 clamp(72px, 9vw, 108px);
}

.legal-document {
  width: min(720px, 100%);
  margin-inline: auto;
}

.legal-document-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--sky-deep);
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-updated {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.legal-updated strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-prose {
  padding-top: 38px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.75;
}

.legal-prose h2 {
  margin: 46px 0 17px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.legal-prose p {
  margin: 0 0 19px;
}

.legal-prose ul {
  margin: -2px 0 23px;
  padding-left: 25px;
}

.legal-prose li {
  padding-left: 5px;
}

.legal-prose li + li {
  margin-top: 5px;
}

.legal-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-prose a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.legal-prose > :last-child {
  margin-bottom: 0;
}

/* 404 page */
.utility-body main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 52px 0 68px;
}

.not-found-card {
  width: min(720px, 100%);
  text-align: center;
}

.error-code {
  margin-bottom: 26px;
  color: var(--accent);
  font-size: clamp(70px, 15vw, 120px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.not-found-card h1 {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found-card p {
  max-width: 540px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 22px;
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

@media (max-height: 800px) and (min-width: 861px) {
  .announcement {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .announcement-copy {
    margin-bottom: 22px;
  }

  .announcement h1 {
    font-size: 58px;
  }

  .machine-stage {
    width: min(680px, 100%);
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(680px, calc(100% - 40px));
  }

  .announcement {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .machine-stage {
    width: min(100%, 560px);
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark,
  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .announcement {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .announcement-copy {
    margin-bottom: 22px;
  }

  .announcement-line {
    font-size: 15px;
  }

  .announcement h1 {
    margin-top: 9px;
    font-size: clamp(40px, 12.5vw, 52px);
  }

  .platform-list {
    margin-top: 13px;
    font-size: 17px;
  }

  .machine-stage {
    width: min(calc(100vw - 32px), 390px);
  }

  .footer-inner {
    min-height: 90px;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 16px;
    row-gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .legal-links {
    gap: 18px;
  }

  .utility-body main {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .legal-main {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .legal-document-header {
    padding-bottom: 27px;
  }

  .legal-document h1 {
    font-size: clamp(38px, 11.5vw, 46px);
    line-height: 1.04;
  }

  .legal-updated {
    margin-top: 14px;
    font-size: 14px;
  }

  .legal-prose {
    padding-top: 30px;
    font-size: 16px;
    line-height: 1.72;
  }

  .legal-prose h2 {
    margin-top: 39px;
    margin-bottom: 14px;
    font-size: 21px;
    line-height: 1.3;
  }

  .legal-prose p {
    margin-bottom: 17px;
  }

  .legal-prose ul {
    margin-bottom: 20px;
    padding-left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .gear img {
    animation: none !important;
    will-change: auto;
  }

  .gear-coral img {
    transform: rotate(10deg);
  }
}
