/* Molt site. Every colour comes from the design system tokens in tokens.css. */

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

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--molt-bg-canvas);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--molt-bg-canvas);
  color: var(--molt-text-primary);
  font-family: var(--molt-type-body-family);
  font-size: var(--molt-type-body-size);
  font-weight: var(--molt-type-body-weight);
  line-height: var(--molt-type-body-line-height);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--molt-brand-ink);
}

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

main:focus {
  outline: none;
}

code,
pre {
  font-family: var(--molt-font-mono);
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--molt-radius-sm);
  background: var(--molt-brand-primary);
  color: var(--molt-text-on-brand);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--molt-bg-canvas);
  border-bottom: 1px solid var(--molt-border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, 100% - 32px);
  min-height: 68px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--molt-text-primary);
  font-family: var(--molt-font-serif);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: none;
  margin-inline: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--molt-radius-pill);
  color: var(--molt-text-secondary);
  font-family: var(--molt-font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--molt-duration-fast) var(--molt-easing-standard);
}

.site-nav a:hover,
.header-link:hover {
  background: var(--molt-bg-surface);
  color: var(--molt-text-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header__actions .header-link[href^="https://github.com"] {
  display: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-round);
  background: transparent;
  color: var(--molt-text-primary);
  cursor: pointer;
  transition: background var(--molt-duration-fast) var(--molt-easing-standard);
}

.theme-toggle:hover {
  background: var(--molt-bg-surface);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: var(--molt-radius-round);
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

@media (min-width: 760px) {
  .site-nav {
    display: block;
  }

  .site-header__actions .header-link[href^="https://github.com"] {
    display: inline-flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--molt-radius-pill);
  font-family: var(--molt-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--molt-duration-base) var(--molt-easing-standard),
    transform var(--molt-duration-base) var(--molt-easing-standard);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--molt-brand-primary);
  color: var(--molt-text-on-brand);
}

.btn--primary:hover {
  background: var(--molt-brand-hover);
}

.btn--secondary {
  border-color: var(--molt-border-strong);
  background: transparent;
  color: var(--molt-text-primary);
}

.btn--secondary:hover {
  background: var(--molt-bg-surface);
}

.btn--ghost {
  padding-inline: 4px;
  color: var(--molt-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--molt-brand-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Sections */

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section__header {
  max-width: 740px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-family: var(--molt-type-h2-family);
  font-size: var(--molt-type-h2-size);
  font-weight: var(--molt-type-h2-weight);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 20px 0 0;
  color: var(--molt-text-secondary);
  font-family: var(--molt-type-lead-family);
  font-size: var(--molt-type-lead-size);
  font-weight: var(--molt-type-lead-weight);
  line-height: var(--molt-type-lead-line-height);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--molt-brand-ink);
  font-family: var(--molt-type-eyebrow-family);
  font-size: 12.5px;
  font-weight: var(--molt-type-eyebrow-weight);
  letter-spacing: var(--molt-type-eyebrow-tracking);
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--molt-type-display-family);
  font-size: clamp(42px, 5.9vw, 84px);
  font-weight: var(--molt-type-display-weight);
  line-height: var(--molt-type-display-line-height);
  letter-spacing: -0.015em;
}

.hero .lead {
  max-width: 560px;
  font-family: var(--molt-font-body);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-md);
  background: var(--molt-bg-surface);
}

.install__command {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.install__copy {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-sm);
  background: var(--molt-bg-canvas);
  color: var(--molt-text-primary);
  font-family: var(--molt-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.install__copy:hover {
  background: var(--molt-brand-soft);
}

.hero__trust {
  margin: 20px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Kept short on purpose: the title is the LCP element, so a long fade would delay it. */
  .hero__copy > * {
    animation: rise calc(var(--molt-duration-reveal) * 1.3) var(--molt-easing-emphasized) backwards;
  }

  .hero__copy > :nth-child(2) { animation-delay: 40ms; }
  .hero__copy > :nth-child(3) { animation-delay: 80ms; }
  .hero__copy > :nth-child(4) { animation-delay: 130ms; }
  .hero__copy > :nth-child(5) { animation-delay: 180ms; }
  .hero__copy > :nth-child(6) { animation-delay: 220ms; }

  .hero__ide {
    animation: rise calc(var(--molt-duration-reveal) * 1.5) var(--molt-easing-emphasized) 100ms backwards;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

/* IDE window */

.hero__ide {
  margin: 0;
  min-width: 0;
}

.hero__ide figcaption {
  margin-top: 14px;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

.ide {
  overflow: hidden;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-lg);
  background: var(--molt-bg-surface);
  box-shadow: var(--molt-shadow-paper);
}

.ide__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--molt-border-subtle);
  background: var(--molt-bg-elevated);
}

.ide__dots {
  display: flex;
  gap: 7px;
  padding-bottom: 10px;
}

.ide__dots span {
  width: 11px;
  height: 11px;
  border-radius: var(--molt-radius-round);
  background: var(--molt-border-strong);
}

.ide__tab {
  margin-bottom: -1px;
  padding: 8px 14px;
  border-bottom: 2px solid var(--molt-brand-primary);
  color: var(--molt-text-primary);
  font-family: var(--molt-font-mono);
  font-size: 13px;
  font-weight: 500;
}

.ide__code {
  margin: 0;
  padding: 18px 0;
  overflow-x: auto;
  color: var(--molt-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  tab-size: 4;
}

.ide__code code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding-inline: 16px;
}

.ide__num {
  display: inline-block;
  width: 2.5ch;
  margin-right: 18px;
  color: var(--molt-text-muted);
  text-align: right;
  user-select: none;
}

.ide,
.codebox {
  /* Accent colours are blends of design-system tokens, so they follow the theme. */
  --tok-gold: color-mix(in srgb, var(--molt-palette-mustard-base) 42%, var(--molt-text-primary));
  --tok-rose: color-mix(in srgb, var(--molt-brand-ink) 50%, var(--molt-text-primary));
}

.tok-keyword {
  color: var(--molt-brand-ink);
}

.tok-string {
  color: color-mix(in srgb, var(--molt-status-info) 78%, var(--molt-text-primary));
}

.tok-function,
.tok-macro {
  color: var(--tok-gold);
  font-weight: 600;
}

.tok-flag {
  color: var(--tok-gold);
}

.tok-type {
  color: var(--tok-rose);
  font-weight: 700;
}

.tok-comment {
  color: var(--molt-text-muted);
  font-style: italic;
}

.tok-prompt {
  color: var(--molt-text-muted);
  user-select: none;
}

/* Features */

.feature-grid {
  display: grid;
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-card);
  background: var(--molt-bg-surface);
  box-shadow: var(--molt-shadow-card);
}

.feature-card h3 {
  font-family: var(--molt-font-sans);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--molt-text-secondary);
}

.feature-card--lead {
  border-color: transparent;
  background: var(--molt-brand-soft);
}

.feature-card--lead h3 {
  font-family: var(--molt-font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card--lead {
    grid-column: span 2;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Benefits */

.benefits {
  border-block: 1px solid var(--molt-border-subtle);
  background: var(--molt-bg-surface);
}

.stats {
  display: grid;
  gap: 32px 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-top: 20px;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--molt-brand-primary);
  transform-origin: left center;
}

.stat__value {
  color: var(--molt-brand-ink);
  font-family: var(--molt-font-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stat__label {
  font-weight: 700;
}

.stat__note {
  margin: 4px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hosting {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-panel);
  background: var(--molt-bg-canvas);
}

.hosting h3 {
  font-family: var(--molt-type-h3-family);
  font-size: var(--molt-type-h3-size);
  font-weight: var(--molt-type-h3-weight);
  line-height: var(--molt-type-h3-line-height);
}

.hosting > div > p,
.hosting > p {
  margin: 16px 0 0;
  color: var(--molt-text-secondary);
}

.hosting__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.hosting__steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--molt-border-subtle);
  border-radius: var(--molt-radius-md);
  background: var(--molt-bg-surface);
  counter-increment: step;
}

.hosting__steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--molt-radius-round);
  background: var(--molt-brand-primary);
  color: var(--molt-text-on-brand);
  font-family: var(--molt-font-sans);
  font-weight: 800;
}

@media (min-width: 900px) {
  .hosting {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 48px;
  }
}

/* WebAssembly */

.wasm__head {
  max-width: 740px;
}

.wasm__head .btn {
  margin-top: 28px;
}

.wasm__caption {
  margin: 48px 0 0;
  color: var(--molt-text-muted);
  font-family: var(--molt-type-caption-family);
  font-size: var(--molt-type-caption-size);
  font-weight: var(--molt-type-caption-weight);
}

.wasm__boxes {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.codebox {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-lg);
  background: var(--molt-bg-surface);
  box-shadow: var(--molt-shadow-paper);
}

.codebox--terminal {
  background: var(--molt-bg-canvas);
}

.codebox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--molt-border-subtle);
  background: var(--molt-bg-elevated);
}

.codebox__label {
  color: var(--molt-text-muted);
  font-family: var(--molt-font-mono);
  font-size: 12.5px;
  font-weight: 500;
}

.codebox__code {
  flex: 1;
  margin: 0;
  padding: 18px 0;
  overflow-x: auto;
  color: var(--molt-text-primary);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
  tab-size: 2;
}

.codebox__code code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding-inline: 16px;
}

@media (min-width: 760px) {
  .wasm__boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Closing call to action */

.cta__inner {
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: var(--molt-radius-panel);
  background: var(--molt-brand-soft);
  text-align: center;
}

.cta__inner .lead {
  max-width: 620px;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--molt-border-subtle);
}

.site-footer__inner {
  display: grid;
  gap: 20px;
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.site-footer__tagline {
  margin: 0;
  max-width: 460px;
  font-family: var(--molt-font-serif);
  font-size: 20px;
  line-height: 1.3;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer__fine {
  margin: 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

.consent-manage {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--molt-text-primary);
  font-family: var(--molt-font-sans);
  font-size: var(--molt-type-small-size);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Consent banner */

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-left: auto;
  padding: 18px 20px;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-lg);
  background: var(--molt-bg-elevated);
  box-shadow: var(--molt-shadow-card);
}

.consent__message {
  margin: 0;
  font-size: var(--molt-type-small-size);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent .btn {
  min-height: 44px;
  padding-inline: 18px;
}

/* 404 */

.not-found {
  display: grid;
  gap: 40px;
  width: min(760px, 100% - 32px);
  padding-block: clamp(56px, 10vw, 120px);
}

.not-found__block h1,
.not-found__block h2 {
  font-family: var(--molt-font-serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.not-found__block p {
  margin: 16px 0 24px;
  color: var(--molt-text-secondary);
}

.not-found__block + .not-found__block {
  padding-top: 40px;
  border-top: 1px solid var(--molt-border-subtle);
}

/* Privacy policy */

.policy {
  padding-block: clamp(40px, 7vw, 88px);
}

.policy__inner {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

.policy h1 {
  font-family: var(--molt-type-display-family);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: var(--molt-type-display-weight);
  line-height: var(--molt-type-display-line-height);
}

.policy__updated {
  margin: 16px 0 0;
  color: var(--molt-text-muted);
  font-size: var(--molt-type-small-size);
}

.policy__section {
  margin-top: 40px;
}

.policy__section h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
}

.policy__section p,
.policy__section li {
  margin: 12px 0 0;
  color: var(--molt-text-secondary);
}

.policy__section ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.policy__contact strong {
  color: var(--molt-text-primary);
}

.policy .btn {
  margin-top: 48px;
}

.consent__link {
  font-size: var(--molt-type-small-size);
  font-weight: 600;
}

/* Scroll progress and header state */

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  height: 3px;
  background: var(--molt-brand-primary);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.site-header {
  transition:
    box-shadow var(--molt-duration-slow) var(--molt-easing-standard),
    border-color var(--molt-duration-slow) var(--molt-easing-standard);
}

.site-header.is-scrolled {
  border-bottom-color: var(--molt-border-strong);
  box-shadow: var(--molt-shadow-card);
}

/* Hero backdrop: glows, a drifting grid and stacked sheets (the layers of the logo) */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Fade the backdrop out at the bottom so it never ends in a hard edge. */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent);
  mask-image: linear-gradient(to bottom, black 70%, transparent);
}

.hero__glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: var(--molt-radius-round);
  translate: 0 calc(var(--hero-shift, 0) * 110px);
}

.hero__glow--coral {
  top: -22%;
  right: -14%;
  width: min(760px, 90vw);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--molt-brand-primary) 38%, transparent),
    transparent
  );
}

.hero__glow--mustard {
  bottom: -30%;
  left: -16%;
  width: min(620px, 80vw);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--molt-palette-mustard-base) 22%, transparent),
    transparent
  );
  translate: 0 calc(var(--hero-shift, 0) * -70px);
}

.hero__lines {
  position: absolute;
  inset: -56px;
  background-image:
    linear-gradient(var(--molt-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--molt-border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 35%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 35%, black, transparent 75%);
  translate: 0 calc(var(--hero-shift, 0) * 36px);
}

.hero__sheet {
  display: none;
  position: absolute;
  top: 20%;
  right: 3%;
  width: min(44vw, 520px);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--molt-border-strong);
  border-radius: var(--molt-radius-panel);
  background: color-mix(in srgb, var(--molt-bg-surface) 55%, transparent);
  rotate: -8deg;
}

.hero__sheet--1 {
  transform: translate(-48px, 44px);
  translate: 0 calc(var(--hero-shift, 0) * -26px);
}

.hero__sheet--2 {
  transform: translate(-24px, 22px);
  translate: 0 calc(var(--hero-shift, 0) * -52px);
}

.hero__sheet--3 {
  border-color: color-mix(in srgb, var(--molt-brand-primary) 55%, transparent);
  translate: 0 calc(var(--hero-shift, 0) * -78px);
}

.hero__ide {
  translate: 0 calc(var(--hero-shift, 0) * -26px);
}

@media (min-width: 960px) {
  .hero__sheet {
    display: block;
  }
}

/* Motion: entrance animations triggered by scrolling. Hidden only while `is-pending`, which
   motion.js adds to below-the-fold elements and only when motion is welcome. */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    animation: reveal-up calc(var(--molt-duration-reveal) * 2.2) var(--molt-easing-emphasized) backwards;
  }

  [data-reveal="left"] { animation-name: reveal-left; }
  [data-reveal="right"] { animation-name: reveal-right; }
  [data-reveal="scale"] { animation-name: reveal-scale; }
  [data-reveal="line"] { animation-name: reveal-fade; }

  [data-reveal].is-pending {
    animation: none;
    opacity: 0;
  }

  [data-delay="1"] { animation-delay: 90ms; }
  [data-delay="2"] { animation-delay: 180ms; }
  [data-delay="3"] { animation-delay: 270ms; }
  [data-delay="4"] { animation-delay: 360ms; }
  [data-delay="5"] { animation-delay: 450ms; }
  [data-delay="6"] { animation-delay: 540ms; }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(34px);
    }
  }

  @keyframes reveal-left {
    from {
      opacity: 0;
      transform: translateX(-56px);
    }
  }

  @keyframes reveal-right {
    from {
      opacity: 0;
      transform: translateX(56px);
    }
  }

  @keyframes reveal-scale {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.94);
    }
  }

  @keyframes reveal-fade {
    from {
      opacity: 0;
    }
  }

  /* The line above each number draws itself in. */
  .stat:not(.is-pending)::before {
    animation: draw-line calc(var(--molt-duration-reveal) * 3) var(--molt-easing-emphasized) 120ms backwards;
  }

  .stat.is-pending::before {
    transform: scaleX(0);
  }

  @keyframes draw-line {
    from {
      transform: scaleX(0);
    }
  }

  /* Code lines type in one after another once their box arrives. */
  .codebox:not(.is-pending) .codebox__line {
    animation: line-in var(--molt-duration-reveal) var(--molt-easing-emphasized) backwards;
  }

  .codebox__line:nth-child(1) { animation-delay: 260ms; }
  .codebox__line:nth-child(2) { animation-delay: 320ms; }
  .codebox__line:nth-child(3) { animation-delay: 380ms; }
  .codebox__line:nth-child(4) { animation-delay: 440ms; }
  .codebox__line:nth-child(5) { animation-delay: 500ms; }
  .codebox__line:nth-child(6) { animation-delay: 560ms; }
  .codebox__line:nth-child(7) { animation-delay: 620ms; }
  .codebox__line:nth-child(8) { animation-delay: 680ms; }
  .codebox__line:nth-child(9) { animation-delay: 740ms; }
  .codebox__line:nth-child(n + 10) { animation-delay: 800ms; }

  @keyframes line-in {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
  }

  /* Backdrop motion: slow, transform-only, so it stays on the compositor. */
  .hero__glow--coral {
    animation: drift-a 22s var(--molt-easing-standard) infinite alternate;
  }

  .hero__glow--mustard {
    animation: drift-b 28s var(--molt-easing-standard) infinite alternate;
  }

  .hero__lines {
    animation: grid-pan 36s linear infinite;
  }

  .hero__sheet--1 { animation: sheet-float 11s ease-in-out infinite alternate; }
  .hero__sheet--2 { animation: sheet-float 11s ease-in-out -3.5s infinite alternate; }
  .hero__sheet--3 { animation: sheet-float 11s ease-in-out -7s infinite alternate; }

  @keyframes drift-a {
    to {
      transform: translate3d(-9%, 8%, 0) scale(1.08);
    }
  }

  @keyframes drift-b {
    to {
      transform: translate3d(12%, -10%, 0) scale(0.94);
    }
  }

  @keyframes grid-pan {
    to {
      transform: translate3d(56px, 56px, 0);
    }
  }

  @keyframes sheet-float {
    to {
      rotate: -4.5deg;
      scale: 1.035;
    }
  }
}

@media print {
  [data-reveal].is-pending {
    opacity: 1;
  }

  .hero__bg,
  .scroll-progress {
    display: none;
  }
}
