@import url('brand/colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1, 'onum' 0;
  font-family: var(--font-body);
  font-weight: var(--w-light);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===================== HEADER ===================== */
.site-header {
  background: var(--z47-black) !important;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--z47-graphite);
  color: var(--z47-white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .brandmark__divider { background: rgba(255,255,255,0.2); }
.site-header .header-meta { color: rgba(255,255,255,0.55); }
.site-header .header-meta__issue { color: var(--z47-white); }
.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
}
.brandmark__divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}
.brandmark__name {
  font-size: 18px;
  letter-spacing: 0;
}
.brandmark__name .ampersand { color: var(--z47-orange); font-weight: var(--w-light); margin: 0 4px; }
.lockup{display:flex;align-items:center;gap:12px}
.lockup__z47{height:20px;width:auto;display:block}
.lockup__rule{width:1px;height:20px;background:rgba(255,255,255,0.28)}
.site-footer__lockup{display:flex;align-items:center;gap:12px}
.site-footer__lockup .lockup__z47{height:16px}
.site-footer__lockup .lockup__devc{height:17px}
.site-footer__meta{margin-left:4px}
.lockup__devc{height:23px;width:auto;display:block}
.header-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: var(--w-semibold);
}
.header-meta__issue { color: var(--fg-1); }
.header-meta__dot {
  width: 6px; height: 6px;
  background: var(--z47-orange);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===================== HERO ===================== */
.hero-wrap {
  background: var(--z47-black);
  color: var(--z47-white);
}
.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 56px 80px;
  position: relative;
}
.hero .hero__title { color: var(--z47-white); }
.hero .hero__eyebrow-text { color: rgba(255,255,255,0.55); }
.hero .hero__lede { color: rgba(255,255,255,0.72); }
.hero__numbers { border-color: rgba(255,255,255,0.2); }
.hero__numbers .bignum { border-right-color: rgba(255,255,255,0.1); }
.hero__numbers .bignum__value { color: var(--z47-white); }
.hero__numbers .bignum__label { color: rgba(255,255,255,0.55); }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 56px;
}
.hero__eyebrow-text {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: clamp(56px, 8.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  margin: 0 0 48px;
  max-width: 14ch;
}
.hero__title .accent {
  color: var(--z47-orange);
  font-weight: var(--w-light);
}
.hero__title .italic {
  font-style: italic;
  font-weight: var(--w-light);
}
.hero__lede {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 22px;
  line-height: 1.4;
  max-width: 58ch;
  color: var(--fg-2);
  margin: 0 0 80px;
}
.hero__path {
  width: 220px;
  height: 11px;
  background-image:
    linear-gradient(var(--z47-orange), var(--z47-orange)),
    linear-gradient(var(--z47-orange), var(--z47-orange));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 0, 0 100%;
}

/* Hero numbers strip */
.hero__numbers {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bignum {
  padding: 48px 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bignum:last-child { border-right: none; }
.bignum__value {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.bignum__value .unit {
  color: var(--z47-orange);
  font-size: 0.55em;
  margin-left: 6px;
  vertical-align: 8px;
}
.bignum__label {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ===================== TOOLBAR ===================== */
.toolbar-wrap {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: var(--z47-white);
  border-bottom: 1px solid var(--border-subtle);
}
.toolbar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 56px 22px;
}
.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.toolbar__label {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-right: 8px;
}
.chip {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-1);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 10px 16px 9px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 180ms ease-out;
}
.chip:hover { border-color: var(--z47-graphite); }
.chip[data-active="true"] {
  background: var(--z47-graphite);
  color: var(--z47-white);
  border-color: var(--z47-graphite);
}
.chip__count {
  font-weight: var(--w-light);
  opacity: 0.6;
  font-size: 11px;
}
.toolbar__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  padding: 9px 14px;
  min-width: 280px;
}
.toolbar__search input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: var(--fg-1);
}
.toolbar__search input::placeholder { color: var(--fg-3); }
.toolbar__search svg { color: var(--fg-3); flex-shrink: 0; }

/* ===================== CATEGORY SECTION ===================== */
.section-wrap {
  background: var(--z47-white);
  border-bottom: 1px solid var(--border-subtle);
}
.section-wrap--dark {
  background: var(--z47-graphite);
  color: var(--z47-white);
  border-bottom: none;
}
.section-wrap--dark .category__name { color: var(--z47-white); }
.section-wrap--dark .category__count { color: rgba(255,255,255,0.55); }
.section-wrap--dark .category__tag { color: var(--z47-orange); }
.section-wrap--dark .category__cards { border-color: rgba(255,255,255,0.16); }
.section-wrap--dark .pcard {
  background: transparent;
  border-color: rgba(255,255,255,0.16);
  color: var(--z47-white);
}
.section-wrap--dark .pcard:hover { background: rgba(255,255,255,0.04); }
.section-wrap--dark .pcard__name { color: var(--z47-white); }
.section-wrap--dark .pcard__headline { color: var(--z47-white); }
.section-wrap--dark .pcard__bullets li { color: rgba(255,255,255,0.7); }
.section-wrap--dark .pcard__tag { color: rgba(255,255,255,0.45); }
.section-wrap--dark .pcard__more { color: rgba(255,255,255,0.55); }
.section-wrap--dark .pcard__more:hover { color: var(--z47-orange); }
.section-wrap--dark .pcard__note { color: rgba(255,255,255,0.65); }
.section-wrap--dark .pcard__contact { color: rgba(255,255,255,0.7); }
.section-wrap--dark .pcard__contact svg { color: rgba(255,255,255,0.5); }
.section-wrap--dark .pcard__codebar { border-color: rgba(255,255,255,0.2); }
.section-wrap--dark .pcard__codebar-label { color: rgba(255,255,255,0.5); }
.section-wrap--dark .pcard__codebar-value { color: var(--z47-white); }
.section-wrap--dark .pcard__logo {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.2);
}
.section-wrap--dark .pcard__cta {
  background: var(--z47-white);
  color: var(--z47-graphite);
}
.section-wrap--dark .pcard__cta:hover { background: var(--z47-orange); color: var(--z47-white); }
.section-wrap--dark .pcard__cta--ghost {
  background: transparent;
  color: var(--z47-white);
  border-color: rgba(255,255,255,0.4);
}
.section-wrap--dark .pcard__cta--ghost:hover { background: var(--z47-white); color: var(--z47-graphite); border-color: var(--z47-white); }

/* Section divider band (full-bleed) */
.section-band {
  background: var(--z47-graphite);
  color: var(--z47-white);
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.section-band__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.section-band__title {
  color: var(--z47-white);
  font-weight: var(--w-light);
  letter-spacing: 0;
  text-transform: none;
  font-size: 18px;
}

.category {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 56px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: flex-start;
  position: relative;
}
.category__head {
  position: sticky;
  top: 160px;
  padding-top: 8px;
}
.category__tag {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--z47-orange);
  margin-bottom: 16px;
}
.category__name {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0 0 24px;
}
.category__path {
  width: 80px;
  height: 8px;
  background-image:
    linear-gradient(var(--z47-orange), var(--z47-orange)),
    linear-gradient(var(--z47-orange), var(--z47-orange));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 0, 0 100%;
  margin-bottom: 24px;
}
.category__count {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* Card grid */
.category__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}
.category__cards.dense { grid-template-columns: repeat(3, 1fr); }

/* ===================== PARTNER CARD ===================== */
.pcard {
  background: var(--bg-1);
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 200ms ease-out;
  position: relative;
}
.pcard:hover { background: var(--z47-cream); }
.pcard.dense { padding: 24px 22px 20px; gap: 12px; }

.pcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pcard__logo {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-strong);
  background: var(--z47-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pcard__logo img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}
.pcard__logo--wide img {
  max-width: 90%;
  max-height: 78%;
}
.pcard__logo--fallback {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 18px;
  color: var(--z47-graphite);
}
.pcard__tag {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 6px;
}

.pcard__name {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.pcard__headline {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: 15px;
  line-height: 1.35;
  color: var(--fg-1);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pcard__headline::before {
  content: "";
  display: inline-block;
  width: 24px;
  flex-shrink: 0;
  height: 8px;
  margin-top: 7px;
  background-image:
    linear-gradient(var(--z47-orange), var(--z47-orange)),
    linear-gradient(var(--z47-orange), var(--z47-orange));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 0, 0 100%;
}

.pcard__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard__bullets li {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-2);
  padding-left: 14px;
  position: relative;
}
.pcard__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--z47-orange);
}
.pcard__bullets.collapsed li:nth-child(n+3) { display: none; }
.pcard__more {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: none;
  border: none;
  padding: 0;
  align-self: flex-start;
  margin-top: -4px;
}
.pcard__more:hover { color: var(--z47-orange); }

.pcard__note {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-2);
  border-left: 2px solid var(--z47-orange);
  padding: 4px 0 4px 12px;
  font-style: italic;
}

.pcard__bottom {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pcard__codebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed var(--border-strong);
  padding: 10px 12px;
}
.pcard__codebar-label {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pcard__codebar-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pcard__codebar-copy {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--z47-orange);
  padding: 4px 0;
}
.pcard__codebar-copy.copied { color: var(--fg-3); }

.pcard__contact {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 12.5px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcard__contact svg { color: var(--fg-3); }

.pcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--z47-graphite);
  color: var(--z47-white);
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  transition: background 180ms ease-out;
  text-align: left;
}
.pcard__cta:hover { background: var(--z47-orange); }
.pcard__cta--ghost {
  background: var(--z47-white);
  color: var(--z47-graphite);
  border: 1px solid var(--z47-graphite);
}
.pcard__cta--ghost:hover {
  background: var(--z47-graphite);
  color: var(--z47-white);
}

/* ===================== INDEX VARIANT ===================== */
.idx-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 1.4fr 120px 140px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 180ms ease-out;
}
.idx-row:hover { background: var(--z47-cream); }
.idx-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.idx-row__logo {
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  background: var(--z47-white);
}
.idx-row__logo img { max-width: 60%; max-height: 60%; }
.idx-row__name {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.idx-row__headline {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 14px;
  color: var(--fg-2);
}
.idx-row__tag {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.idx-row__cta {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--z47-orange);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.idx-row__cta:hover { color: var(--z47-graphite); }
.idx-head {
  display: grid;
  grid-template-columns: 60px 80px 1fr 1.4fr 120px 140px;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--z47-black);
  color: var(--z47-white);
  margin-top: 120px;
  padding: 96px 56px 56px;
}
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.site-footer h2 .italic { font-style: italic; }
.site-footer h2 .accent { color: var(--z47-orange); }
.site-footer p {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin: 0 0 24px;
  max-width: 48ch;
}
.site-footer__col h4 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--z47-orange);
  margin: 0 0 18px;
}
.site-footer__col ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer__col li {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.site-footer__bottom {
  max-width: 1440px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--z47-graphite);
  color: var(--z47-white);
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 22px;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms ease-out;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast__dot {
  width: 6px; height: 6px; background: var(--z47-orange);
}

/* ===================== EMPTY STATE ===================== */
.empty {
  padding: 120px 56px;
  text-align: center;
  color: var(--fg-3);
  font-family: var(--font-display);
  font-weight: var(--w-light);
  font-size: 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.empty button {
  display: block;
  margin: 24px auto 0;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--z47-orange);
  background: none;
  border: none;
}

/* ===================== UTIL ===================== */
.divider-rule {
  max-width: 1440px;
  margin: 0 auto;
  height: 1px;
  background: var(--border-subtle);
}
