@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10201a;
  --green: #17804a;
  --green-dark: #0e5a33;
  --muted: #4a5a52;
  --soft: #3d4c45;
  --ground: #f4f6f3;
  --stone: #e4e9e4;
  --rule: #cfd7d1;
  --on-ink: #e8eee9;
  --on-ink-muted: #a8b8ae;
  --on-ink-accent: #5fd08e;
  --on-ink-rule: #3a4a42;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 8vw, 112px);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-200%);
}

.skip-link:hover {
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

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

.eyebrow {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.lead {
  max-width: 34em;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

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

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding-block: clamp(32px, 5vw, 64px) var(--section);
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 700px;
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(2.75rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero .lead {
  margin-bottom: 36px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 17px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--green-dark);
  color: #fff;
}

.hero-visual {
  position: relative;
  flex: 0 1 370px;
  min-width: 240px;
  max-width: 370px;
  margin-inline: auto;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.art-blocks {
  display: none;
  stroke: var(--ink);
  stroke-opacity: 0;
  stroke-width: 1;
  stroke-linejoin: round;
}

.art-grid {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.12;
  stroke-width: 1;
}

.art-lip,
.art-step {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
}

.art-lip {
  stroke-opacity: 0.2;
}

.art-step {
  stroke-opacity: 0.34;
}

.art-edge {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.55;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.art-seat {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.art-guide {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.25;
  stroke-dasharray: 3 6;
}

.art-facet {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.12;
  stroke-width: 1;
}

.art-glint {
  fill: none;
  stroke: #b6f0cd;
  stroke-opacity: 0.55;
  stroke-width: 1;
  stroke-linejoin: round;
}

.art-pin {
  fill: var(--green);
}

.art-halo {
  fill: #48be7a;
  opacity: 0;
}

/* Clicks go through these to the pieces underneath. */
.art-finish,
.art-halo,
.art-seat,
.art-rail {
  pointer-events: none;
}

.art-pause,
.art-pause-icon {
  display: none;
}

/* Hero animation. The white blocks stack up, the socket parts and green cube drop
   in, then it all comes apart again. Visitors who ask for reduced motion get the
   still image above and no pause control. */

@media (prefers-reduced-motion: no-preference) {
  .art-blocks,
  .art-blocks > g,
  .art-finish,
  .art-frame,
  .art-cup,
  .art-seat,
  .art-rail,
  .art-halo,
  .art-cube {
    animation-duration: 16s;
    animation-iteration-count: infinite;
  }

  /* Falling pieces pass the edge of the image, then drop behind the next section.
     Clipping sideways stops them from making the page scroll on phones. */
  .hero-art {
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  main {
    overflow-x: clip;
  }

  .product {
    position: relative;
  }

  .art-part {
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Set by js/hero.js, once a click can do something. */
  .hero-art.is-live .art-part {
    cursor: pointer;
  }

  .art-pause:checked ~ .hero-art .art-part {
    cursor: default;
  }

  .hero-art:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
  }

  .hero-art.is-falling * {
    animation-play-state: paused;
  }

  .art-part.is-hidden {
    visibility: hidden;
  }

  .hero-art.is-falling .art-finish,
  .hero-art.is-falling .art-halo,
  .hero-art.is-falling .art-seat,
  .hero-art.is-falling .art-rail {
    display: none;
  }

  .hero-art.is-falling .art-blocks {
    stroke-opacity: 0.34 !important;
  }

  .art-blocks {
    display: inline;
    animation-name: art-blocks;
  }

  .art-blocks > g {
    animation-name: art-block;
    animation-fill-mode: backwards;
  }

  .art-block-1 {
    animation-delay: 0.2s;
  }

  .art-block-2 {
    animation-delay: 0.33s;
  }

  .art-block-3 {
    animation-delay: 0.46s;
  }

  .art-block-4 {
    animation-delay: 0.59s;
  }

  .art-block-5 {
    animation-delay: 0.72s;
  }

  .art-block-6 {
    animation-delay: 0.85s;
  }

  .art-block-7 {
    animation-delay: 0.98s;
  }

  .art-block-8 {
    animation-delay: 1.11s;
  }

  .art-block-9 {
    animation-delay: 1.24s;
  }

  .art-block-10 {
    animation-delay: 1.37s;
  }

  .art-block-11 {
    animation-delay: 1.5s;
  }

  .art-block-12 {
    animation-delay: 1.63s;
  }

  .art-block-13 {
    animation-delay: 1.76s;
  }

  .art-block-14 {
    animation-delay: 1.89s;
  }

  .art-finish {
    animation-name: art-finish;
  }

  .art-frame {
    animation-name: art-frame;
  }

  .art-cup {
    animation-name: art-cup;
  }

  .art-seat {
    stroke-dasharray: 418;
    animation-name: art-seat;
  }

  .art-rail {
    animation-name: art-rail;
  }

  .art-halo {
    animation-name: art-halo;
  }

  .art-cube {
    animation-name: art-cube;
  }

  .art-pause:checked ~ .hero-art * {
    animation-play-state: paused;
  }

  .art-pause {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .art-pause-icon {
    display: flex;
    position: absolute;
    right: 6px;
    bottom: 6px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--rule);
    border-radius: 50%;
  }

  .art-pause-icon::before {
    content: "";
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    border-inline: 3px solid var(--muted);
  }

  .art-pause:checked + .art-pause-icon::before {
    margin-left: 2px;
    border: 0;
    background: var(--muted);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }

  .art-pause:hover + .art-pause-icon {
    border-color: var(--muted);
  }

  .art-pause:focus-visible + .art-pause-icon {
    outline: 2px solid var(--green);
    outline-offset: 3px;
  }
}

/* Outlined while the blocks are separate. The seams give way to the finished
   cube's faint grid once the last block lands, and come back as it comes apart. */
@keyframes art-blocks {
  0%, 17% {
    stroke-opacity: 0.34;
  }
  19.5%, 78.5% {
    stroke-opacity: 0;
  }
  80.5%, 100% {
    stroke-opacity: 0.34;
  }
}

/* Each block runs this on its own delay, so blocks leave in the order they came:
   downward, with the bottom layer first. */
@keyframes art-block {
  0% {
    opacity: 0;
    transform: translateY(-48px);
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  2% {
    opacity: 1;
  }
  5%, 78% {
    opacity: 1;
    transform: none;
    animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4);
  }
  81% {
    opacity: 1;
  }
  83%, 100% {
    opacity: 0;
    transform: translateY(48px);
  }
}

/* The solid cube sits over the blocks, so block seams never show once it's whole. */
@keyframes art-finish {
  0%, 17% {
    opacity: 0;
  }
  19.5%, 78.5% {
    opacity: 1;
  }
  80.5%, 100% {
    opacity: 0;
  }
}

@keyframes art-frame {
  0%, 18% {
    opacity: 0;
    transform: translateY(-315px);
    animation-timing-function: cubic-bezier(0.55, 0, 0.15, 1);
  }
  20% {
    opacity: 1;
  }
  27%, 70% {
    opacity: 1;
    transform: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
  }
  77.5% {
    opacity: 1;
  }
  79.5%, 100% {
    opacity: 0;
    transform: translateY(-315px);
  }
}

@keyframes art-cup {
  0%, 23% {
    transform: translateY(-315px);
    animation-timing-function: cubic-bezier(0.55, 0, 0.15, 1);
  }
  32%, 67.5% {
    transform: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
  }
  77%, 100% {
    transform: translateY(-315px);
  }
}

@keyframes art-seat {
  0%, 32% {
    opacity: 1;
    stroke-dashoffset: 418;
    animation-timing-function: cubic-bezier(0.55, 0, 0.15, 1);
  }
  36.5%, 65% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  67.5%, 100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes art-rail {
  0%, 33% {
    opacity: 0;
  }
  36.5%, 39% {
    opacity: 1;
  }
  43%, 100% {
    opacity: 0;
  }
}

@keyframes art-halo {
  0%, 49% {
    opacity: 0;
  }
  50.5% {
    opacity: 0.35;
  }
  60%, 100% {
    opacity: 0;
  }
}

@keyframes art-cube {
  0%, 37.5% {
    transform: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.15, 1);
  }
  49.5%, 65% {
    transform: translateY(315px);
    animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
  }
  75.5%, 100% {
    transform: none;
  }
}

/* Focal */

.product {
  background: var(--ink);
  color: var(--on-ink);
}

.product-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
  padding-block: var(--section);
}

.product-inner > div {
  flex: 1 1 440px;
  min-width: 0;
}

.product .eyebrow {
  color: var(--on-ink-accent);
}

.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.product h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.product-note {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--on-ink-muted);
}

.product .lead {
  max-width: 32em;
  margin-bottom: 20px;
  color: var(--on-ink);
}

.status {
  font-weight: 600;
  color: var(--on-ink-accent);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}

.skills > div {
  padding-top: 16px;
  border-top: 1px solid var(--on-ink-rule);
}

.skills dt {
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}

.skills dd {
  font-size: 16px;
  color: var(--on-ink-muted);
}

.disclaimer {
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-ink-muted);
}

/* About */

.about {
  padding-block: var(--section);
}

.about h2,
.contact h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.about h2 {
  max-width: 20em;
  margin-bottom: 24px;
}

.about .lead {
  max-width: 38em;
  margin-bottom: 56px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}

.principles > div {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.principles h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.principles p,
.site-promise {
  color: var(--muted);
}

.site-promise {
  margin-top: 56px;
}

.site-promise a {
  font-weight: 600;
}

/* Contact */

.contact {
  background: var(--stone);
}

.contact-inner {
  padding-block: clamp(56px, 7vw, 96px);
}

.contact h2 {
  margin-bottom: 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact p {
  max-width: 38em;
  color: var(--soft);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding-block: 28px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-band {
  background: var(--stone);
}

.footer-band .site-footer {
  color: var(--soft);
}

/* Privacy */

.notice {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 96px);
}

.notice .eyebrow {
  margin-bottom: 16px;
}

.notice h1,
.not-found h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.notice .lead {
  max-width: none;
  margin-bottom: 48px;
}

.notice section {
  padding-top: 24px;
  margin-bottom: 32px;
  border-top: 1px solid var(--rule);
}

.notice section:last-child {
  margin-bottom: 0;
}

.notice h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.notice section p {
  color: var(--soft);
}

/* 404 */

.not-found-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.not-found-page > .wrap:first-of-type {
  width: 100%;
}

.not-found {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-block: 48px 96px;
}

.not-found .eyebrow {
  margin-bottom: 16px;
}

.not-found h1 {
  margin-bottom: 20px;
}

.not-found .lead {
  margin-bottom: 32px;
}

@media print {
  .skip-link,
  .site-nav,
  .hero-visual {
    display: none;
  }

  .product {
    background: none;
    color: var(--ink);
  }
}
