.b2b-projects {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(155, 118, 83, 0.045), transparent 38%),
    var(--color-white);
}

.b2b-projects::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 1px;
  background: var(--color-bronze);
  opacity: 0.72;
}

.b2b-project-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 30px;
  border: 1px solid var(--color-border);
  background: rgba(252, 251, 248, 0.72);
}

.b2b-project-filters a {
  display: flex;
  min-height: 64px;
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
  color: #625f58;
  flex-direction: column;
  justify-content: space-between;
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.b2b-project-filters a:last-child {
  border-right: 0;
}

.b2b-project-filters a span {
  font-size: 12px;
  font-weight: 600;
}

.b2b-project-filters a small {
  color: var(--color-warm-gray);
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.b2b-project-filters a:hover,
.b2b-project-filters a:focus-visible {
  color: var(--color-ink);
  background: var(--color-ivory);
  box-shadow: inset 0 -3px var(--color-bronze);
  outline: none;
}

.b2b-project-filters a.is-current {
  background: var(--color-ink);
  color: var(--color-white);
}

.b2b-project-filters a.is-current small {
  color: var(--color-stone);
}

.b2b-project-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b2b-project-card {
  position: relative;
  display: flex;
  min-height: 420px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(252, 251, 248, 0.8);
  flex-direction: column;
  box-shadow: 0 14px 35px rgba(23, 23, 20, 0.035);
  transition: transform 320ms var(--ease), border-color 240ms ease, box-shadow 320ms ease;
}

.b2b-project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--color-bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.b2b-project-card::after {
  position: absolute;
  right: 25px;
  bottom: 70px;
  color: rgba(155, 118, 83, 0.08);
  font-family: var(--font-en);
  font-size: 92px;
  line-height: 1;
  pointer-events: none;
}

.b2b-project-card:nth-child(1)::after { content: "01"; }
.b2b-project-card:nth-child(2)::after { content: "02"; }
.b2b-project-card:nth-child(3)::after { content: "03"; }

.b2b-project-card:hover,
.b2b-project-card:focus-within {
  border-color: rgba(155, 118, 83, 0.48);
  box-shadow: 0 22px 48px rgba(23, 23, 20, 0.09);
  transform: translateY(-4px);
}

.b2b-project-card:hover::before,
.b2b-project-card:focus-within::before {
  transform: scaleX(1);
}

.b2b-project-card > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.b2b-project-card > div span,
.b2b-project-card > div strong {
  font-size: 9px;
  letter-spacing: 0.04em;
}

.b2b-project-card > div strong {
  padding: 5px 7px;
  border: 1px solid rgba(155, 118, 83, 0.2);
  background: rgba(155, 118, 83, 0.07);
  color: var(--color-bronze-dark);
  font-weight: 600;
}

.b2b-project-card h3 {
  min-height: 95px;
  margin: 58px 0 40px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.b2b-project-card dl {
  position: relative;
  margin: 0;
  z-index: 1;
}

.b2b-project-card dl div {
  display: grid;
  padding: 9px 0;
  grid-template-columns: 78px 1fr;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
}

.b2b-project-card dt {
  color: var(--color-warm-gray);
}

.b2b-project-card dd {
  margin: 0;
  text-align: right;
}

.b2b-project-card > a {
  display: flex;
  position: relative;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
  transition: color 200ms ease;
}

.b2b-project-card > a:hover,
.b2b-project-card > a:focus-visible {
  color: var(--color-bronze-dark);
}

.b2b-project-ledger {
  display: grid;
  margin-top: 48px;
  padding: 28px 30px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1fr) auto;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

.b2b-project-ledger div {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.b2b-project-ledger strong {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 500;
}

.b2b-project-ledger span,
.b2b-project-ledger p {
  margin: 0;
  color: var(--color-stone);
  font-size: 12px;
}

.b2b-project-ledger .b2b-button {
  border-color: var(--color-bronze);
  background: var(--color-bronze);
  color: var(--color-white);
}

.b2b-project-ledger .b2b-button:hover,
.b2b-project-ledger .b2b-button:focus-visible {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .b2b-project-card,
  .b2b-project-card::before {
    transition: none;
  }
}
