:root {
  --bg: #3c4248;
  --bg-raise: #4a5158;
  --line: #656c74;
  --text: #e8e4dc;
  --muted: #c8c2b8;
  --papaya: #ff7a1a;
  --papaya-press: #e0650c;
  --ink: #14161a;
  --viper: #1f7a45;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 72px;
  color-scheme: dark;
}

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

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--papaya);
}

button,
summary {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--papaya);
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--papaya);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--ink);
}

h1,
h2,
.num,
.contact-value,
.wordmark-mark {
  font-family: var(--display);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1,
h2,
p,
ul,
ol,
figure,
address {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  max-width: 14em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  max-width: 18em;
  text-wrap: balance;
}

.label {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck {
  max-width: 38rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.heading-lockup {
  display: grid;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 24px;
}

.prose {
  display: grid;
  gap: 1.35em;
  max-width: 40rem;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.page-intro {
  padding: 56px 0 32px;
}

.num {
  color: var(--papaya);
  font-size: clamp(40px, 5vw, 64px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding-inline: 20px;
  background: rgba(60, 66, 72, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 160ms linear, border-color 160ms linear;
}

.site-header.is-raised {
  background-color: rgba(74, 81, 88, 0.96);
  border-bottom-color: var(--line);
}

.wordmark {
  --lockup-h: 42px;
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  height: var(--lockup-h);
  flex: none;
  font-style: italic;
  text-decoration: none;
  color: var(--text);
}

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

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  height: var(--lockup-h);
  padding-inline: 2px;
  overflow: hidden;
  font-family: "Crete Round", "Iowan Old Style", Palatino, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.04em;
}

.wm {
  display: inline-block;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  -webkit-text-stroke: 0.6px var(--ink);
}

.wm-w,
.wm-s,
.wm-g {
  line-height: 0.72;
}

.wordmark-name {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  height: var(--lockup-h);
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

.wordmark-place,
.wordmark-rest {
  align-self: flex-start;
  white-space: nowrap;
}

.nav-bar {
  display: none;
}

.nav-details {
  position: static;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 8px 8px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-label-open {
  display: none;
}

.nav-details[open] .menu-label {
  display: none;
}

.nav-details[open] .menu-label-open {
  display: inline;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px 20px 16px;
  background: rgba(60, 66, 72, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-details[open] .nav {
  display: grid;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color 160ms linear;
}

.nav a:hover {
  color: var(--papaya);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: none;
}

.wordmark {
  order: 1;
}

.header-end {
  order: 2;
}

.nav-details {
  order: 3;
  margin-left: 12px;
}

.header-end .status {
  display: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--viper);
  flex: none;
}

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: background-color 160ms linear, color 160ms linear, border-color 160ms linear;
}

.button {
  border: 0;
  cursor: pointer;
  background: var(--papaya);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.button[aria-disabled="true"] {
  opacity: 0.6;
}

.button:hover,
.button:active {
  background: var(--papaya-press);
  color: var(--ink);
}

.header-button {
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 14px;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.button-ghost:hover,
.button-ghost:active {
  color: var(--papaya);
  border-color: var(--papaya);
}

.text-link {
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: color 160ms linear, box-shadow 160ms linear;
}

.text-link:hover {
  color: var(--papaya);
  box-shadow: inset 0 -1px 0 var(--papaya);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* Hero. The overlay below is the live filter from the blueprint. */

.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  background: #3c4248;
  color: #e8e4dc;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.72) contrast(1.05) brightness(0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(60, 66, 72, 0.5) 0%, rgba(60, 66, 72, 0.16) 46%, rgba(60, 66, 72, 0) 100%),
    linear-gradient(180deg, rgba(60, 66, 72, 0), rgba(60, 66, 72, 0.28));
  pointer-events: none;
}

.hero .copy {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 112px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.hero h1 {
  max-width: 8.4em;
  margin-top: 16px;
  font-size: clamp(40px, 6.6vw, 84px);
  text-wrap: wrap;
}

.hero .deck {
  margin-top: 16px;
  max-width: 34rem;
}

.hero .actions {
  margin-top: 24px;
}

.hero .status {
  margin-top: 28px;
}

/* Offers, process, proof, principal */

.offers,
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 32px;
}

.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.offer h2,
.step h2 {
  transition: color 160ms linear;
}

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

.offer:hover h2 {
  color: var(--papaya);
}

.offer p,
.step p {
  max-width: 36rem;
}

.step {
  display: grid;
  gap: 16px;
}

.figures {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 32px;
}

.figure {
  margin: 0 0 12px;
  color: var(--papaya);
  font-family: var(--display);
  font-weight: 500;
  font-size: 45px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.figures p:not(.figure) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 28rem;
}

@media (max-width: 1024px) {
  .figure {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .figure {
    font-size: 34px;
  }
}

.proof-line {
  max-width: 36rem;
  margin-top: 8px;
}

.proof-link {
  margin-top: 16px;
}

.principal {
  display: grid;
  gap: 32px;
  align-items: center;
}

.portrait-frame {
  background: var(--bg);
  margin: 0;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--papaya);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.02) brightness(1.18);
}

.principal-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.principal-copy p {
  max-width: 38rem;
}

.principal-copy .text-link {
  margin-top: 8px;
  justify-self: start;
}

.repos {
  padding-top: 28px;
}

.repos-empty {
  color: var(--muted);
  font-size: 14px;
}

.repos-list {
  list-style: none;
  padding: 0;
  display: grid;
}

.repos-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.repos-list a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: color 160ms linear;
}

.repos-list a:hover {
  color: var(--papaya);
}

.repo-note,
.repo-url {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.repo-url {
  font-family: var(--mono);
}

/* Inner pages */

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 18px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--muted);
}

.work-row {
  display: grid;
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.work-row:last-child {
  border-bottom: 1px solid var(--line);
}

.work-row p {
  max-width: 40rem;
}

.work-row h2 a {
  text-decoration: none;
}

.band {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.band h2 {
  max-width: 16em;
}

.topic {
  border: 0;
  margin: 28px 0 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.topic legend {
  padding: 0;
}

.topic-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.topic-choice {
  position: relative;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.topic-choice:has(input:checked) {
  color: var(--text);
  border-bottom-color: var(--text);
}

.topic-choice:hover {
  color: var(--papaya);
  border-bottom-color: var(--papaya);
}

.topic-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.topic-choice:has(input:focus-visible) {
  outline: 2px solid var(--papaya);
  outline-offset: 3px;
}

.topic-note {
  display: none;
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

.topic:has(input[value="software"]:checked) .topic-note[data-topic-note="software"],
.topic:has(input[value="payments"]:checked) .topic-note[data-topic-note="payments"] {
  display: block;
}

.contact-band {
  display: block;
  font-style: normal;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 40px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: color 160ms linear, background-color 160ms linear;
}

.contact-action {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 160ms linear;
}

.contact-value {
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-row:hover,
.contact-row:hover .contact-action {
  color: var(--papaya);
}

.contact-row:hover {
  background: var(--bg-raise);
}

.compose {
  border-bottom: 1px solid var(--line);
}

.compose > .contact-row {
  width: 100%;
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.compose > .contact-row::-webkit-details-marker {
  display: none;
}

.compose:not([open]) > .compose-panel {
  display: none;
}

.compose-panel {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 0 20px 40px;
}

.compose-field {
  width: min(40rem, 100%);
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: none;
}

.compose-field::placeholder {
  color: var(--muted);
  opacity: 1;
}

.compose-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Footer and phone bar */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
}

.site-footer .wordmark-name {
  display: flex;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-place {
  margin-top: 8px;
  color: var(--muted);
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-contact a {
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 160ms linear;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms linear;
}

.footer-meta a:hover {
  color: var(--papaya);
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(60, 66, 72, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 160ms linear;
}

.mobile-bar a + a {
  border-left: 1px solid var(--line);
}

.mobile-bar a:hover {
  color: var(--papaya);
}

body.has-bar {
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

@media (max-width: 719px) {
  .wordmark {
    --lockup-h: 32px;
  }

  .wordmark-mark {
    font-size: 26px;
  }

  .wm {
    -webkit-text-stroke-width: 0.45px;
  }
}

@media (min-width: 1100px) {
  .site-header .wordmark-name {
    display: flex;
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 64px));
  }

  .section {
    padding: 96px 0;
  }

  .page-intro {
    padding: 96px 0 48px;
  }

  .band {
    padding: 96px 0;
  }

  .site-header {
    padding-inline: max(32px, calc((100% - 1120px) / 2));
  }

  .menu-toggle {
    display: none;
  }

  .wordmark,
  .nav-details,
  .nav-bar {
    order: 0;
  }

  .header-end {
    order: 0;
    margin-left: auto;
  }

  .nav-details {
    display: none;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .nav-bar a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    transition: color 160ms linear;
  }

  .nav-bar a:hover {
    color: var(--papaya);
  }

  .nav-bar a[aria-current="page"] {
    color: var(--text);
  }

  .site-footer .wordmark-name {
    display: flex;
  }

  .header-button {
    padding: 10px 14px;
    font-size: 15px;
  }

  .offers,
  .steps,
  .figures {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .work-row {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: 24px 48px;
    align-items: baseline;
  }

  .contact-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding-block: 56px;
    padding-inline: max(32px, calc((100% - 1120px) / 2));
  }

  .compose-panel {
    padding: 0 max(32px, calc((100% - 1120px) / 2)) 56px;
  }

.contact-value {
  text-align: right;
  max-width: 68%;
  overflow-wrap: normal;
  font-size: clamp(28px, 4vw, 44px);
}

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }

  .mobile-bar {
    display: none;
  }

  body.has-bar {
    padding-bottom: 0;
  }

  .hero .copy {
    padding-bottom: 72px;
  }
}

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

  .offers,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .principal {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

@media (min-width: 1200px) {
  .header-end .status {
    display: flex;
  }
}

@media (max-width: 389px) {
  .header-button {
    font-size: 13px;
    padding-inline: 8px;
  }
}

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

@media print {
  .site-header,
  .mobile-bar,
  .skip {
    display: none;
  }

  body,
  .hero {
    background: #fff;
    color: #14161a;
    margin: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero img,
  .hero::after {
    display: none;
  }

  .hero .copy {
    min-height: 0;
    padding: 0;
  }

  a {
    color: #14161a;
  }
}
