:root {
  color-scheme: light;
  --yellow: #ffd400;
  --black: #0a0a0a;
  --white: #ffffff;
  --paper: #f3f3ef;
  --gray: #6a6a63;
  --line: 2px solid var(--black);
  font-family: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--black);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--paper); }
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: .95rem clamp(1.25rem, 4vw, 4rem);
  background: var(--white);
  border-bottom: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; font-weight: 900; }
.brand-mark { width: 2.2rem; aspect-ratio: 1; display: grid; place-items: center; background: var(--black); color: var(--yellow); font-size: .95rem; font-weight: 950; }
.brand-name { text-transform: uppercase; letter-spacing: .09em; font-size: .88rem; }
.brand-product { padding-left: .7rem; border-left: 1px solid #b9b9b4; color: var(--gray); font-size: .82rem; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 750; }
.desktop-nav a { display: flex; align-items: center; gap: .4rem; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.nav-count { min-width: 1.3rem; height: 1.3rem; display: inline-grid; place-items: center; padding: 0 .3rem; background: var(--yellow); border: 1px solid var(--black); font-size: .68rem; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.live-count { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--gray); font-size: .78rem; font-weight: 700; }
.live-count span { width: .48rem; height: .48rem; background: var(--yellow); border: 1px solid var(--black); border-radius: 50%; }
.button { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1rem; border: var(--line); border-radius: 0; cursor: pointer; font-weight: 850; }
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover { background: var(--yellow); color: var(--black); }
.button svg { width: 1rem; height: 1rem; }
.menu-button { display: none; width: 2.8rem; aspect-ratio: 1; place-items: center; background: var(--white); border: var(--line); }
.mobile-nav { position: absolute; inset: 100% 0 auto; display: grid; background: var(--yellow); border-bottom: var(--line); }
.mobile-nav > * { padding: 1rem 1.25rem; border: 0; border-bottom: 1px solid var(--black); background: transparent; text-align: left; font-weight: 850; }

.hero { min-height: calc(100svh - 5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(22rem, .75fr); background: var(--yellow); border-bottom: var(--line); }
.hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem); border-right: var(--line); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 clamp(2.5rem, 5vw, 5rem); font-size: .76rem; font-weight: 900; letter-spacing: .15em; }
.eyebrow span { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid currentColor; letter-spacing: 0; }
h1 { margin: auto 0 0; font-size: clamp(3.7rem, 6.9vw, 7.5rem); font-weight: 950; line-height: .91; letter-spacing: -.075em; }
h1 .title-line { display: block; width: max-content; white-space: nowrap; }
h1 mark { display: inline-block; padding: 0 .08em .08em; background: var(--black); color: var(--yellow); }
.hero-intro { max-width: 37rem; margin: clamp(2.5rem, 7vw, 6rem) 0 1.75rem; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; font-weight: 650; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.hero-proof span { display: flex; align-items: center; gap: .5rem; }
.hero-proof span::before { content: ""; width: .5rem; height: .5rem; background: var(--black); }

.match-maker { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 4rem); background: var(--black); color: var(--white); }
.match-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2.25rem; }
.panel-label { margin: 0 0 .8rem; color: var(--yellow); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.match-heading h2, .dialog h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
.match-number { color: #979797; font-size: .72rem; letter-spacing: .1em; }
.skill-field { display: flex; align-items: center; gap: 1rem; min-height: 6rem; padding: 1rem 0; border-top: 1px solid #6a6a6a; cursor: text; }
.skill-field:last-of-type { border-bottom: 1px solid #6a6a6a; }
.field-number { flex: 0 0 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 1px solid #8e8e8e; color: var(--yellow); font-size: .75rem; font-weight: 900; }
.field-copy { flex: 1; min-width: 0; display: grid; gap: .35rem; }
.field-copy > span { color: #aaa; font-size: .72rem; font-weight: 750; }
.field-copy input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 780; }
.field-copy input::placeholder { color: #666; }
.clear-field { flex: 0 0 2.1rem; height: 2.1rem; display: grid; place-items: center; background: transparent; color: #999; border: 0; cursor: pointer; }
.clear-field:hover { color: var(--yellow); }
.clear-field svg { width: 1rem; height: 1rem; }
.swap-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; height: 0; position: relative; z-index: 1; }
.swap-divider > span:not(.swap-icon) { height: 1px; background: transparent; }
.swap-icon { width: 2.6rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #6a6a6a; border-radius: 50%; background: var(--black); color: var(--yellow); transform: rotate(90deg); }
.swap-icon svg { width: 1rem; }
.match-submit { width: 100%; min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1rem 1.2rem; border: var(--line); border-radius: 0; background: var(--yellow); color: var(--black); cursor: pointer; font-size: 1rem; font-weight: 900; }
.match-submit:hover { background: var(--white); }
.match-submit svg { transition: transform .2s ease; }
.match-submit:hover svg { transform: translateX(.35rem); }
.form-note { margin: .85rem 0 0; color: #929292; font-size: .73rem; text-align: center; }

.discover { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading .eyebrow { margin-bottom: 1.5rem; }
.section-heading h2 { max-width: 12ch; margin: 0; font-size: clamp(2.5rem, 5vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { max-width: 20rem; margin: 0 0 .4rem; color: var(--gray); line-height: 1.7; }
.toolbar { display: grid; grid-template-columns: minmax(15rem, 1fr) auto auto; align-items: center; border: var(--line); background: var(--white); }
.search-box { min-height: 4rem; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; border-right: var(--line); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.category-list { display: flex; align-items: stretch; align-self: stretch; }
.category-chip { padding: 0 .85rem; border: 0; border-right: 1px solid #c8c8c3; background: var(--white); cursor: pointer; font-size: .82rem; font-weight: 750; }
.category-chip:hover, .category-chip.active { background: var(--yellow); }
.toggle-label { min-height: 4rem; display: flex; align-items: center; gap: .65rem; padding: 0 1rem; cursor: pointer; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 2.3rem; height: 1.25rem; padding: .15rem; border: 1px solid var(--black); background: #d7d7d2; }
.toggle-ui::after { content: ""; display: block; width: .82rem; aspect-ratio: 1; background: var(--black); transition: transform .2s ease; }
.toggle-label input:checked + .toggle-ui { background: var(--yellow); }
.toggle-label input:checked + .toggle-ui::after { transform: translateX(.92rem); }
.result-meta { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result-meta p { margin: 0; color: var(--gray); font-size: .82rem; }
.result-meta strong { color: var(--black); }
.result-meta button { border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: .2rem; }

.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--line); border-left: var(--line); }
.skill-card { min-width: 0; display: flex; flex-direction: column; padding: 1.5rem; background: var(--white); border-right: var(--line); border-bottom: var(--line); transition: background .2s ease, transform .2s ease; }
.skill-card:hover { background: #fffce9; }
.skill-card.featured { background: var(--yellow); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.25rem; }
.match-score { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.match-score strong { font-size: 1.2rem; }
.availability { padding: .35rem .5rem; border: 1px solid var(--black); font-size: .66rem; font-weight: 800; }
.availability.muted { border-color: #a7a7a1; color: var(--gray); }
.person-row { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; }
.avatar { flex: 0 0 3.2rem; width: 3.2rem; aspect-ratio: 1; display: grid; place-items: center; border: var(--line); font-size: .75rem; font-weight: 950; letter-spacing: .05em; }
.avatar-yellow { background: var(--yellow); color: var(--black); }
.featured .avatar-yellow { background: var(--white); }
.avatar-black { background: var(--black); color: var(--yellow); }
.avatar-white { background: var(--white); color: var(--black); }
.person-row h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.person-row p { margin: 0; color: var(--gray); font-size: .75rem; }
.featured .person-row p { color: #4a4a45; }
.exchange-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding: 1.1rem 0; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; }
.exchange-pair > div { min-width: 0; display: grid; gap: .4rem; }
.exchange-pair span { color: var(--gray); font-size: .65rem; font-weight: 700; }
.exchange-pair strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.exchange-pair svg { width: 1rem; color: #777; }
.card-note { min-height: 4.8rem; margin: 1.25rem 0; color: #484843; font-size: .84rem; line-height: 1.7; }
.card-meta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: auto; color: var(--gray); font-size: .72rem; }
.card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta svg { width: .9rem; height: .9rem; }
.card-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; margin-top: 1.5rem; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--black); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 850; }
.card-action:hover svg { transform: translate(.2rem, -.2rem); }
.card-action svg { width: 1rem; transition: transform .2s ease; }
.empty-state { min-height: 22rem; display: grid; place-items: center; align-content: center; gap: .75rem; border: var(--line); background: var(--white); text-align: center; }
.empty-state > span { font-size: 4rem; font-weight: 950; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { color: var(--gray); }
.empty-state .button { margin-top: .75rem; }

.matches { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: var(--white); border-bottom: var(--line); }
.matches-copy { padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem); border-right: 1px solid #454545; }
.eyebrow-light { color: var(--yellow); }
.matches-copy h2 { max-width: 12ch; margin: 0; font-size: clamp(2.8rem, 5vw, 5.8rem); line-height: .95; letter-spacing: -.06em; }
.matches-copy > p:last-child { max-width: 34rem; margin: 2rem 0 0; color: #b8b8b8; line-height: 1.8; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { min-height: 33.333%; display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: 1.5rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid #454545; }
.steps li:last-child { border-bottom: 0; }
.steps li > span { width: 3rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #777; color: var(--yellow); font-size: .72rem; font-weight: 900; }
.steps strong { font-size: 1.1rem; }
.steps p { margin: .4rem 0 0; color: #999; font-size: .85rem; }
.site-footer { min-height: 6.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 1.25rem clamp(1.25rem, 4vw, 4rem); background: var(--yellow); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.footer-brand { display: flex; align-items: center; gap: .7rem; text-transform: uppercase; }
.site-footer > p:last-child { justify-self: end; }

.dialog { width: min(43rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); margin: auto; padding: 0; border: var(--line); border-radius: 0; background: var(--black); color: var(--white); overflow: auto; }
.dialog::backdrop { background: rgb(255 212 0 / 82%); backdrop-filter: blur(2px); }
.dialog-shell { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 2.6rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #777; background: transparent; color: var(--white); cursor: pointer; }
.dialog-close:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.dialog-person { display: flex; align-items: center; gap: 1rem; margin: 2.25rem 0; }
.dialog-person p { margin: .35rem 0 0; color: #aaa; }
.dialog-swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.4rem; border: 1px solid #666; }
.dialog-swap div { display: grid; gap: .4rem; }
.dialog-swap div:last-child { text-align: right; }
.dialog-swap span { color: #999; font-size: .7rem; }
.dialog-swap strong { color: var(--yellow); font-size: 1rem; }
.plan-box { margin-top: 1rem; padding: 1.4rem; background: var(--white); color: var(--black); }
.plan-box > span { font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.plan-box ol { margin: 1rem 0 0; padding-left: 1.2rem; line-height: 1.8; font-size: .86rem; }
.publish-form > h2 { max-width: 13ch; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.publish-form label { display: grid; gap: .5rem; }
.publish-form label > span { color: #aaa; font-size: .72rem; font-weight: 750; }
.publish-form input, .publish-form textarea { width: 100%; padding: .9rem; border: 1px solid #777; border-radius: 0; outline: 0; background: #191919; color: var(--white); resize: vertical; }
.publish-form input:focus, .publish-form textarea:focus { border-color: var(--yellow); }
.full-field { margin-top: 1rem; }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; max-width: min(25rem, calc(100vw - 2.5rem)); display: flex; align-items: center; gap: .9rem; padding: 1rem; border: var(--line); background: var(--white); box-shadow: .5rem .5rem 0 var(--black); transform: translateY(140%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast-icon { flex: 0 0 2.5rem; width: 2.5rem; aspect-ratio: 1; display: grid; place-items: center; background: var(--yellow); border: 1px solid var(--black); }
.toast p { margin: .25rem 0 0; color: var(--gray); font-size: .75rem; line-height: 1.45; }

:focus-visible { outline: 3px solid #296cff; outline-offset: 3px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .live-count { display: none; }
  .hero { grid-template-columns: 1fr 26rem; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr auto; }
  .search-box { grid-column: 1 / -1; border-right: 0; border-bottom: var(--line); }
}

@media (max-width: 800px) {
  .site-header { min-height: 4.5rem; padding-block: .75rem; }
  .header-actions > .button { display: none; }
  .menu-button { display: grid; }
  .brand-product { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 42rem; border-right: 0; border-bottom: var(--line); }
  h1 { font-size: clamp(2.35rem, 11.7vw, 5.85rem); }
  .match-maker { min-height: 38rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.25rem; }
  .toolbar { display: block; }
  .search-box { border-bottom: var(--line); }
  .category-list { overflow-x: auto; min-height: 3.5rem; border-bottom: var(--line); }
  .category-chip { flex: 0 0 auto; padding: 0 1rem; }
  .toggle-label { justify-content: flex-end; }
  .matches { grid-template-columns: 1fr; }
  .matches-copy { border-right: 0; border-bottom: 1px solid #454545; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:first-of-type { display: none; }
}

@media (max-width: 560px) {
  .skill-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 35rem; }
  .hero-intro { margin-top: 2.5rem; }
  .match-maker { padding-block: 3.5rem; }
  .discover { padding-block: 4.5rem; }
  .section-heading h2 { font-size: 2.8rem; }
  .card-note { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .dialog-swap { grid-template-columns: 1fr; text-align: left; }
  .dialog-swap div:last-child { text-align: left; }
  .dialog-swap > svg { transform: rotate(90deg); }
  .steps li { grid-template-columns: 3rem 1fr; padding-block: 1.6rem; }
  .steps li > span { width: 2.5rem; }
  .site-footer { display: flex; justify-content: space-between; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .match-maker > * { animation: enter .65s both cubic-bezier(.2,.8,.2,1); }
  .hero-copy > *:nth-child(2), .match-maker > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3), .match-maker > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4), .match-maker > *:nth-child(4) { animation-delay: .18s; }
  @keyframes enter { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
