@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f4f3ef;
  --ink: #141414;
  --muted: #66655f;
  --rule: #d6d4cc;
  --accent: #e2421e;
  --field: #fbfaf7;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

/* header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

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

.brand-mark {
  flex: none;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23141414' d='M0 0h5v1H1v3h3V3H3V2h2v3H0z'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23e2421e'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.lang {
  display: flex;
  gap: 6px;
  color: var(--muted);
}

.lang [aria-current] {
  color: var(--ink);
  font-weight: 500;
}

/* hero */

.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}

.hero h1 {
  grid-column: 1 / -1;
  max-width: 15ch;
  font-size: clamp(40px, 7.2vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
}

.hero-meta {
  grid-column: 1 / span 4;
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-meta div {
  display: grid;
  grid-template-columns: 9em 1fr;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

.hero-meta dt {
  color: var(--muted);
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2f9e44;
  vertical-align: 1px;
}

.hero-lead {
  grid-column: 6 / span 6;
  margin-top: clamp(40px, 6vw, 72px);
}

.hero-lead p {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.link-arrow {
  font-family: var(--mono);
  font-size: 14px;
}

/* sections */

.section {
  padding: 28px 0 clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--ink);
}

.section-head {
  grid-column: 1 / span 3;
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 32px;
}

.section-head .num {
  color: var(--accent);
}

.section-body {
  grid-column: 4 / -1;
}

.section-intro {
  max-width: 34em;
  margin-bottom: 40px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* services */

.services li {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.services li:last-child {
  border-bottom: 1px solid var(--rule);
}

.services .idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}

.services h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.services p {
  color: #2c2c2a;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.tags li {
  display: block;
  padding: 0;
  border: 0;
}

.tags li:last-child {
  border: 0;
}

.tags li::before {
  content: "— ";
}

/* work */

.project {
  display: grid;
  gap: 48px;
}

.project-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "title facts"
    "desc  facts"
    "desc  links";
  grid-template-rows: auto auto 1fr;
  column-gap: 48px;
  align-items: start;
}

.project-text .project-title {
  grid-area: title;
}

.project-text > p {
  grid-area: desc;
}

.project-text .project-facts {
  grid-area: facts;
  margin-top: 0;
}

.project-text .project-links {
  grid-area: links;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.project-title img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.project h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project-facts {
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 13px;
}

.project-facts div {
  display: grid;
  grid-template-columns: 8em 1fr;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}

.project-facts div:last-child {
  border-bottom: 1px solid var(--rule);
}

.project-facts dt {
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
}

.soon {
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.shots img {
  width: 100%;
  border-radius: 6px;
  outline: 1px solid rgb(0 0 0 / 0.06);
}

.shots figure:nth-child(2) {
  margin-top: 56px;
}

.shots figure:nth-child(3) {
  margin-top: 112px;
}

/* demo sites */

.demos {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.demos-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  margin-bottom: 36px;
}

.demos-head h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.demos-head p {
  color: #2c2c2a;
}

.demo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}

.demo-list a {
  display: grid;
  gap: 4px;
  text-decoration: none;
}

.demo-list img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 4px;
  outline: 1px solid rgb(0 0 0 / 0.08);
  transition: transform 0.2s;
}

.demo-list a:hover img {
  transform: translateY(-3px);
}

.demo-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.demo-name::after {
  content: " →";
  color: var(--accent);
}

.demo-kind {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.demo-count {
  display: none;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.demo-count span {
  color: var(--ink);
}

/* terms */

.terms div {
  display: grid;
  grid-template-columns: 12em minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.terms div:last-child {
  border-bottom: 1px solid var(--rule);
}

.terms dt {
  padding-top: 3px;
}

.terms dd {
  max-width: 38em;
}

/* contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
}

.contact-mail {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}

.contact-note {
  margin-top: 24px;
  max-width: 26em;
  color: var(--muted);
  font-size: 15px;
}

.form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field label {
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.4 var(--sans);
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.form-foot small {
  max-width: 24em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status {
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 13px;
}

.form-status.is-ok {
  color: #2b7a3b;
}

.form-status.is-error {
  color: var(--accent);
}

/* footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

/* plain pages: privacy, 404 */

.page {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
}

.page h1 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 42em;
}

.prose h2 {
  margin: 48px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2em;
  list-style: square;
}

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

.prose table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

/* responsive */

@media (max-width: 960px) {
  .hero-meta {
    grid-column: 1 / span 5;
  }

  .hero-lead {
    grid-column: 7 / -1;
  }

  .section-head {
    grid-column: 1 / -1;
  }

  .section-body {
    grid-column: 1 / -1;
  }

  .project,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-text {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "desc"
      "facts"
      "links";
    grid-template-rows: none;
  }

  .project-text .project-facts {
    margin-top: 24px;
  }

  .shots {
    gap: 14px;
    max-width: 560px;
  }

  .demos-head {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .shots figure:nth-child(2) {
    margin-top: 40px;
  }

  .shots figure:nth-child(3) {
    margin-top: 80px;
  }

}

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

  .nav {
    gap: 18px;
  }

  .nav .optional {
    display: none;
  }

  .hero-meta,
  .hero-lead {
    grid-column: 1 / -1;
  }

  .hero-lead {
    margin-top: 32px;
  }

  .services li {
    grid-template-columns: 2.5em minmax(0, 1fr);
  }

  .services li > div {
    grid-column: 2;
  }

  .services h3 {
    font-size: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* phones: one swipeable row instead of six stacked cards; the next card peeks in */
  .demo-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 16px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .demo-list::-webkit-scrollbar {
    display: none;
  }

  .demo-list li {
    scroll-snap-align: start;
  }

  .demo-list a:hover img {
    transform: none;
  }

  .demo-count {
    display: block;
  }

  .terms div {
    grid-template-columns: 1fr;
  }


  .footer-bottom {
    flex-direction: column;
  }

  .shots figure:nth-child(2) {
    margin-top: 24px;
  }

  .shots figure:nth-child(3) {
    margin-top: 48px;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .hero-meta div,
  .project-facts div {
    grid-template-columns: 1fr;
  }
}
