/* HireMtu design system.
   Hand-written, no framework, no build step. Tokens are from the mockups (PLAN.md §6),
   with the muted grey corrected for contrast (§6.1 item 1). */

/* ---------- font: self-hosted variable Inter, one file, all weights ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-body: #e5e6e3;
  --bg-card: #ffffff;
  --bg-sunken: #eaedeb;
  --text-dark: #1e1e1e;
  --text-muted: #626262;        /* was #8c8c8c — 2.68:1, failed AA. This is 4.87:1 */
  --dark-ui: #2b2b2b;
  --accent-yellow: #f4f85e;
  --accent-green: #90cda1;
  --accent-green-light: #cbeada;
  --accent-green-ink: #113c22;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 5px 15px 40px rgba(0, 0, 0, .05);
  --shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, .8);
  --shadow-lift: 0 18px 30px rgba(0, 0, 0, .09);

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(4rem, 9vw, 7rem);

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .75) 0%, transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(255, 255, 255, .55) 0%, transparent 45%),
    radial-gradient(circle at 50% 45%, rgba(144, 205, 161, .12) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--dark-ui);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
p { text-wrap: pretty; }

.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--text-muted); max-width: 46ch; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-muted);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-gap); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-muted); margin-top: .75rem; }

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--dark-ui); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: .5rem; }

/* ---------- header ---------- */
.site-header {
  padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em;
  color: var(--dark-ui); text-decoration: none;
}
.logo-mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--accent-yellow); color: var(--dark-ui);
  display: grid; place-items: center;
  box-shadow: 0 10px 20px rgba(244, 248, 94, .35);
}
.logo-mark svg { width: 22px; height: 22px; }

.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--text-muted);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--text-dark); }
@media (max-width: 700px) { .site-nav .nav-hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.7rem; border: none; border-radius: var(--radius-md);
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--dark-ui); color: #fff; box-shadow: var(--shadow-lift); }
.btn-primary:hover { background: #141414; transform: translateY(-2px); box-shadow: 0 22px 34px rgba(0,0,0,.14); }
.btn-accent { background: var(--accent-yellow); color: var(--text-dark); box-shadow: 0 14px 24px rgba(244,248,94,.32); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-quiet { background: var(--bg-card); color: var(--text-dark); box-shadow: var(--shadow-soft), var(--shadow-inner); }
.btn-quiet:hover { transform: translateY(-2px); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.icon-tile {
  width: 58px; height: 58px; border-radius: var(--radius-md); flex: none;
  display: grid; place-items: center; margin-bottom: 1.35rem;
}
.icon-tile svg { width: 26px; height: 26px; }
.tile-green  { background: var(--accent-green-light); color: var(--accent-green-ink); }
.tile-yellow { background: var(--accent-yellow); color: var(--dark-ui); }
.tile-dark   { background: var(--dark-ui); color: #fff; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); text-align: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-inline: auto; max-width: 56ch; }
.hero-mark {
  /* the mockup used z-index:-1, which vanishes inside any stacking context (§6.1 item 5) */
  background-image: linear-gradient(to top, rgba(144, 205, 161, .65) 0 .38em, transparent .38em);
  padding-inline: .08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.25rem; }

/* ---------- signup form ---------- */
.signup { max-width: 560px; margin: 2.5rem auto 0; }
.signup-row {
  display: flex; gap: .6rem; background: var(--bg-card); padding: .55rem;
  border-radius: 24px; box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.signup-row input[type="text"] {
  flex: 1; min-width: 0; border: none; background: var(--bg-sunken);
  border-radius: 17px; padding: 1rem 1.35rem; font-weight: 500; outline-offset: -2px;
}
.signup-row input::placeholder { color: #757575; font-weight: 400; }
.signup-row .btn { white-space: nowrap; }
.signup-note { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .9rem; }
.signup-note a { font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.alert {
  border-radius: var(--radius-md); padding: .9rem 1.2rem; margin-bottom: 1rem;
  font-size: .93rem; font-weight: 500; display: flex; gap: .6rem; align-items: flex-start;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .12rem; }
.alert-ok  { background: var(--accent-green-light); color: var(--accent-green-ink); }
.alert-err { background: #fbe3e0; color: #7a1f14; }

@media (max-width: 560px) {
  .signup-row { flex-direction: column; background: transparent; box-shadow: none; padding: 0; }
  .signup-row input[type="text"] { background: var(--bg-card); box-shadow: var(--shadow-soft), var(--shadow-inner); }
  .signup-row .btn { width: 100%; }
}

/* ---------- steps ---------- */
.track { background: var(--bg-card); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem);
         box-shadow: var(--shadow-soft), var(--shadow-inner); }
.track > .eyebrow { display: block; margin-bottom: 1.4rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 1.35rem; }
.steps li { display: grid; grid-template-columns: 2.35rem 1fr; gap: 1rem; align-items: start; }
.step-n {
  width: 2.35rem; height: 2.35rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-sunken); font-weight: 700; font-size: .9rem; color: var(--dark-ui);
}
.steps strong { display: block; margin-bottom: .2rem; }
.steps p { color: var(--text-muted); font-size: .92rem; }

/* ---------- tiers ---------- */
.tier { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.tier-badge {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; flex: none;
}
.tier p { font-size: .92rem; }

/* ---------- categories ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .65rem; }
.pill {
  background: var(--bg-card); border-radius: 999px; padding: .6rem 1.15rem;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-soft), var(--shadow-inner);
  display: inline-flex; align-items: center; gap: .5rem;
}
.pill svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ---------- faq ---------- */
.faq { display: grid; gap: .8rem; max-width: var(--measure); }
.faq details {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--text-muted); line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--text-muted); font-size: .94rem; margin-top: .8rem; }

/* ---------- closing cta ---------- */
.cta {
  background: var(--dark-ui); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem); text-align: center;
}
.cta h2 { margin-bottom: .9rem; }
.cta p { color: #b4b4b4; max-width: 48ch; margin-inline: auto; }
.cta .btn { margin-top: 1.9rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; padding-block: 3rem 2.5rem; color: var(--text-muted); font-size: .89rem; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
  padding-bottom: 1.75rem; border-bottom: 1px solid rgba(0, 0, 0, .09);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text-dark); }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }

/* ---------- legal pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 2.5rem; margin-bottom: .7rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; display: grid; gap: .4rem; }
.notice {
  background: var(--accent-yellow); color: var(--text-dark); border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; font-size: .93rem; font-weight: 500; margin-bottom: 2rem;
}

/* ---------- entrance animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.22, .68, .36, 1) backwards; }
.rise-1 { animation-delay: .06s; }
.rise-2 { animation-delay: .14s; }
.rise-3 { animation-delay: .22s; }

/* ==========================================================================
   App surface (signed-in). Same tokens as the public site — see PLAN.md §1.1.
   ========================================================================== */

.demo-bar {
  background: var(--dark-ui); color: #fff; font-size: .86rem; font-weight: 500;
  padding: .7rem var(--gutter); text-align: center;
}
.demo-bar strong { color: var(--accent-yellow); }
.demo-bar a { color: #fff; }

/* role toggle */
.role-toggle { display: inline-flex; background: var(--bg-sunken); border-radius: 999px; padding: 3px; gap: 2px; }
.role-btn {
  border: none; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .45rem 1rem; font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
.role-btn.is-active { background: var(--bg-card); color: var(--text-dark); box-shadow: var(--shadow-soft); }

.linkish {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: .93rem; font-weight: 600; color: var(--text-muted); text-decoration: underline;
}
.linkish:hover { color: var(--text-dark); }

/* auth screens */
.auth-shell { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 460px; }
.auth-h { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .6rem; }
.auth-sub { font-size: .95rem; margin-bottom: 1.6rem; }
.ink { color: var(--text-dark); }

.input-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
               text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.field {
  width: 100%; border: none; background: var(--bg-sunken); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; font-size: 1rem; font-weight: 500; color: var(--text-dark);
  outline-offset: -2px;
}
.field:focus-visible { outline: 3px solid var(--dark-ui); }
select.field { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
  linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }

.phone-row { display: flex; gap: .55rem; align-items: stretch; }
.prefix {
  display: grid; place-items: center; padding: 0 1rem; border-radius: var(--radius-md);
  background: var(--bg-card); box-shadow: var(--shadow-soft), var(--shadow-inner);
  font-weight: 700; font-size: .95rem; flex: none;
}
.field-help { font-size: .82rem; color: var(--text-muted); margin: .6rem 0 1.4rem; }
.field-error { display: block; margin-top: .45rem; font-size: .85rem; color: #7a1f14; font-weight: 500; }

.code-field { letter-spacing: .5em; font-size: 1.5rem; font-weight: 700; text-align: center; }
.btn-block { width: 100%; margin-top: 1.3rem; }
.resend { margin-top: 1.2rem; text-align: center; }
.auth-terms { margin-top: 1.5rem; font-size: .8rem; color: var(--text-muted); text-align: center; line-height: 1.5; }
.auth-terms a { font-weight: 600; }

.alert-mock { background: var(--accent-yellow); color: var(--text-dark); }
.code-out { font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: .12em; }

/* dashboard */
.dash-h { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); margin: .35rem 0 .6rem; }
.coming { margin-top: .9rem; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.profile-card { margin-top: clamp(1rem, 2.2vw, 1.75rem); }
.profile-card > .muted { font-size: .93rem; margin-bottom: 1.5rem; }
.profile-form { display: grid; gap: 1.2rem; max-width: 420px; }
.field-static .static-value { font-weight: 600; }
.field-static .muted { font-weight: 400; font-size: .88rem; }

/* ---------- M4: tasks, feed, quotes ---------- */
.list-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
             align-items: center; margin-bottom: 2rem; }
.backlink { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--text-muted);
            text-decoration: none; margin-bottom: 1.5rem; }
.backlink:hover { color: var(--text-dark); }
.detail-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.detail-head .dash-h { margin: .5rem 0 .5rem; }
.detail-body { white-space: pre-line; color: var(--text-dark) !important; }

.row-card { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between;
            text-decoration: none; margin-bottom: 1rem; transition: transform .18s ease, box-shadow .18s ease; }
.row-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), var(--shadow-inner); }
.row-main { min-width: 0; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.row-card h3 { margin-bottom: .35rem; }
.row-side { text-align: right; flex: none; }
.amount { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.small { font-size: .85rem; }

.status-pill { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
               padding: .25rem .65rem; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); }
.status-open { background: var(--accent-green-light); color: var(--accent-green-ink); }
.status-matched { background: var(--accent-yellow); color: var(--dark-ui); }
.status-cancelled { background: #fbe3e0; color: #7a1f14; }

.dist-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem;
             font-weight: 600; color: var(--text-muted); }
.tier-chip { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
             background: var(--accent-green-light); color: var(--accent-green-ink); }
.inline-ico { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; }

.empty-state { text-align: center; }
.empty-state .icon-tile { margin-inline: auto; }
.empty-state .btn { margin-top: 1.25rem; }

.quotes-h { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin: 2.5rem 0 1.25rem; }
.quote-card { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-start;
              margin-bottom: 1rem; }
.quote-main { min-width: 0; }
.quote-msg { margin-top: .5rem; font-style: italic; }
.quote-side { text-align: right; flex: none; display: grid; gap: .7rem; justify-items: end; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.matched-card { margin-top: 1.5rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.filter-field { min-width: 180px; }

.privacy-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; }
.loc-block, .escrow-note, .hirer-line { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; }
.escrow-note { background: var(--bg-sunken); border-radius: var(--radius-md); padding: 1rem 1.15rem; }
.escrow-note p { font-size: .88rem; margin: 0; }
.avatar-blob { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
               background: var(--accent-green-light); color: var(--accent-green-ink); font-weight: 800; }
.quote-form-card { margin-top: clamp(1rem, 2.2vw, 1.75rem); }
.optional { font-weight: 500; text-transform: none; letter-spacing: 0; }
.card-cta { margin-top: 1.25rem; }
.quiet-link { display: inline-block; margin-top: .9rem; margin-left: 1rem; font-size: .9rem;
              font-weight: 600; color: var(--text-muted); }

@media (max-width: 620px) {
  .row-card, .quote-card { flex-direction: column; align-items: stretch; gap: .9rem; }
  .row-side, .quote-side { text-align: left; justify-items: start; }
}

/* ---------- M5: job tracker ---------- */
.timeline { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; padding-bottom: 1.4rem; position: relative; }
.tl-step:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--bg-sunken);
}
.tl-step.is-done:not(:last-child)::before { background: var(--accent-green); }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-sunken);
  display: grid; place-items: center; position: relative; z-index: 1; color: #fff;
}
.tl-dot svg { width: 15px; height: 15px; }
.tl-step.is-done .tl-dot { background: var(--accent-green); color: var(--accent-green-ink); }
.tl-step.is-now .tl-dot { background: var(--dark-ui); box-shadow: 0 0 0 4px rgba(43,43,43,.12); }
.tl-step:not(.is-done):not(.is-now) strong { color: var(--text-muted); }

.action-card { margin-top: clamp(1rem, 2.2vw, 1.75rem); }
.action-card .btn { margin-top: 1.25rem; }
.action-card .profile-form .btn { margin-top: 0; }
.inline-form { display: inline-block; }
.proof-img { border-radius: var(--radius-md); margin: 1rem 0 .5rem; max-height: 320px; width: 100%; object-fit: cover; }
.auto-note { margin-top: .75rem; }

.money-list { margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.money-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.money-list dt { color: var(--text-muted); }
.money-list dd { margin: 0; font-weight: 600; }
.money-list .total { border-top: 1px solid rgba(0,0,0,.09); padding-top: .6rem; font-size: 1rem; }
.money-list .total dt { color: var(--text-dark); font-weight: 600; }

.event-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .7rem; }
.event-list li { display: flex; flex-direction: column; gap: .1rem; font-size: .9rem; }

.status-assigned { background: var(--bg-sunken); color: var(--text-muted); }
.status-funded { background: var(--accent-green-light); color: var(--accent-green-ink); }
.status-in_progress { background: var(--accent-yellow); color: var(--dark-ui); }
.status-completed { background: var(--accent-yellow); color: var(--dark-ui); }
.status-confirmed, .status-paid_out { background: var(--accent-green); color: var(--accent-green-ink); }
.status-disputed { background: #fbe3e0; color: #7a1f14; }

/* ---------- M6: money ---------- */
.stat { display: grid; gap: .35rem; }
.stat-n { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; }
.ledger-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ledger-row > div { display: flex; flex-direction: column; }
.amount.pos { color: var(--accent-green-ink); }
.amount.neg { color: var(--text-muted); }
.ref-mono { font-family: ui-monospace, monospace; font-size: .8em; }

/* ---------- M7: disputes + admin ---------- */
.dispute-summary { font-weight: 600; cursor: pointer; color: var(--text-muted); }
.dispute-summary:hover { color: var(--text-dark); }

/* ---------- M8: safety ---------- */
.btn-sos { background: #b4261a; color: #fff; box-shadow: 0 14px 24px rgba(180,38,26,.28); }
.btn-sos:hover { background: #9c2016; transform: translateY(-2px); }
.sos-card { border-top: 3px solid #b4261a; }
.sos-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
            margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(0,0,0,.08); }
.contact-row { padding: .8rem 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.contact-row:last-of-type { border-bottom: none; }

/* ---------- M10: chat ---------- */
.thread { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .7rem; max-height: 340px; overflow-y: auto; }
.bubble { max-width: 82%; padding: .7rem 1rem; border-radius: 18px; }
.bubble p { margin: 0; font-size: .94rem; color: var(--text-dark); }
.bubble .small { display: block; margin-top: .3rem; font-size: .74rem; }
.bubble.mine { margin-left: auto; background: var(--accent-green-light); border-bottom-right-radius: 6px; }
.bubble.theirs { background: var(--bg-sunken); border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: .6rem; margin-top: 1rem; }
.chat-form .field { flex: 1; min-width: 0; }
@media (max-width: 560px) { .chat-form { flex-direction: column; } .chat-form .btn { width: 100%; } }

/* ---------- M11: profiles ---------- */
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 1.6rem; flex: none; }
.avatar-row { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; margin-top: 1.25rem; }
.avatar-form { display: grid; gap: .6rem; flex: 1; min-width: 220px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.check { display: flex; gap: .55rem; align-items: center; font-size: .93rem; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--dark-ui); }
nav[role="navigation"] { display: flex; gap: .4rem; flex-wrap: wrap; }
nav[role="navigation"] a, nav[role="navigation"] span {
  padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; text-decoration: none;
  background: var(--bg-card); box-shadow: var(--shadow-soft); }
nav[role="navigation"] [aria-current="page"] { background: var(--dark-ui); color: #fff; }

/* ---------- M12: language switch ---------- */
.lang-switch { display: inline-flex; gap: 2px; background: var(--bg-sunken); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: .3rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
                 text-decoration: none; color: var(--text-muted); }
.lang-switch a[aria-current="true"] { background: var(--bg-card); color: var(--text-dark); box-shadow: var(--shadow-soft); }

/* ---------- M14: marketplace browse ---------- */
.hero-compact { padding-block: clamp(2.5rem,5vw,4rem) 1.5rem; }
.hero-compact h1 { font-size: clamp(2rem,1.5rem+2.6vw,3.4rem); }
.signup-input { flex: 1; min-width: 0; border: none; background: var(--bg-sunken); border-radius: 17px;
                padding: 1rem 1.35rem; font-weight: 500; outline-offset: -2px; }
.cat-row { justify-content: center; }
.cat-row .pill { text-decoration: none; transition: transform .15s ease; }
.cat-row .pill:hover { transform: translateY(-2px); }
.cat-row .pill.is-on { background: var(--dark-ui); color: #fff; }
.cat-row .pill.is-on .muted { color: #bdbdbd; }
.worker-card { display: flex; flex-direction: column; gap: .9rem; }
.worker-card .btn { margin-top: auto; align-self: flex-start; }
.worker-rate { font-size: .95rem; color: var(--text-dark) !important; }

/* ══════════════════ M15: marketplace front page ══════════════════
   A colourway per category, used by chips, gig cards and worker cards so the
   grid reads as a system rather than six unrelated tiles. */
.cat-plumbing  { --c-soft:#cfe8f5; --c-ink:#0f3d52; --c-pop:#3f9ec9; }
.cat-cleaning  { --c-soft:#d6f2e4; --c-ink:#0f3f2c; --c-pop:#37a878; }
.cat-moving    { --c-soft:#fdeacb; --c-ink:#5a3b12; --c-pop:#d38a1c; }
.cat-assembly  { --c-soft:#e6def8; --c-ink:#2f1f57; --c-pop:#7f5ed0; }
.cat-gardening { --c-soft:#dcf0c8; --c-ink:#1e3d12; --c-pop:#5d9e33; }
.cat-repairs   { --c-soft:#fbdcd6; --c-ink:#5c1f14; --c-pop:#d4573c; }

/* ---------- hero carousel ---------- */
.carousel { position: relative; margin-top: 1rem; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start; min-height: 340px; padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  border-radius: var(--radius-lg); color: #fff;
}
.slide-a { background: linear-gradient(135deg,#1f6f8b 0%,#2fa2a8 55%,#63c9a8 100%); }
.slide-b { background: linear-gradient(135deg,#4a2f7d 0%,#7f5ed0 55%,#b78bea 100%); }
.slide-c { background: linear-gradient(135deg,#8a3a12 0%,#d4823c 55%,#f4c65e 100%); }
.slide-copy { max-width: 34rem; }
.slide h1 { font-size: clamp(1.9rem,1.3rem+2.6vw,3.1rem); color: #fff; margin-bottom: .9rem; }
.slide-mark { display: inline-block; background: rgba(255,255,255,.22); padding: 0 .35em;
              border-radius: 12px; backdrop-filter: blur(2px); }
.slide p { color: rgba(255,255,255,.9); font-size: clamp(1rem,.95rem+.3vw,1.15rem); max-width: 44ch; }
.btn-slide { background: #fff; color: var(--text-dark); margin-top: 1.75rem; box-shadow: 0 14px 26px rgba(0,0,0,.18); }
.btn-slide:hover { transform: translateY(-2px); }
.slide-art { flex: none; opacity: .3; }
.slide-art svg { width: clamp(120px, 18vw, 210px); height: auto; color: #fff; }
@media (max-width: 760px) { .slide-art { display: none; } }

.carousel-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.carousel-dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: rgba(0,0,0,.18); cursor: pointer; transition: width .2s ease, background .2s ease;
}
.carousel-dots button[data-on] { width: 26px; border-radius: 999px; background: var(--dark-ui); }

/* ---------- search ---------- */
.search-wrap { margin-top: 2rem; }
.searchbar {
  display: flex; gap: .6rem; align-items: center; background: var(--bg-card);
  border-radius: 22px; padding: .55rem .55rem .55rem 1.2rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner); max-width: 720px; margin-inline: auto;
}
.search-ico { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.searchbar input { flex: 1; min-width: 0; border: none; background: none; outline: none;
                   font-size: 1rem; font-weight: 500; padding: .7rem 0; }
.live-count { display: flex; align-items: center; justify-content: center; gap: .5rem;
              margin-top: 1rem; font-size: .88rem; color: var(--text-muted); font-weight: 600; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #37a878;
            box-shadow: 0 0 0 4px rgba(55,168,120,.18); }

/* ---------- category chips ---------- */
.cats { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .6rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 650;
  background: var(--c-soft, var(--bg-card)); color: var(--c-ink, var(--text-dark));
  box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.chip-n { background: rgba(255,255,255,.6); border-radius: 999px; padding: 0 .5rem; font-size: .78rem; }
.chip.is-on { background: var(--c-pop, var(--dark-ui)); color: #fff; }
.chip.is-on .chip-n { background: rgba(255,255,255,.25); }

/* ---------- gig cards ---------- */
.gig-grid { display: grid; gap: clamp(1rem,2.2vw,1.6rem);
            grid-template-columns: repeat(auto-fill, minmax(min(100%,290px), 1fr)); }
.gig {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-soft), var(--shadow-inner); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gig:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), var(--shadow-inner); }
.gig-art { position: relative; aspect-ratio: 400/260; background: var(--c-soft, var(--bg-sunken)); }
.gig-art img { width: 100%; height: 100%; object-fit: cover; }
.gig-cat {
  position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.92);
  color: var(--c-ink, var(--text-dark)); font-size: .74rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .02em;
}
.gig-price {
  position: absolute; bottom: .8rem; right: .8rem; background: var(--c-ink, var(--dark-ui)); color: #fff;
  font-size: .88rem; font-weight: 800; padding: .4rem .8rem; border-radius: 999px;
}
.gig-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.gig-body h3 { font-size: 1.02rem; line-height: 1.3; }
.gig-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
            font-size: .85rem; color: var(--text-muted); margin: 0; }
.gig-quotes { background: var(--c-soft, var(--bg-sunken)); color: var(--c-ink, var(--text-muted));
              padding: .18rem .55rem; border-radius: 999px; font-weight: 700; font-size: .76rem; }

/* ---------- worker cards ---------- */
.worker-grid { display: grid; gap: clamp(1rem,2.2vw,1.6rem);
               grid-template-columns: repeat(auto-fill, minmax(min(100%,215px), 1fr)); }
.wcard {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.6rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  border-top: 4px solid var(--c-pop, var(--accent-green));
  transition: transform .2s ease, box-shadow .2s ease;
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), var(--shadow-inner); }
.wcard-ring { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
              background: var(--c-soft, var(--accent-green-light)); margin-bottom: .5rem; overflow: hidden; }
.wcard-ring img { width: 100%; height: 100%; object-fit: cover; }
.wcard-initial { font-size: 1.6rem; font-weight: 800; color: var(--c-ink, var(--accent-green-ink)); }
.wcard-name { font-size: 1.02rem; }
.wcard-cat { font-size: .82rem; color: var(--text-muted); }
.wcard-rating { font-size: .9rem; font-weight: 700; color: var(--c-ink, var(--text-dark)); }
.wcard-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
               background: var(--c-soft, var(--accent-green-light)); color: var(--c-ink, var(--accent-green-ink));
               padding: .2rem .6rem; border-radius: 999px; }
.wcard-rate { font-size: .85rem; color: var(--text-muted); }
.wcard .btn { margin-top: .8rem; width: 100%; }

/* ---------- facts strip ---------- */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); }
.fact { display: flex; gap: .9rem; align-items: flex-start; background: var(--bg-card);
        border-radius: var(--radius-md); padding: 1.25rem 1.35rem;
        box-shadow: var(--shadow-soft), var(--shadow-inner); }
.fact svg { width: 22px; height: 22px; flex: none; color: var(--accent-green-ink); margin-top: .15rem; }
.fact strong { display: block; margin-bottom: .25rem; font-size: .96rem; }
.fact p { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* ---------- closing ---------- */
.cta-bright { background: linear-gradient(135deg,#1f6f8b 0%,#2fa2a8 50%,#63c9a8 100%); }
.cta-bright p { color: rgba(255,255,255,.9); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }

/* ══════════ M16: real photography + full-width public site ══════════ */

/* wrap-wide: the grids breathe to the screen edge; prose keeps a readable measure.
   Full-bleed is for the marketplace, not for paragraphs — a 2000px line is unreadable. */
.wrap-wide { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.bleed { width: 100%; }
.bleed .wrap { padding-inline: 0; }

/* ---------- photo hero ---------- */
.carousel { position: relative; }
.carousel-track { border-radius: 0; }
.slide {
  position: relative; display: block; padding: 0;
  min-height: clamp(400px, 56vh, 620px); border-radius: 0; overflow: hidden;
}
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,20,26,.88) 0%, rgba(12,20,26,.62) 42%, rgba(12,20,26,.18) 100%);
}
.slide-copy {
  position: relative; z-index: 1; height: 100%; max-width: 1680px; margin-inline: auto;
  padding: clamp(2.5rem,6vw,5rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.slide-copy > * { max-width: 40rem; }
.slide h1 { font-size: clamp(2rem,1.3rem+3.2vw,3.8rem); color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.slide-mark { display: inline-block; background: var(--accent-yellow); color: var(--dark-ui);
              padding: 0 .3em; border-radius: 14px; }
.slide p { color: rgba(255,255,255,.93); font-size: clamp(1rem,.95rem+.35vw,1.2rem); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 2; }
.carousel-dots button { background: rgba(255,255,255,.45); }
.carousel-dots button[data-on] { background: #fff; }

/* ---------- gig photography ---------- */
.gig-art { aspect-ratio: 3/2; background: var(--c-soft, var(--bg-sunken)); }
.gig-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gig:hover .gig-art img { transform: scale(1.05); }
.gig-art::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none;
}
.gig-cat, .gig-price { z-index: 1; }
.gig-price { background: var(--accent-yellow); color: var(--dark-ui); }

/* wider grids now that there is room */
.gig-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%,300px), 1fr)); }
.worker-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%,200px), 1fr)); }

/* prose stays readable even on a very wide screen */
.section-head, .facts .fact p { max-width: var(--measure); }
.credit-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.credit-list li { font-size: .9rem; line-height: 1.5; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }

/* ══════════ M17: faces carousel ══════════
   Technique from simeydotme's "Stripe Sessions style Flex Carousel". The active
   card takes a wide flex-basis and the rest share the remainder; transitioning
   flex-basis IS the animation. nth-child rules taper the row into the edges, so
   no JavaScript has to measure anything. */
.hero-faces { background: linear-gradient(170deg, #10242e 0%, #163a44 55%, #1c4f4a 100%); padding-bottom: 1rem; }
.hero-intro { padding-top: clamp(2.5rem,6vw,4.5rem); text-align: center; }
.hero-intro h1 { font-size: clamp(2rem,1.3rem+3vw,3.6rem); color: #fff; margin-bottom: 1rem; }
.hero-intro p { color: rgba(255,255,255,.85); max-width: 46rem; margin-inline: auto;
                font-size: clamp(1rem,.95rem+.3vw,1.15rem); }
.hero-intro .hero-actions { justify-content: center; margin-top: 1.75rem; }

.faces { position: relative; }
.faces__list {
  display: flex; overflow: hidden; list-style: none; margin: 0;
  padding: 2rem clamp(.5rem,2vw,1.5rem) 3rem; contain: layout; isolation: isolate;
}
.faces__item {
  position: relative; display: grid; align-content: end;
  flex: 1 1 10%; margin: 0 6px; height: clamp(300px, 52vh, 460px);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.08); contain: layout; isolation: isolate;
  box-shadow: rgba(0,0,0,.4) 0 3px 15px 2px, rgba(0,0,0,.2) 0 12px 28px 0,
              rgba(255,255,255,.06) 0 0 0 1px inset;
}
/* transition the properties that move, not everything */
.faces__item { transition: flex-basis .6s cubic-bezier(.55,.24,.18,1),
                           flex-grow .6s cubic-bezier(.55,.24,.18,1),
                           transform .6s cubic-bezier(.55,.24,.18,1),
                           opacity .6s cubic-bezier(.55,.24,.18,1),
                           margin .6s cubic-bezier(.55,.24,.18,1); }
.faces__item img, .faces__item .faces__caption { transition: opacity .6s ease, filter .6s ease, transform .6s ease; }

.faces__item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1; filter: saturate(.25) contrast(.8) brightness(1.05);
}
.faces__item::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(165deg, rgba(16,36,46,0) 35%, rgba(47,162,168,.45) 72%, rgba(99,201,168,.6) 100%);
}
.faces__item:hover { flex-basis: 220px; }
.faces__item[data-active] { flex-basis: 340px; flex-grow: 0; }
.faces__item[data-active] img { filter: none; }
.faces__item[data-active]::after {
  background: linear-gradient(to top, rgba(8,18,24,.86) 0%, rgba(8,18,24,.25) 45%, transparent 70%);
}

.faces__caption {
  position: relative; z-index: 1; padding: 1.1rem 1.25rem 1.35rem;
  display: grid; gap: .15rem; opacity: 0; transform: translateY(10px);
  white-space: nowrap; overflow: hidden;
}
.faces__item[data-active] .faces__caption { opacity: 1; transform: none; }
.faces__caption strong { color: #fff; font-size: 1.1rem; letter-spacing: -.01em; }
.faces__caption span { color: rgba(255,255,255,.82); font-size: .85rem; }
.faces__rating { color: var(--accent-yellow) !important; font-weight: 700; }
.faces__rating em { font-style: normal; color: rgba(255,255,255,.6); }

/* taper the row into both edges — pure nth-child, no measuring */
.faces__item:nth-child(3), .faces__item:nth-child(10) { flex: 0 0 12px; }
.faces__item:nth-child(2), .faces__item:nth-child(11) { flex: 0 0 6px; transform: translateX(-40px); }
.faces__item:nth-child(11) { transform: translateX(40px); }
.faces__item:nth-child(1), .faces__item:nth-child(n+12) {
  flex: 0 0 0; margin: 0; box-shadow: none; opacity: 0 !important;
}
.faces__item:not(:nth-child(n+5)) img, .faces__item:nth-child(n+9) img { opacity: .75; }
.faces__item:not(:nth-child(n+4)) .faces__caption, .faces__item:nth-child(n+10) .faces__caption { opacity: 0 !important; }

.faces__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--dark-ui);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.faces__nav svg { width: 18px; height: 18px; }
.faces__prev { left: clamp(.5rem,2vw,1.5rem); }
.faces__prev svg { transform: rotate(180deg); }
.faces__next { right: clamp(.5rem,2vw,1.5rem); }
.faces__nav:hover { background: #fff; }

@media (max-width: 640px) {
  .faces__item { flex-basis: 10%; margin: 0 4px; height: 280px; border-radius: 12px; }
  .faces__item[data-active] { flex-basis: 200px; }
  .faces__item:nth-child(3), .faces__item:nth-child(7) { flex: 0 0 10px; }
  .faces__item:nth-child(2), .faces__item:nth-child(8) { flex: 0 0 5px; }
  .faces__item:nth-child(1), .faces__item:nth-child(n+9) { flex: 0 0 0; margin: 0; opacity: 0 !important; }
  .faces__caption strong { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faces__item, .faces__item img, .faces__item .faces__caption { transition: none !important; }
}

/* ══════════ M18: spotlight profile ══════════
   One person at a time, switched by radio inputs — no JavaScript. Twelve small
   tiles said almost nothing; a hirer choosing someone to let into their home
   wants a face, a rating, what the person does, and what somebody said. */
.spotlight { position: relative; }
.spot-panels { position: relative; }
.spot { display: none; }

.spot {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.spot-photo {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--c-soft, var(--bg-sunken)); aspect-ratio: 3/4; display: grid; place-items: center;
}
.spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.spot-initial { font-size: 4rem; font-weight: 800; color: var(--c-ink, var(--text-muted)); }
.spot-initial.sm { font-size: 1.2rem; }
.spot-verified {
  position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.94); color: var(--c-ink, var(--dark-ui));
  font-size: .74rem; font-weight: 700; padding: .32rem .7rem; border-radius: 999px;
}
.spot-body { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.spot-name { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0; }
.spot-trade { color: var(--text-muted); font-weight: 600; margin: -.5rem 0 0; }
.spot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
              gap: .75rem; margin: .25rem 0 0; }
.spot-stats > div { background: var(--bg-sunken); border-radius: var(--radius-sm); padding: .7rem .85rem; }
.spot-stats dt { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
                 color: var(--text-muted); }
.spot-stats dd { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.spot-bio { color: var(--text-muted); font-size: .95rem; margin: 0; max-width: 60ch; }
.spot-can .eyebrow { display: block; margin-bottom: .55rem; }
.spot-where { display: flex; align-items: center; gap: .4rem; font-size: .88rem;
              color: var(--text-muted); margin: 0; }
.spot-review {
  margin: 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent-green);
  background: var(--bg-sunken); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .92rem; font-style: italic; color: var(--text-dark);
}
.spot-stars { color: #d99a00; font-style: normal; margin-right: .35rem; }
.spot-review cite { display: block; margin-top: .4rem; font-style: normal;
                    font-size: .82rem; color: var(--text-muted); }
.spot-cta { align-self: flex-start; margin-top: auto; }

/* the picker rail */
.spot-rail {
  display: flex; gap: .7rem; overflow-x: auto; padding: 1.25rem .25rem .5rem;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.spot-pick {
  flex: 0 0 auto; width: 74px; cursor: pointer; text-align: center; scroll-snap-align: start;
  display: grid; gap: .4rem; justify-items: center; border-radius: var(--radius-sm); padding: .35rem;
  transition: transform .18s ease, background .18s ease;
}
.spot-pick img, .spot-pick .spot-initial {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 2px transparent; transition: box-shadow .2s ease, filter .2s ease;
  filter: saturate(.4);
  display: grid; place-items: center; background: var(--bg-sunken);
}
.spot-pick-name { font-size: .74rem; font-weight: 700; color: var(--text-muted);
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.spot-pick:hover { background: var(--bg-card); transform: translateY(-2px); }
.spot-pick:focus-visible { outline: 3px solid var(--dark-ui); outline-offset: 2px; }

@media (max-width: 720px) {
  .spot { grid-template-columns: 1fr; }
  .spot-photo { aspect-ratio: 16/10; }
  .spot-cta { align-self: stretch; text-align: center; justify-content: center; }
}

.spot-radio:nth-of-type(1):checked ~ .spot-panels .spot:nth-child(1),
.spot-radio:nth-of-type(2):checked ~ .spot-panels .spot:nth-child(2),
.spot-radio:nth-of-type(3):checked ~ .spot-panels .spot:nth-child(3),
.spot-radio:nth-of-type(4):checked ~ .spot-panels .spot:nth-child(4),
.spot-radio:nth-of-type(5):checked ~ .spot-panels .spot:nth-child(5),
.spot-radio:nth-of-type(6):checked ~ .spot-panels .spot:nth-child(6),
.spot-radio:nth-of-type(7):checked ~ .spot-panels .spot:nth-child(7),
.spot-radio:nth-of-type(8):checked ~ .spot-panels .spot:nth-child(8),
.spot-radio:nth-of-type(9):checked ~ .spot-panels .spot:nth-child(9),
.spot-radio:nth-of-type(10):checked ~ .spot-panels .spot:nth-child(10),
.spot-radio:nth-of-type(11):checked ~ .spot-panels .spot:nth-child(11),
.spot-radio:nth-of-type(12):checked ~ .spot-panels .spot:nth-child(12) { display: grid; }

.spot-radio:nth-of-type(1):checked ~ .spot-rail .spot-pick:nth-child(1) img, .spot-radio:nth-of-type(1):checked ~ .spot-rail .spot-pick:nth-child(1) .spot-initial,
.spot-radio:nth-of-type(2):checked ~ .spot-rail .spot-pick:nth-child(2) img, .spot-radio:nth-of-type(2):checked ~ .spot-rail .spot-pick:nth-child(2) .spot-initial,
.spot-radio:nth-of-type(3):checked ~ .spot-rail .spot-pick:nth-child(3) img, .spot-radio:nth-of-type(3):checked ~ .spot-rail .spot-pick:nth-child(3) .spot-initial,
.spot-radio:nth-of-type(4):checked ~ .spot-rail .spot-pick:nth-child(4) img, .spot-radio:nth-of-type(4):checked ~ .spot-rail .spot-pick:nth-child(4) .spot-initial,
.spot-radio:nth-of-type(5):checked ~ .spot-rail .spot-pick:nth-child(5) img, .spot-radio:nth-of-type(5):checked ~ .spot-rail .spot-pick:nth-child(5) .spot-initial,
.spot-radio:nth-of-type(6):checked ~ .spot-rail .spot-pick:nth-child(6) img, .spot-radio:nth-of-type(6):checked ~ .spot-rail .spot-pick:nth-child(6) .spot-initial,
.spot-radio:nth-of-type(7):checked ~ .spot-rail .spot-pick:nth-child(7) img, .spot-radio:nth-of-type(7):checked ~ .spot-rail .spot-pick:nth-child(7) .spot-initial,
.spot-radio:nth-of-type(8):checked ~ .spot-rail .spot-pick:nth-child(8) img, .spot-radio:nth-of-type(8):checked ~ .spot-rail .spot-pick:nth-child(8) .spot-initial,
.spot-radio:nth-of-type(9):checked ~ .spot-rail .spot-pick:nth-child(9) img, .spot-radio:nth-of-type(9):checked ~ .spot-rail .spot-pick:nth-child(9) .spot-initial,
.spot-radio:nth-of-type(10):checked ~ .spot-rail .spot-pick:nth-child(10) img, .spot-radio:nth-of-type(10):checked ~ .spot-rail .spot-pick:nth-child(10) .spot-initial,
.spot-radio:nth-of-type(11):checked ~ .spot-rail .spot-pick:nth-child(11) img, .spot-radio:nth-of-type(11):checked ~ .spot-rail .spot-pick:nth-child(11) .spot-initial,
.spot-radio:nth-of-type(12):checked ~ .spot-rail .spot-pick:nth-child(12) img, .spot-radio:nth-of-type(12):checked ~ .spot-rail .spot-pick:nth-child(12) .spot-initial { filter: none; box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--dark-ui); }

.spot-radio:nth-of-type(1):checked ~ .spot-rail .spot-pick:nth-child(1) .spot-pick-name,
.spot-radio:nth-of-type(2):checked ~ .spot-rail .spot-pick:nth-child(2) .spot-pick-name,
.spot-radio:nth-of-type(3):checked ~ .spot-rail .spot-pick:nth-child(3) .spot-pick-name,
.spot-radio:nth-of-type(4):checked ~ .spot-rail .spot-pick:nth-child(4) .spot-pick-name,
.spot-radio:nth-of-type(5):checked ~ .spot-rail .spot-pick:nth-child(5) .spot-pick-name,
.spot-radio:nth-of-type(6):checked ~ .spot-rail .spot-pick:nth-child(6) .spot-pick-name,
.spot-radio:nth-of-type(7):checked ~ .spot-rail .spot-pick:nth-child(7) .spot-pick-name,
.spot-radio:nth-of-type(8):checked ~ .spot-rail .spot-pick:nth-child(8) .spot-pick-name,
.spot-radio:nth-of-type(9):checked ~ .spot-rail .spot-pick:nth-child(9) .spot-pick-name,
.spot-radio:nth-of-type(10):checked ~ .spot-rail .spot-pick:nth-child(10) .spot-pick-name,
.spot-radio:nth-of-type(11):checked ~ .spot-rail .spot-pick:nth-child(11) .spot-pick-name,
.spot-radio:nth-of-type(12):checked ~ .spot-rail .spot-pick:nth-child(12) .spot-pick-name { color: var(--text-dark); }

/* ══════════ M19: two-level search + profile grid ══════════ */
.finder { max-width: 1100px; margin-inline: auto; }
.finder-row {
  display: grid; gap: .6rem; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1.2fr) auto;
  background: var(--bg-card); border-radius: 22px; padding: .55rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.finder-field { position: relative; display: flex; align-items: center; }
.finder-field select, .finder-field input {
  width: 100%; border: none; background: var(--bg-sunken); border-radius: 17px;
  padding: .95rem 1.1rem; font-size: .95rem; font-weight: 600; outline-offset: -2px; color: var(--text-dark);
}
.finder-q input { padding-left: 2.6rem; font-weight: 500; }
.finder-q .search-ico { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--text-muted); }
.finder-field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),
                    linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.finder-clear { display: block; text-align: center; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
@media (max-width: 900px) { .finder-row { grid-template-columns: 1fr; } .finder-row .btn { width: 100%; } }

/* 3 across, 4 down at desktop */
.pgrid { display: grid; gap: clamp(1rem,1.8vw,1.5rem); grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 1rem;
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 1rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  border-left: 4px solid var(--c-pop, var(--accent-green));
  transition: transform .18s ease, box-shadow .18s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), var(--shadow-inner); }
.pcard-photo { position: relative; border-radius: var(--radius-sm); overflow: hidden;
               background: var(--c-soft, var(--bg-sunken)); aspect-ratio: 3/4; display: grid; place-items: center; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-initial { font-size: 2rem; font-weight: 800; color: var(--c-ink, var(--text-muted)); }
.pcard-verified { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center;
  gap: .25rem; background: rgba(255,255,255,.94); color: var(--c-ink, var(--dark-ui));
  font-size: .62rem; font-weight: 800; padding: .22rem; letter-spacing: .02em; }
.pcard-body { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.pcard-name { font-size: 1rem; }
.pcard-trade { font-size: .82rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-meta { display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; font-size: .84rem; }
.pcard-rating { font-weight: 800; color: var(--c-ink, var(--text-dark)); }
.pcard-rate { font-size: .84rem; color: var(--text-muted); }
.pcard .btn { margin-top: auto; align-self: flex-start; }
.more-row { display: flex; justify-content: center; margin-top: 2rem; }
.trade-group { border: none; padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.trade-group legend { padding: 0; margin-bottom: .6rem; }
.trade-group .check-grid { padding-left: 1.6rem; }

/* ══════════ M20: faces link out, and open on hover ══════════ */
.faces__link { position: absolute; inset: 0; display: grid; align-content: end;
               text-decoration: none; color: inherit; }
.faces__item { cursor: pointer; }

/* detail appears on hover and on keyboard focus, not only when active */
.faces__item:hover, .faces__item:focus-within { flex-basis: 300px; }
.faces__item:hover img, .faces__item:focus-within img { filter: none; }
.faces__item:hover::after, .faces__item:focus-within::after {
  background: linear-gradient(to top, rgba(8,18,24,.9) 0%, rgba(8,18,24,.3) 48%, transparent 72%);
}
.faces__item:hover .faces__caption, .faces__item:focus-within .faces__caption {
  opacity: 1; transform: none;
}
.faces__item:focus-within { outline: 3px solid var(--accent-yellow); outline-offset: -3px; }

.faces__rate, .faces__where { color: rgba(255,255,255,.86); font-size: .82rem; }
.faces__where { display: inline-flex; align-items: center; gap: .3rem; }
.faces__cta {
  margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem;
  color: var(--accent-yellow); font-weight: 800; font-size: .82rem;
}
/* the taper rules hide captions on far cards; hovering one must still win */
.faces__item:hover .faces__caption, .faces__item:focus-within .faces__caption { opacity: 1 !important; }

/* whole card clickable, without nesting a link inside a link */
.pcard { position: relative; }
.pcard-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.pcard-link:focus-visible { outline: 3px solid var(--dark-ui); outline-offset: 2px; }
.pcard-body, .pcard-photo { position: relative; z-index: 0; }
.pcard-cta { pointer-events: none; }
.pcard:hover .pcard-cta { background: var(--dark-ui); color: #fff; }
