@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wide.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

/* Brand tokens. Light follows the brand board (cream, stone, ink). Dark applies when the
   system is dark and the visitor hasn't picked light, or when they picked dark with the header
   button (theme.v1.js sets data-theme on <html>). Keep the two dark blocks the same. */
:root {
  color-scheme: light dark;
  --bg: #f7f4ef;
  --surface: #ebe7df;
  --text: #0e0e0d;
  --muted: #5e5a54;
  --band: #0e0e0d;
  --band-text: #f7f4ef;
  --band-muted: #a7a29a;
  --rule: color-mix(in srgb, var(--text) 16%, transparent);
  --hover: color-mix(in srgb, var(--text) 6%, transparent);
  --btn-hover: color-mix(in srgb, var(--text) 82%, var(--bg));
  --band-rule: color-mix(in srgb, var(--band-text) 22%, transparent);
  --font: "Archivo", system-ui, sans-serif;
  --gutter: 48px;
  --pad: max(var(--gutter), calc((100% - 1344px) / 2));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0b;
    --surface: #141412;
    --text: #f2efe9;
    --muted: #a39f97;
    --band: #1b1b19;
    --band-text: #f2efe9;
    --band-muted: #a39f97;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0b;
  --surface: #141412;
  --text: #f2efe9;
  --muted: #a39f97;
  --band: #1b1b19;
  --band-text: #f2efe9;
  --band-muted: #a39f97;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; } /* in-page links land below the sticky header */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--text); color: var(--bg); }

h1, h2, h3 { margin: 0; font-stretch: 125%; font-weight: 200; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Small spaced capitals, like INTERACTIVE in the wordmark */
.eyebrow, .site-nav, .btn, .shot figcaption, .tagline {
  font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.24em;
}
.eyebrow { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Logo */
.lockup { display: block; height: 100%; width: auto; aspect-ratio: 421.4 / 100; fill: currentColor; }
.brand { display: block; height: 40px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px var(--pad); border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; gap: 32px; align-items: center; font-size: 11.5px; font-weight: 450; letter-spacing: 0.2em; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-login { border: 1px solid var(--text); padding: 11px 16px; }
.site-nav .nav-login:hover { background: var(--text); color: var(--bg); text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 12px; }

/* Light and dark switch: a round button with a half-filled circle. Hidden until theme.v1.js
   runs, so it never shows without JavaScript. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: 50%;
  background: none; color: inherit; cursor: pointer; transition: border-color 150ms ease;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 36px;
  padding: 18px 22px; border: 1px solid transparent; border-radius: 0;
  background: none; color: var(--text); font: 450 12px/1.2 var(--font); font-stretch: 125%; letter-spacing: 0.18em;
  text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--text); }
.btn-outline:hover { background: var(--hover); }
.btn .arrow { font-size: 15px; letter-spacing: 0; }

/* Grid */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding: 64px var(--pad) 72px;
}

/* Screenshots: rounded like the phone they came from */
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 1179 / 2556; overflow: hidden; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 11% / 5.07%;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted); margin-top: 12px; }

/* Home */
.hero { padding-top: 96px; padding-bottom: 104px; align-items: center; }
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 { font-size: clamp(42px, 5.4vw, 78px); font-weight: 150; letter-spacing: -0.02em; line-height: 1.02; }
.lede { font-size: 22px; line-height: 1.45; max-width: 600px; }
.body-l { font-size: 17px; line-height: 1.6; max-width: 560px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-shots { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-shots .shot:first-child { margin-top: 56px; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 72px var(--pad) 32px; border-top: 1px solid var(--rule);
}
.section-head h2, .how h2 { font-size: clamp(32px, 3.4vw, 48px); }
.work { padding-top: 0; padding-bottom: 96px; }
.client { grid-column: 1 / span 4; border-top: 1px solid var(--text); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.client h3 { font-size: 30px; font-weight: 250; line-height: 1.1; }
.client p { font-size: 16px; color: var(--muted); max-width: 380px; }
.client-shots { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Full-width ink band, like the black tiles on the brand board */
.band { background: var(--band); color: var(--band-text); }
.band :focus-visible { outline-color: var(--band-text); }
.how { padding-top: 104px; padding-bottom: 112px; }
.how h2 { grid-column: 1 / span 4; }
.how-copy { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; font-size: 24px; font-weight: 300; line-height: 1.5; max-width: 720px; }
.how-copy p + p { color: var(--band-muted); font-size: 18px; }

/* Footer */
.site-footer { background: var(--surface); }
.footer-main { padding-top: 80px; padding-bottom: 64px; align-items: start; row-gap: 48px; }
.footer-brand { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer-brand .lockup { height: 64px; }
.footer-brand .lockup + .tagline::before {
  content: ""; display: block; width: 72px; height: 1px; background: currentColor; margin-bottom: 28px;
}
.tagline { font-size: 11.5px; letter-spacing: 0.34em; line-height: 2.2; max-width: 300px; }
.footer-cta { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 16px; }
.footer-cta .big { font-size: clamp(26px, 2.6vw, 36px); font-stretch: 125%; font-weight: 200; letter-spacing: -0.01em; line-height: 1.2; }
.footer-cta p:not(.big) { color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.footer-contact a:first-child { font-size: 20px; font-stretch: 112%; font-weight: 400; }
.footer-links { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px var(--pad) 28px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted);
}
.footer-legal small { font-size: inherit; }

/* Privacy and payments */
.doc { max-width: calc(760px + 2 * var(--gutter)); padding: 80px var(--gutter) 104px; margin-left: calc(var(--pad) - var(--gutter)); display: flex; flex-direction: column; gap: 16px; font-size: 16.5px; line-height: 1.7; }
.doc h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 150; letter-spacing: -0.02em; }
.doc h1 + .muted { font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.24em; font-size: 12px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; font-weight: 300; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .theme-toggle { transition: none; }
}

/* Small screens */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  /* Logo, the light and dark switch and Client login share the top row; the section links sit
     below */
  html { scroll-padding-top: 128px; }
  .site-header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 14px; row-gap: 14px; }
  .brand { height: 30px; }
  .site-nav { gap: 10px 22px; flex-wrap: wrap; letter-spacing: 0.14em; }
  .nav-end { position: absolute; top: 18px; right: var(--pad); height: 34px; gap: 8px; }
  .site-nav .nav-login { height: 34px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; letter-spacing: 0.1em; }
  .theme-toggle { width: 34px; height: 34px; }
  .grid > * { grid-column: 1 / -1; }
  .how h2 { grid-column: 1 / -1; }
  .hero { padding-top: 48px; padding-bottom: 64px; row-gap: 48px; }
  .lede, .how-copy { font-size: 20px; }
  .hero-shots { max-width: 420px; }
  .section-head { padding-top: 56px; flex-direction: column; gap: 8px; }
  .work { padding-bottom: 64px; row-gap: 32px; }
  .client-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { padding-top: 64px; padding-bottom: 72px; row-gap: 24px; }
  .footer-main { padding-top: 56px; padding-bottom: 48px; }
  .footer-brand .lockup { height: 52px; }
  .doc { margin-left: 0; padding-top: 48px; padding-bottom: 72px; }
}

/* The smallest phones (320 px): the top row still fits the logo, the switch and Client login */
@media (max-width: 359px) {
  .brand { height: 24px; }
  .nav-end { gap: 6px; }
  .site-nav .nav-login { padding: 0 8px; letter-spacing: 0.06em; }
}
