:root {
  --ink: #12140f;
  --paper: #f7f6f1;
  --white: #fffefa;
  --muted: #62645c;
  --line: #d8d8cf;
  --acid: #a6e22e;
  --acid-dark: #548a08;
  --cyan: #0b8897;
  --orange: #ed6b2f;
  --dark: #11130f;
  --dark-soft: #1b1e17;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--dark);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.62 var(--sans);
}

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

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font: 700 .98rem/1.15 var(--mono);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font: .68rem/1.2 var(--mono);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 26px;
}

.nav a {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover {
  color: var(--acid-dark);
}

.hero {
  position: relative;
  min-height: min(650px, calc(100vh - 76px));
  overflow: hidden;
  color: var(--white);
  background-color: var(--dark);
  border-bottom: 1px solid #373a32;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(650px, calc(100vh - 76px));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(calc(100% - 40px), var(--max));
  padding: 70px 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--acid-dark);
  font: 700 .76rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .015em;
}

.eyebrow::before {
  content: "// ";
  color: var(--orange);
}

.hero .eyebrow {
  color: var(--acid);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font: 850 6.4rem/.88 var(--sans);
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 690px;
  margin: 30px 0 0;
  color: #e6e8df;
  font: 400 1.45rem/1.45 var(--serif);
}

.hero-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 3px;
  color: var(--white);
  border-bottom: 2px solid var(--acid);
  font: 600 .84rem/1.4 var(--mono);
  text-decoration: none;
}

.hero-link:hover {
  color: var(--acid);
}

.proof-strip {
  color: var(--white);
  background: var(--dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1440px);
  margin: 0 auto;
}

.metric {
  min-width: 0;
  min-height: 148px;
  padding: 28px 40px;
  color: var(--white);
  border-right: 1px solid #373a32;
  text-decoration: none;
}

.metric:last-child {
  border-right: 0;
}

.metric:hover {
  color: var(--white);
  background: var(--dark-soft);
}

.metric strong {
  display: block;
  color: var(--acid);
  font: 700 2.55rem/1 var(--mono);
}

.metric:nth-child(2) strong,
.metric:nth-child(4) strong {
  color: #41c4d1;
}

.metric:nth-child(3) strong {
  color: #ff8a55;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: #c5c8be;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.content {
  padding: 106px max(20px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 900px;
  margin-bottom: 54px;
}

h1,
h2,
p,
td,
dd {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font: 800 4.5rem/1 var(--sans);
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(280px, .97fr);
  gap: 72px;
  align-items: start;
  padding-top: 38px;
  border-top: 1px solid var(--ink);
}

.intro-grid p {
  margin: 0;
  font: 1.14rem/1.68 var(--serif);
}

.intro-grid p:last-child {
  color: var(--muted);
}

.projects {
  width: 100%;
  margin: 72px 0 0;
  border-spacing: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  table-layout: fixed;
}

.projects th,
.projects td {
  padding: 27px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

.projects th {
  color: var(--white);
  background: var(--ink);
  font: 600 .76rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .015em;
}

.projects th:first-child,
.projects td:first-child {
  width: 235px;
}

.projects td:first-child {
  background: var(--white);
}

.projects td:first-child a {
  color: var(--ink);
  font: 750 1.15rem/1.3 var(--sans);
  text-decoration: none;
}

.projects td:first-child a::after {
  content: " \2197";
  color: var(--orange);
  font-family: var(--mono);
}

.projects td:first-child a:hover {
  color: var(--acid-dark);
}

.projects td:last-child {
  color: var(--muted);
  background: var(--paper);
  font-family: var(--serif);
}

.projects td:last-child b {
  color: var(--ink);
  font-family: var(--sans);
}

.projects td:last-child br {
  display: block;
  margin-bottom: 14px;
  content: "";
}

.projects .featured-project td {
  background: var(--white);
}

.projects .featured-project td:first-child {
  border-left: 7px solid var(--acid);
  padding-left: 21px;
}

.projects .featured-project:nth-of-type(3) td:first-child {
  border-left-color: var(--cyan);
}

.toys {
  padding: 100px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--white);
  border-top: 1px solid var(--ink);
}

.toys-inner {
  width: 100%;
}

.toys-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 72px;
  align-items: end;
}

.toys-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -50px;
}

.toys-heading h2 {
  max-width: 820px;
  font-size: 3.7rem;
}

.toys-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font: 1.02rem/1.65 var(--serif);
}

.toy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.toy-site {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.toy-number {
  margin: 0 0 42px;
  color: var(--cyan);
  font: 600 .72rem/1.4 var(--mono);
  text-transform: uppercase;
}

.toy-site:nth-child(3n + 2) .toy-number {
  color: var(--orange);
}

.toy-site:nth-child(3n) .toy-number {
  color: var(--acid-dark);
}

.toy-site h3 {
  margin: 0;
  font: 750 1.65rem/1.2 var(--sans);
}

.toy-site h3 a {
  text-decoration: none;
}

.toy-site h3 a::after {
  content: " \2197";
  color: var(--orange);
  font-family: var(--mono);
}

.toy-site > p:not(.toy-number) {
  margin: 18px 0 32px;
  color: var(--muted);
  font: .98rem/1.62 var(--serif);
}

.toy-visit {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--acid);
  font: 600 .78rem/1.4 var(--mono);
  text-decoration: none;
}

.contact {
  padding: 100px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 80px;
  align-items: start;
}

.contact .eyebrow {
  color: var(--acid);
}

.contact h2 {
  max-width: 720px;
  font-size: 3.65rem;
}

.contact-copy {
  max-width: 660px;
  margin: 25px 0 0;
  color: #c5c8be;
  font: 1.08rem/1.65 var(--serif);
}

.contact a {
  color: var(--white);
}

.contact a:hover {
  color: var(--acid);
}

.contact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #373a32;
}

.contact-list dt {
  color: var(--acid);
  font: 600 .76rem/1.5 var(--mono);
  text-transform: uppercase;
}

.contact-list dd {
  min-width: 0;
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: .88em;
}

.phone-note {
  margin: 22px 0 0;
  color: #aeb1a8;
  font: .76rem/1.55 var(--mono);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px max(20px, calc((100vw - var(--max)) / 2));
  color: #aeb1a8;
  background: #090a08;
  border-top: 1px solid #373a32;
  font: .77rem/1.5 var(--mono);
}

.footer p {
  margin: 0;
}

@media (max-width: 850px) {
  .site-header {
    gap: 20px;
  }

  .nav {
    gap: 8px 18px;
  }

  .hero h1 {
    max-width: 650px;
    font-size: 4.8rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid #373a32;
  }

  .content,
  .toys,
  .contact {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  h2 {
    font-size: 3.55rem;
  }

  .intro-grid,
  .toys-heading,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .toys-heading .eyebrow {
    grid-column: auto;
    margin-bottom: -28px;
  }

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

  .toy-site {
    min-height: 0;
  }

  .projects th:first-child,
  .projects td:first-child {
    width: 190px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    align-items: flex-start;
    min-height: 0;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .brand small {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 5px 16px;
  }

  .nav a {
    font-size: .75rem;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-art {
    object-position: 56% center;
    opacity: .38;
  }

  .hero-inner {
    width: calc(100% - 30px);
    justify-content: flex-end;
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 3.4rem;
    line-height: .94;
  }

  .hero-subhead {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .metric {
    min-height: 125px;
    padding: 22px 18px;
  }

  .metric strong {
    font-size: 1.72rem;
  }

  .content,
  .toys,
  .contact {
    padding-right: 15px;
    padding-left: 15px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  h2,
  .toys-heading h2,
  .contact h2 {
    font-size: 2.45rem;
  }

  .projects,
  .projects tbody,
  .projects tr,
  .projects th,
  .projects td {
    display: block;
    width: 100%;
  }

  .projects {
    border-left: 0;
  }

  .projects tr:first-child {
    display: none;
  }

  .projects th:first-child,
  .projects td:first-child {
    width: 100%;
  }

  .projects td {
    border-left: 1px solid var(--ink);
  }

  .projects td:first-child {
    padding: 20px;
    border-bottom-color: var(--line);
  }

  .projects td:last-child {
    padding: 22px 20px 30px;
    border-top: 0;
  }

  .projects .featured-project td:first-child {
    padding-left: 14px;
  }

  .toy-grid {
    margin-top: 38px;
  }

  .toy-site {
    padding: 24px 20px 28px;
  }

  .toy-number {
    margin-bottom: 28px;
  }

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

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