:root {
  --bg: #0b0c0e;
  --fg: #e8e6e0;
  --muted: #a39e94;
  --line: #2c3034;
  --accent: #d8d3c8;
  --ink: #0b0c0e;
  --sans: "Syne", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(11 12 14 / 0.9);
  backdrop-filter: blur(12px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.logo {
  display: block;
  height: 1.75rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-solid {
  background: var(--accent);
  color: var(--ink);
}

.btn-line {
  border: 1px solid var(--line);
  color: var(--fg);
}

.nav-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  height: 3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 0;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.95;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.hero .statement {
  max-width: 36rem;
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.frame {
  border: 1px solid var(--line);
  background: var(--ink);
}

.frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.manifesto,
.work,
.applications,
.contact,
.footer {
  padding: 5rem 0;
}

.manifesto-grid,
.work-grid {
  display: grid;
  gap: 2.5rem;
}

.manifesto h2,
.work h2,
.applications h2 {
  font-weight: 600;
  text-wrap: balance;
}

.manifesto h2 {
  font-size: 1.875rem;
}

.copy {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.work h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
}

.work .lead,
.work .body,
.applications .intro {
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.work .body {
  margin-top: 1rem;
}

.plate {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.points {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  list-style: none;
  padding: 0;
}

.points li {
  background: var(--bg);
  padding: 1.5rem;
}

.points h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.points p {
  margin-top: 0.75rem;
  text-wrap: pretty;
}

.aimed {
  max-width: 48rem;
  margin-top: 2rem;
  text-wrap: pretty;
}

.applications h2 {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: 2.25rem;
}

.applications .intro {
  max-width: 42rem;
}

.table-wrap {
  display: none;
  margin-top: 3rem;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

th,
td {
  padding: 1.25rem;
  vertical-align: top;
  font-weight: 500;
}

thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

tbody tr + tr th,
tbody tr + tr td {
  border-top: 1px solid var(--line);
}

tbody th {
  font-weight: 600;
}

td.problem {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  list-style: none;
  padding: 0;
}

.cards li {
  background: var(--bg);
  padding: 1.25rem;
}

.cards h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.cards p {
  margin-top: 0.75rem;
  text-wrap: pretty;
}

.contact h2 {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.45em;
  overflow-wrap: anywhere;
}

.contact h2:hover {
  text-decoration-color: var(--fg);
}

.footer {
  padding: 2.5rem 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer .logo {
  height: 2rem;
}

address {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted);
  text-wrap: pretty;
}

.footer .mail {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer .mail:hover {
  color: var(--fg);
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
  }

  .points {
    grid-template-columns: 1fr 1fr;
  }

  .points li {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .wrap {
    width: min(var(--max), calc(100% - 4rem));
  }

  .bar {
    height: 5rem;
  }

  .logo {
    height: 2rem;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-desktop .btn {
    height: 2.75rem;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .manifesto,
  .work,
  .applications,
  .contact {
    padding: 7rem 0;
  }

  .manifesto-grid {
    grid-template-columns: 4fr 8fr;
    gap: 2.5rem;
  }

  .manifesto h2,
  .contact h2 {
    font-size: 3rem;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .work h2,
  .applications h2 {
    font-size: 3rem;
  }

  .table-wrap {
    display: block;
  }

  .cards {
    display: none;
  }

  .footer-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
