:root {
  --background: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --link: #0659b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

header,
figure,
section {
  margin: 0 0 17px;
}

hr {
  margin: 0 0 17px;
  border: 0;
  border-top: 1px solid #d8d8d8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: 1.8rem;
  line-height: 1.2;
}

header p {
  margin-bottom: 0;
}

.header-promise {
  font-size: 1.05rem;
  line-height: 1.45;
}

.header-credential {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}


.contact-links {
  margin-top: 8px;
  font-size: 0.95rem;
}

@keyframes header-arrival {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3 {
  animation: header-arrival 360ms ease-out both;
}

h2 {
  animation-delay: 80ms;
}

h3 {
  animation-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  h1,
  h2,
  h3 {
    animation: none;
  }
}

h2 {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.3;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.4;
}

p {
  margin-bottom: 17px;
}

p:last-child {
  margin-bottom: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

main > figure:not(.meme) {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
}

.meme {
  max-width: 420px;
  margin: 64px auto 0;
}


figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-carousel {
  position: relative;
  width: min(760px, calc(100vw - 16px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.carousel-viewport {
  overflow: hidden;
  padding: 10px 0;
  outline: 0;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.carousel-stage {
  position: relative;
  height: min(292.5px, 42.75vw);
}

.carousel-slide {
  --offset: 0;
  --distance: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: calc(10 - var(--distance));
  display: block;
  width: min(520px, 76vw);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 6px;
  background: #f2f2f2;
  opacity: max(0, calc(1 - var(--distance) * 0.75));
  filter: blur(calc(var(--distance) * 3px));
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 92%))
    scale(calc(1 - var(--distance) * 0.14));
  cursor: pointer;
  transition:
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 560ms ease,
    filter 560ms ease,
    border-color 560ms ease;
  will-change: transform, opacity, filter;
}

.carousel-slide.is-active {
  border-color: rgba(17, 17, 17, 0.28);
  cursor: default;
}

.carousel-slide:focus-visible,
.carousel-control:focus-visible,
.carousel-viewport:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-control {
  width: 30px;
  height: 26px;
  padding: 0;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.carousel-control:hover {
  border-color: #777;
  background: #f5f5f5;
}

.carousel-meta {
  display: flex;
  width: min(520px, 76vw);
  margin: 8px auto 0;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.92rem;
}

.carousel-meta p {
  margin: 0;
}


.case-study {
  width: min(520px, 76vw);
  margin: 18px auto 0;
}

.case-study-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.case-study-title {
  margin-bottom: 9px;
  font-size: 1rem;
}

.case-study dl {
  margin: 0;
}

.case-study dl > div {
  padding: 9px 0;
  border-top: 1px solid #dedede;
}

.case-study dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-study dd {
  margin: 3px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-study-outcome-line {
  display: block;
}

.case-study-outcome-line + .case-study-outcome-line {
  margin-top: 5px;
}

.case-study-refresh {
  animation: case-study-refresh 260ms ease-out both;
}

@keyframes case-study-refresh {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.additional-launches {
  width: 100%;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.6;
}

.additional-launches p {
  margin-bottom: 0;
}

.additional-launches p + p {
  margin-top: 3px;
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.x402-demo-copy {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.x402-demo-copy p {
  margin-bottom: 12px;
}

.x402-demo-copy ul {
  margin: -4px 0 16px;
  padding-left: 1.25em;
}

.x402-demo-copy li + li {
  margin-top: 3px;
}

.x402-demo {
  position: relative;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fafafa;
}

.x402-guide {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: min(430px, calc(100% - 32px));
  padding: 15px 16px 14px;
  border: 1px solid #111;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  animation: guide-arrival 220ms ease-out both;
}

.x402-guide::after {
  position: absolute;
  bottom: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.x402-guide-progress {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.x402-guide-copy {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.x402-guide-next {
  display: flex;
  min-width: 32px;
  margin: 11px 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.x402-guide-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.x402-guide-next:hover {
  background: #333;
}

.x402-guide-next:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@keyframes guide-arrival {
  from {
    opacity: 0;
    transform: translate(-50%, 4px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.x402-demo-label {
  display: flex;
  margin-bottom: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.x402-demo-label span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x402-demo ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.x402-demo li + li {
  margin-top: 6px;
}

.x402-demo-action {
  display: flex;
  padding-top: 14px;
  border-top: 1px solid #dedede;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.x402-demo-action p,
.x402-payment p,
.x402-answer p {
  margin-bottom: 8px;
}

.x402-demo-action p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

#x402-reveal,
#x402-pay,
#x402-reset {
  padding: 8px 11px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

#x402-reset {
  border-color: #aaa;
  background: transparent;
  color: var(--text);
}

#x402-reveal:hover,
#x402-pay:hover {
  background: #333;
}

#x402-reset:hover {
  border-color: #555;
}

#x402-reveal:focus-visible,
#x402-pay:focus-visible,
#x402-reset:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

#x402-reveal:disabled,
#x402-pay:disabled {
  cursor: wait;
  opacity: 0.65;
}

.x402-payment,
.x402-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #bbb;
  animation: protocol-reveal 240ms ease-out both;
}

.x402-demo-reset {
  display: flex;
  margin-top: 14px;
  justify-content: flex-end;
}

.x402-payment p:nth-child(2),
.x402-answer p:nth-child(2) {
  color: var(--muted);
  font-size: 0.82rem;
}

.x402-demo code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82em;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .x402-payment,
  .x402-answer,
  .x402-guide,
  .case-study-refresh {
    animation: none;
    transition: none;
  }
}

article + article {
  margin-top: 17px;
}

.job-title {
  margin-bottom: 4px;
  font-weight: 700;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

[hidden] {
  display: none !important;
}

dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  font: inherit;
}

dialog::backdrop {
  background: rgba(17, 17, 17, 0.5);
}

.dialog-content {
  position: relative;
  padding: 32px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--text);
}

#contact-heading {
  margin: 0 32px 8px;
  font-size: 1.15rem;
  text-align: center;
}

.contact-note {
  max-width: 350px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

#contact-form {
  display: grid;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-form label {
  margin: 12px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: #111;
  font: inherit;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-button,
.success-close {
  margin-top: 18px;
  padding: 10px 15px;
  border: 1px solid #111;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.submit-button {
  width: 100%;
}

.submit-button:hover,
.success-close:hover {
  background: #333;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-status {
  margin-top: 12px;
  color: #a30000;
  font-size: 0.88rem;
  text-align: center;
}

.contact-success {
  padding: 44px 0 32px;
  text-align: center;
}

.contact-success p {
  font-size: 1.15rem;
}


@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 44px 20px 64px;
  }

  header,
  figure,
  section {
    margin-bottom: 17px;
  }

  dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
  }

  .dialog-content {
    padding: 26px 22px 24px;
  }
}
