/* Components — buttons, work cards, chips */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
  will-change: transform;
}
.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
.btn-primary:hover { background: var(--moss-deep); box-shadow: 0 10px 24px -10px rgba(56, 81, 47, .55); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn-outline-light {
  border-color: rgba(247, 245, 240, .35);
  color: var(--paper-on-dark);
}
.btn-outline-light:hover { border-color: var(--paper-on-dark); }

/* ---------- work ---------- */
.work { border-top: 1px solid var(--line); }
.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.work-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 21, 15, .28);
  border-color: var(--line-strong);
}
.work-card--flagship { grid-column: 1 / -1; }
.work-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.work-card-link:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.work-card--flagship .work-visual { aspect-ratio: 16 / 9; }
.work-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s var(--ease-out);
}
.work-card:hover .work-visual img { transform: scale(1.035); }


.work-body {
  padding: 1.6rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .45rem;
}
.work-arrow {
  font-size: 1.1rem;
  color: var(--moss);
  transition: transform .35s var(--ease-out);
}
.work-card:hover .work-arrow { transform: translate(3px, -3px); }
.work-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .99rem;
}
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .35rem 0 0;
  padding: 0;
}
.chip-list li {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .7rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.work-metric {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-soft);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.work-metric strong { color: var(--ink); font-weight: 600; }

.work-more {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  max-width: 46rem;
}
.work-more a { color: var(--ink); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .work-list { grid-template-columns: 1fr; }
  .work-card--flagship { grid-column: auto; }
  .work-visual { min-height: 9rem; }
}
