/* ==========================================================================
   DOUBLE NINE — doublenine.work
   Design tokens follow the brand manual in thinking/x-channel/vi.
   Near black, paper, one signal. Flat surfaces, hairline rules, no shadows.
   ========================================================================== */

:root {
  /* Colour */
  --ink-900: #0b0e11;
  --ink-800: #10151a;
  --ink-700: #161c21;
  --line: #232a31;
  --paper: #f2f5f7;
  --steel: #8a949e;
  --muted: #5d686f;
  --signal: #c6f24e;
  --alert: #ff6b4a;
  --white: #ffffff;

  /* Space — 8px base */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1160px;
}

/* --------------------------------------------------------------- reset */

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

html {
  background: var(--ink-900);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-12);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- type */

.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading-1 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.heading-2 {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.025em;
}

.heading-3 {
  font-size: 30px;
  line-height: 36px;
}

.heading-4 {
  font-size: 24px;
  line-height: 32px;
}

.heading-5 {
  font-size: 20px;
  line-height: 28px;
}

.title-1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.title-2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.body-1 {
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.body-2 {
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.body-3 {
  font-size: 16px;
  line-height: 24px;
  color: var(--steel);
  text-wrap: pretty;
}

.body-4 {
  font-size: 14px;
  line-height: 20px;
  color: var(--steel);
  text-wrap: pretty;
}

.caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--steel);
}

.label {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--steel);
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .heading-1 {
    font-size: 60px;
  }
  .heading-2 {
    font-size: 48px;
    line-height: 50px;
  }
}

@media (min-width: 900px) {
  .heading-1 {
    font-size: 72px;
  }
  .body-1 {
    font-size: 18px;
  }
}

/* -------------------------------------------------------------- layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

.measure {
  max-width: 680px;
}

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------------------------------------------------------- navigation */

.nav {
  position: fixed;
  top: var(--s-2);
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 32px);
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 21, 26, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transform: translateX(-50%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}

.nav-brand:hover {
  background: var(--ink-700);
}

.nav-brand img {
  width: 24px;
  height: 24px;
  flex: none;
}

.nav-brand span {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: var(--s-1) 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--paper);
  background: var(--ink-700);
}

.nav-links a[aria-current="true"] {
  color: var(--paper);
  background: var(--ink-700);
}

.nav-mail {
  display: none;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-mail:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: 4px;
  padding: var(--s-1) var(--s-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-home:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.nav-home-mobile {
  display: inline-flex;
}

@media (min-width: 860px) {
  .nav-home-mobile {
    display: none;
  }
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.nav-toggle:hover {
  background: var(--ink-700);
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-mail {
    display: inline-flex;
    margin-left: 4px;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu panel */

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-12) var(--s-3) var(--s-6);
  background: rgba(11, 14, 17, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s;
}

.menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.menu a span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.menu[data-open="true"] a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.menu-foot {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 96px 0 var(--s-8);
}

.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-4);
}

@media (min-width: 1000px) {
  .hero {
    padding: var(--s-12) 0 var(--s-12);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--s-8);
  }
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 var(--s-3);
  background: linear-gradient(90deg, var(--white) 25%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  color: var(--steel);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Buttons */

@media (max-width: 639px) {
  .hero-proof {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: var(--s-1) var(--s-3);
  }
}

@media (min-width: 640px) {
  .hero-proof span + span::before {
    content: "·";
    margin-right: var(--s-2);
    color: var(--line);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) 12px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink-900);
}

.btn-primary:hover {
  background: var(--white);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--ink-700);
}

.btn-sm {
  padding: var(--s-1) var(--s-2);
  font-size: 14px;
  line-height: 20px;
}

/* Terminal frame — from the brand's graphic system */

.term {
  width: 100%;
  max-width: 440px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  overflow: hidden;
}

@media (min-width: 1000px) {
  .term {
    justify-self: end;
  }
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 var(--s-2);
  border-bottom: 1px solid var(--line);
}

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

.term-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.term-body {
  padding: var(--s-3) var(--s-3) var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--steel);
}

.term-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 4px 0;
}

.term-row dd {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.term-cmd {
  color: var(--paper);
  padding: 4px 0;
}

.term-cmd .prompt {
  color: var(--muted);
  margin-right: var(--s-1);
}

.term-gap {
  margin-bottom: var(--s-2);
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--signal);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------ sections */

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

@media (min-width: 900px) {
  .section {
    padding: var(--s-12) 0;
  }
}

.sec-head {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.sec-head .label {
  margin-bottom: var(--s-1);
}

.sec-note {
  max-width: 340px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--s-6);
    margin-bottom: var(--s-8);
  }
  .sec-note {
    text-align: right;
  }
}

/* --------------------------------------------------------------- apps */

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

.applist li:first-child .app {
  border-top: 0;
}

.app {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: var(--s-2);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.app-pixel {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--signal);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  object-fit: cover;
}

.app-main {
  min-width: 0;
  transition: transform 0.5s var(--ease);
}

.app-titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

.app-name {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.status-live {
  color: var(--paper);
}

.status-live::before {
  background: var(--signal);
}

.status-build {
  color: var(--steel);
}

.app-desc {
  display: block;
  max-width: 560px;
  margin-top: var(--s-1);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.app-meta {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.app-arrow {
  margin-top: 6px;
  color: var(--steel);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

@media (min-width: 820px) {
  .app-arrow {
    margin-top: 0;
  }
}

.app-thumb {
  display: none;
}

@media (min-width: 820px) {
  .app {
    grid-template-columns: 56px minmax(0, 1fr) 128px 20px;
    gap: var(--s-3);
    align-items: center;
  }
  .app-icon {
    width: 56px;
    height: 56px;
  }
  .app-pixel {
    display: block;
  }
  .app-thumb {
    display: block;
    width: 128px;
    height: 160px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-700);
  }
  .app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
  }
}

.app:hover .app-main,
.app:focus-visible .app-main {
  transform: translateX(8px);
}

.app:hover .app-arrow,
.app:focus-visible .app-arrow {
  color: var(--paper);
  transform: translateX(4px);
}

.app:hover .app-pixel,
.app:focus-visible .app-pixel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app:hover .app-thumb img {
  transform: scale(1.03);
}

.app:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 8px;
  border-radius: var(--r-md);
}

/* -------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: var(--s-3);
  background: var(--ink-900);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: var(--s-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------- method */

.method {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 860px) {
  .method {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }
}

.step {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.step h3 {
  margin: var(--s-2) 0 var(--s-1);
}

.step p {
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.step-meta {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.rule-note {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ------------------------------------------------------------ tagline */

.tagline-sec {
  padding: var(--s-12) 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .tagline-sec {
    padding: var(--s-12) 0;
  }
}

.tagline {
  max-width: 800px;
  margin: 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .tagline {
    font-size: 60px;
    line-height: 60px;
  }
}

.tagline .w {
  transition: opacity 0.45s var(--ease);
}

.js .tagline .w {
  opacity: 0.28;
}

.tagline .w.on {
  opacity: 1;
}

.tagline-caption {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------------------------------------------------------------- now */

.now {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 820px) {
  .now {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-8);
  }
}

.now-item {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.now-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.now-meta span + span::before {
  content: "·";
  margin-right: var(--s-1);
  color: var(--line);
}

.now-item h3 {
  margin: var(--s-2) 0 var(--s-1);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.now-item p {
  max-width: 460px;
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- about */

.about {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--s-12);
  }
}

.about-body {
  max-width: 640px;
}

.about-body p {
  color: var(--steel);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.about-body p + p {
  margin-top: var(--s-2);
}

.about-body strong {
  color: var(--paper);
  font-weight: 600;
}

.contact {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-2);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-link:hover {
  border-color: var(--paper);
}

.contact-link svg {
  transition: transform 0.3s var(--ease);
}

.contact-link:hover svg {
  transform: translateX(4px);
}

.about-note {
  margin-top: var(--s-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--steel);
  text-wrap: pretty;
}

.about-note a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

.about-note a:hover {
  text-decoration-color: var(--paper);
}

/* ---------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--white);
}

.faq summary .plus {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--steel);
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease);
}

.faq summary .plus::after {
  transform: rotate(90deg);
}

.faq details[open] summary .plus::after {
  transform: rotate(0deg);
}

.faq details[open] summary .plus::before,
.faq details[open] summary .plus::after {
  background: var(--paper);
}

.faq-body {
  max-width: 720px;
  padding: 0 0 var(--s-3);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.faq-body a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

.faq-body a:hover {
  text-decoration-color: var(--paper);
}

/* ---------------------------------------------------------------- cta */

.cta {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

.cta h2 {
  max-width: 680px;
}

.cta p {
  max-width: 560px;
  color: var(--steel);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-1);
}

.cta-alt {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.cta-alt a {
  color: var(--steel);
  text-decoration-color: var(--muted);
}

.cta-alt a:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

/* ------------------------------------------------------------- footer */

.footer {
  padding: var(--s-6) 0 var(--s-4);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-4) var(--s-3);
}

.footer-grid > div:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: var(--s-8);
    align-items: start;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-tag {
  margin-top: var(--s-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s-2);
}

.footer-col ul {
  display: grid;
  gap: var(--s-1);
}

.footer-col a {
  font-size: 14px;
  line-height: 20px;
  color: var(--steel);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-legal a {
  color: var(--steel);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--paper);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* ------------------------------------------------------------ reveals */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 80ms;
}

/* ------------------------------------------------------------ pages */

.page {
  flex: 1;
  padding: 96px 0 var(--s-10);
}

.page h1 {
  max-width: 680px;
  margin-bottom: var(--s-3);
}

.page-lead {
  max-width: 680px;
  color: var(--steel);
  font-size: 18px;
  line-height: 28px;
}

.page-body {
  max-width: 680px;
  margin-top: var(--s-6);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
}

.page-body h2 {
  margin: var(--s-6) 0 var(--s-2);
  color: var(--paper);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-body p + p {
  margin-top: var(--s-2);
}

.page-body ul {
  margin-top: var(--s-2);
  display: grid;
  gap: var(--s-1);
}

.page-body li {
  padding-left: var(--s-3);
  position: relative;
}

.page-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--muted);
}

.page-body a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

.page-body a:hover {
  text-decoration-color: var(--paper);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
}

.page-back:hover {
  color: var(--paper);
}

/* 404 */

.error-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 var(--s-10);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-700);
}

.error-page h1 {
  margin: var(--s-3) 0 var(--s-2);
}

.error-page p {
  max-width: 480px;
  color: var(--steel);
}

.error-cta {
  margin-top: var(--s-4);
}


/* ------------------------------------------------------ section link */

.section-link {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-link a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

/* -------------------------------------------------- subpage nav links */

.nav-sub {
  display: none;
  padding: var(--s-1) 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-sub:hover {
  color: var(--paper);
  background: var(--ink-700);
}

.nav-sub[aria-current="page"] {
  color: var(--paper);
  background: var(--ink-700);
}

@media (min-width: 860px) {
  .nav-sub {
    display: inline-block;
  }
}

/* ------------------------------------------------------- breadcrumbs */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.crumbs a {
  color: var(--steel);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--paper);
}

.crumbs span {
  color: var(--muted);
}

.page-meta a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

.page-meta {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* -------------------------------------------------------- build log */

.log {
  max-width: 960px;
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.log-entry {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.log-side {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.log-app {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.log-body h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.log-body p {
  max-width: 620px;
  margin-top: var(--s-1);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.log-body .log-fact {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

@media (min-width: 820px) {
  .log-entry {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: var(--s-1) var(--s-6);
    padding: var(--s-4) 0;
  }
  .log-side {
    flex-direction: column;
    gap: var(--s-1);
    padding-top: 4px;
  }
}

/* ----------------------------------------------------------- press */

.page-body-wide {
  max-width: 960px;
}

.page-body-wide > p,
.page-body-wide > .pull {
  max-width: 680px;
}

.pull {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: pretty;
}

.facts-table {
  width: 100%;
  margin-top: var(--s-1);
  border-collapse: collapse;
}

.facts-table th {
  width: 34%;
  padding: 12px var(--s-2) 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.facts-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 24px;
  color: var(--paper);
}

.facts-table td a {
  color: var(--paper);
  text-decoration-color: var(--muted);
}

.press-apps {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-2);
}

@media (min-width: 820px) {
  .press-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4) var(--s-6);
  }
}

.press-app {
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.press-app h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.press-app p {
  margin-top: var(--s-1);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.press-app .press-meta {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-2);
}

@media (min-width: 820px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.logo-tile {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  text-align: center;
}

.logo-tile img {
  height: 56px;
  width: auto;
}

.logo-tile a {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--steel);
  text-decoration: none;
}

.logo-tile a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo-tile.is-light {
  background: var(--paper);
  border-color: var(--paper);
}

.logo-tile.is-light a {
  color: var(--ink-900);
}

.logo-tile.is-light a:hover {
  color: var(--ink-900);
}

.cite {
  margin-top: var(--s-1);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 24px;
  color: var(--paper);
  text-wrap: pretty;
}

.press-note {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-1);
}

.press-note li {
  position: relative;
  padding-left: var(--s-3);
  color: var(--steel);
  font-size: 16px;
  line-height: 24px;
}

.press-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--steel);
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .tagline .w {
    opacity: 1 !important;
  }

  .cursor {
    animation: none;
  }
}
