/* ═════════════════════════════════════════════════════════
   Engagetal, shared stylesheet
   Edit tokens at the top to rebrand the whole site.
   ═════════════════════════════════════════════════════════ */

:root {
  --bg: #FAF7F0;
  --bg-deep: #F2ECDE;
  --bg-contrast: #112016;
  --ink: #0B1410;
  --ink-2: #33443A;
  --ink-3: #6B7A70;
  --rule: #E1D9C6;
  --accent: #34D97A;
  --accent-ink: #0B1410;
  --accent-2: #F26A3C;
  --accent-3: #CFE86B;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 0 rgba(11,20,16,0.04), 0 8px 24px -12px rgba(11,20,16,0.08);
  --shadow-2: 0 2px 0 rgba(11,20,16,0.06), 0 30px 60px -30px rgba(11,20,16,0.18);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --max-narrow: 780px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ── layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(64px, 10vw, 120px) 0; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ── type ── */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; font-variation-settings: "SOFT" 30, "WONK" 0; }
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
h4 { font-size: 20px; letter-spacing: -0.015em; }
p { margin: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.display-italic, em.fancy { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 500; color: var(--ink-2); }
.on-dark .display-italic, .on-dark em.fancy { color: var(--accent); }
.muted { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.55; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 500; font-size: 15px; letter-spacing: -0.005em; border: 1px solid transparent; transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bg-contrast); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #2bc870; }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-deep); }
.btn-ghost-dark { background: transparent; border-color: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.btn-ghost-dark:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }
.btn .arr { transition: transform 250ms ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color 250ms ease, background 250ms ease; }
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color 200ms ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.burger { display: none; background: transparent; border: 1px solid var(--rule); padding: 10px; border-radius: var(--radius-pill); color: var(--ink); }
.mob-menu { display: none; position: fixed; inset: 64px 0 0; background: var(--bg); z-index: 35; padding: 32px var(--gutter); }
.mob-menu.is-open { display: block; overflow-y: auto; overscroll-behavior: contain; }
.mob-menu a { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .nav-cta-plain { display: none; }
  .burger { display: inline-flex; }
}

/* ── logo ── */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

/* ── page hero (for inner pages) ── */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.page-hero .kicker { color: var(--ink-3); }
.page-hero h1 { margin-top: 18px; max-width: 16ch; }
.page-hero.wide h1 { max-width: 22ch; font-size: clamp(38px, 5vw, 62px); }
.page-hero .lede { margin-top: 24px; max-width: 52ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── section headers ── */
.sec-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { margin-top: 16px; }
.sec-head .lede { margin-top: 18px; }
.sec-head.centered { text-align: center; margin-inline: auto; }
.sec-head.centered .kicker { justify-content: center; }

/* ── pills / tags ── */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius-pill); font-size: 13.5px; color: var(--ink-2); background: color-mix(in srgb, var(--bg-deep) 40%, transparent); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pill .dot.warm { background: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.pill .dot.olive { background: var(--accent-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 22%, transparent); }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-deep); color: var(--ink-2); }
.chip.accent { background: var(--accent); color: var(--accent-ink); }

/* ── cards ── */
.card { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.card.surface { background: var(--bg); }
.card.dark { background: var(--bg-contrast); color: var(--bg); border-color: transparent; }
.card.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); max-width: 52ch; }
.card.dark p { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ── FAQ accordion (shared) ── */
.faq { max-width: 880px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 24px 0; background: transparent; border: none; text-align: left; color: var(--ink); font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); font-weight: 500; letter-spacing: -0.015em; }
.faq-q:hover { color: var(--ink-2); }
.faq-q .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-deep); display: grid; place-items: center; flex-shrink: 0; transition: transform 300ms ease, background 200ms ease; }
.faq-item[open] .faq-q .ic { transform: rotate(45deg); background: var(--accent); }
.faq-a { padding: 0 80px 26px 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ── prose (for policies, about, blog posts) ── */
.prose { max-width: 68ch; margin: 0 auto; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); color: var(--ink); margin-top: 1.6em; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1em; font-family: var(--font-display); font-size: 20px; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: 0.92em; padding: 2px 6px; background: var(--bg-deep); border-radius: 6px; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2em 0; }

/* ── contact tiles ── */
.contact-card { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); }
.contact-head { max-width: 56ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color 200ms ease, transform 200ms ease, background 200ms ease; }
.contact-tile:hover { border-color: var(--ink-2); transform: translateY(-2px); background: #fff; }
.contact-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-deep); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.contact-tile:hover .contact-ico { background: var(--accent); color: var(--accent-ink); }
.contact-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contact-val { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; }
.contact-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }

/* ── airtable embed ── */
.airtable-wrap { max-width: 720px; margin: 0 auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-1); }
.airtable-wrap iframe { width: 100%; height: 820px; border: none; display: block; background: transparent; }

/* ── footer ── */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--rule); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot h5 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: var(--ink-2); font-size: 14.5px; }
.foot a:hover { color: var(--ink); }
.foot .tag { color: var(--ink-2); margin-top: 14px; font-size: 14.5px; max-width: 32ch; line-height: 1.55; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; line-height: 1.6; }
.foot-bottom .fb-left { max-width: 50ch; }
.foot-bottom .fb-right { text-align: right; max-width: 50ch; }
@media (max-width: 640px) { .foot-bottom .fb-right { text-align: left; } }
.foot-bottom .fine { max-width: 60ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ═════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR  (.ab-)
   ═════════════════════════════════════════════════════════ */
.ab { background: var(--bg-contrast); color: var(--bg); font-size: 13.5px; position: relative; z-index: 50; }
.ab-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px var(--gutter); flex-wrap: wrap; text-align: center; }
.ab-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 500; }
.ab-txt { color: color-mix(in srgb, var(--bg) 82%, transparent); }
.ab-txt b { color: var(--bg); font-weight: 600; }
.ab-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ab-link:hover { border-bottom-color: var(--accent); }
@media (max-width: 640px) { .ab-row { font-size: 12.5px; gap: 9px; } }

/* nav additions */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-signin { font-size: 14.5px; color: var(--ink-2); padding: 8px 4px; }
.nav-signin:hover { color: var(--ink); }
@media (max-width: 980px) { .nav-links { gap: 20px; } .nav-links a { font-size: 13.8px; } }
.mob-menu .mob-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 22px 0 4px; border: none; }

/* ═════════════════════════════════════════════════════════
   MARKETPLACE  (.mk-)
   ═════════════════════════════════════════════════════════ */
.mk-shell { display: grid; grid-template-columns: 272px 1fr; gap: 32px; align-items: start; }
/* grid and flex children default to min-width:auto and refuse to shrink below
   their content, which overflows narrow viewports. Reset it explicitly. */
.mk-shell > *, .mk-grid, .mk-card, .mk-count, .mk-bar { min-width: 0; }
.mk-proj .mk-phead > span { min-width: 0; }
@media (max-width: 520px) {
  .mk-proj .mk-phead { flex-direction: column; gap: 12px; }
  .mk-budget { text-align: left; }
  .mk-budget .v { white-space: normal; }
}
@media (max-width: 940px) { .mk-shell { grid-template-columns: 1fr; gap: 20px; } }

/* search bar */
.mk-search { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 6px 6px 6px 18px; box-shadow: var(--shadow-1); }
.mk-search svg { color: var(--ink-3); flex-shrink: 0; }
.mk-search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); padding: 10px 0; outline: none; }
.mk-search input::placeholder { color: var(--ink-3); }
.mk-search .btn { padding: 11px 20px; }

/* filter rail */
.mk-rail { position: sticky; top: 84px; background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; }
@media (max-width: 940px) {
  .mk-rail { position: static; }
  .mk-rail[data-collapsed="1"] .mk-fgroup { display: none; }
  .mk-rail[data-collapsed="1"] .mk-rail-head { padding-bottom: 0; border-bottom: none; }
  .mk-rail[data-collapsed="1"] { padding: 16px 22px; }
}
.mk-rail-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.mk-rail-head h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.mk-clear { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); background: none; border: none; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; }
.mk-clear:hover { color: var(--ink); }
.mk-fgroup { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mk-fgroup:last-child { border-bottom: none; padding-bottom: 4px; }
.mk-flabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: block; }
.mk-opts { display: flex; flex-direction: column; gap: 9px; }
.mk-opt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; line-height: 1.35; }
.mk-opt:hover { color: var(--ink); }
.mk-opt input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--rule); border-radius: 5px; background: var(--bg); flex-shrink: 0; display: grid; place-items: center; transition: background 150ms ease, border-color 150ms ease; }
.mk-opt input:checked { background: var(--accent); border-color: var(--accent); }
.mk-opt input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.mk-opt input[type="radio"] { border-radius: 50%; }
.mk-opt input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border: none; border-radius: 50%; background: var(--accent-ink); transform: none; }
.mk-opt input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mk-opt .n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.mk-range { width: 100%; accent-color: var(--accent); margin-top: 4px; }
.mk-range-val { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 8px; display: block; }

/* results header */
.mk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mk-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mk-count b { color: var(--ink); font-weight: 600; }
.mk-sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.mk-sort select { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 8px 32px 8px 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7A70' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.mk-filter-toggle { display: none; }
@media (max-width: 940px) { .mk-filter-toggle { display: inline-flex; } }

/* active chips */
.mk-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.mk-chips:empty { display: none; }
.mk-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 8px 5px 12px; border-radius: var(--radius-pill); background: var(--bg-contrast); color: var(--bg); border: none; }
.mk-chip span { opacity: 0.7; font-size: 14px; line-height: 1; }
.mk-chip:hover span { opacity: 1; }

/* talent cards */
.mk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 1180px) and (min-width: 941px) { .mk-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .mk-grid { grid-template-columns: 1fr; } }
.mk-card { position: relative; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.mk-card:hover { border-color: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.mk-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mk-card-top { display: flex; gap: 14px; align-items: flex-start; }
.mk-av { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--bg); background: var(--bg-contrast); position: relative; }
.mk-av[data-a="1"] { background: #1D5C3A; } .mk-av[data-a="2"] { background: #2E4A38; }
.mk-av[data-a="3"] { background: #3C4A2C; } .mk-av[data-a="4"] { background: #5A3B2A; }
.mk-av[data-a="5"] { background: #1F3A4A; } .mk-av[data-a="0"] { background: #112016; }
.mk-av .vf { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 2px solid var(--bg); }
.mk-id { min-width: 0; flex: 1; display: block; }
.mk-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.018em; line-height: 1.15; display: flex; align-items: center; gap: 7px; }
.mk-role { display: block; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.mk-loc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-loc .sep { opacity: 0.45; }
.mk-score { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.mk-score .v { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.mk-score .l { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.mk-meter { height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; margin-top: 7px; width: 62px; }
.mk-meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.mk-blurb { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.mk-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 6px; background: var(--bg-deep); color: var(--ink-2); border: 1px solid var(--rule); }
.mk-tag.hi { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); margin-top: auto; flex-wrap: wrap; }
.mk-rate { display: inline-block; font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.mk-rate .u { font-family: var(--font-sans); font-size: 13px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.mk-avail { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.mk-avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.mk-avail.soon::before { background: var(--accent-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 22%, transparent); }
.mk-avail.busy::before { background: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 20%, transparent); }
.mk-view { font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.mk-view::after { content: "→"; color: var(--accent); transition: transform 200ms ease; }
.mk-card:hover .mk-view::after { transform: translateX(4px); }

/* project cards */
.mk-proj { display: block; }
.mk-proj .mk-phead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mk-proj h3 { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.mk-co { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.mk-co .lg { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-deep); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }
.mk-budget { text-align: right; flex-shrink: 0; display: block; }
.mk-budget .v { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.mk-budget .l { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.mk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 480px) { .mk-facts { grid-template-columns: 1fr 1fr; } }
.mk-fact { display: block; }
.mk-fact .k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mk-fact .v { display: block; font-size: 14px; color: var(--ink); margin-top: 4px; font-weight: 500; }
.mk-new { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--accent-3); color: var(--ink); padding: 3px 8px; border-radius: 5px; }
.mk-urgent { background: var(--accent-2); color: #fff; }

/* empty state */
.mk-empty { grid-column: 1 / -1; text-align: center; padding: 72px 24px; border: 1px dashed var(--rule); border-radius: var(--radius-lg); background: var(--bg-deep); }
.mk-empty h3 { font-family: var(--font-display); font-weight: 500; }
.mk-empty p { color: var(--ink-2); margin-top: 10px; max-width: 44ch; margin-inline: auto; font-size: 15px; }
.mk-empty .btn { margin-top: 20px; }

/* load more */
.mk-more { display: flex; justify-content: center; margin-top: 28px; }

/* ═════════════════════════════════════════════════════════
   GATED / LOCK  (.gt-)
   ═════════════════════════════════════════════════════════ */
.gt-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg-contrast) 62%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; }
.gt-backdrop.is-open { display: flex; }
.gt-modal { background: var(--bg); border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-2); position: relative; animation: gtin 260ms cubic-bezier(.2,.8,.3,1); max-height: 90vh; overflow-y: auto; }
@keyframes gtin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.gt-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg); display: grid; place-items: center; color: var(--ink-2); }
.gt-close:hover { background: var(--bg-deep); color: var(--ink); }
.gt-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.gt-modal h3 { font-family: var(--font-display); font-weight: 500; margin-top: 18px; font-size: 26px; }
.gt-modal p { color: var(--ink-2); margin-top: 12px; font-size: 15px; line-height: 1.6; }
.gt-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.gt-actions .btn { justify-content: center; }
.gt-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.6; }
.gt-lock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.mk-blur { filter: blur(5px); user-select: none; pointer-events: none; opacity: 0.75; }

/* ═════════════════════════════════════════════════════════
   AUTH  (.au-)
   ═════════════════════════════════════════════════════════ */
.au-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .au-wrap { grid-template-columns: 1fr; min-height: 0; } .au-side { display: none; } }
.au-form-col { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.au-box { width: 100%; max-width: 400px; }
.au-box h1 { font-size: clamp(32px, 3.6vw, 42px); line-height: 1.05; margin-top: 16px; }
.au-box .lede { margin-top: 14px; font-size: 16px; }
.au-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-pill); margin-top: 28px; }
.au-tab { flex: 1; padding: 10px 8px; border: none; background: transparent; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--ink-3); transition: background 180ms ease, color 180ms ease; }
.au-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-1); }
.au-side { background: var(--bg-contrast); color: var(--bg); padding: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.au-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 58%), radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 55%); }
.au-side > * { position: relative; }
.au-side h2 { color: var(--bg); max-width: 15ch; }
.au-side .sub { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 18px; max-width: 40ch; font-size: 16px; line-height: 1.6; }
.au-term { margin-top: 40px; background: rgba(0,0,0,0.28); border: 1px solid rgba(250,247,240,0.14); border-radius: var(--radius); padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: color-mix(in srgb, var(--bg) 76%, transparent); }
.au-term .ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-term .ok { color: var(--accent); }
.au-term .dim { color: rgba(250,247,240,0.4); }
.au-term .cur { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.au-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(250,247,240,0.14); }
.au-stats .n { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.au-stats .t { font-size: 12.5px; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-top: 8px; line-height: 1.45; }

/* success / launching-soon panel */
.au-success { text-align: center; }
.au-badge { width: 62px; height: 62px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto; }
.au-success h1 { margin-top: 26px; }
.au-success .lede { margin-inline: auto; max-width: 40ch; }
.au-meta { margin-top: 30px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-deep); padding: 20px; text-align: left; display: grid; gap: 12px; }
.au-meta .row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; align-items: baseline; }
.au-meta .k { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.au-meta .v { color: var(--ink); font-weight: 500; text-align: right; }

/* ═════════════════════════════════════════════════════════
   FORMS  (.fm-)
   ═════════════════════════════════════════════════════════ */
.fm { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-1); }
.fm-note { background: var(--bg-deep); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; }
.fm-note strong { color: var(--ink); font-weight: 600; }
.fm-note p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.fm-note p + p { margin-top: 8px; }
.fm-sec { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--rule); }
.fm-sec:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.fm-sec-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.fm-sec-h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.fm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .fm-row { grid-template-columns: 1fr; } }
.fm-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.fm-field > label { font-size: 13.5px; font-weight: 500; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.fm-field .req { color: var(--accent-2); font-size: 15px; line-height: 1; }
.fm-field .hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.fm-field input[type="text"], .fm-field input[type="email"], .fm-field input[type="url"],
.fm-field input[type="tel"], .fm-field input[type="number"], .fm-field input[type="password"],
.fm-field input[type="search"], .fm-field input[type="date"], .fm-field select, .fm-field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-deep);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; width: 100%;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.fm-field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.fm-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7A70' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.fm-field :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus { outline: none; border-color: var(--ink-2); background: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.fm-field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 6%, var(--bg)); }
.fm-err { font-size: 12.5px; color: var(--accent-2); font-weight: 500; display: none; }
.fm-field.is-bad .fm-err { display: block; }

/* checkbox / radio pills */
.fm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pill { position: relative; }
.fm-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-pill span { display: inline-block; padding: 9px 15px; border: 1px solid var(--rule); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink-2); background: var(--bg-deep); cursor: pointer; transition: all 160ms ease; user-select: none; }
.fm-pill span:hover { border-color: var(--ink-3); color: var(--ink); }
.fm-pill input:checked + span { background: var(--bg-contrast); border-color: var(--bg-contrast); color: var(--bg); }
.fm-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* consent */
.fm-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.fm-consent input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--rule); border-radius: 5px; background: var(--bg-deep); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.fm-consent input:checked { background: var(--accent); border-color: var(--accent); }
.fm-consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.fm-consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fm-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* file upload */
.fm-drop { border: 1.5px dashed var(--rule); border-radius: var(--radius); background: var(--bg-deep); padding: 28px 22px; text-align: center; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; display: block; }
.fm-drop:hover, .fm-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg-deep)); }
.fm-drop input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-drop .di { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--rule); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-2); }
.fm-drop .dt { display: block; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.fm-drop .dt u { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fm-drop .ds { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 8px; }
.fm-file { display: none; align-items: center; gap: 12px; padding: 13px 15px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); margin-top: 10px; }
.fm-file.is-set { display: flex; }
.fm-file .fi { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.fm-file .fn { display: block; flex: 1; min-width: 0; font-size: 14px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-file .fs { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.fm-file .fx { border: none; background: none; color: var(--ink-3); padding: 4px; border-radius: 6px; flex-shrink: 0; }
.fm-file .fx:hover { color: var(--accent-2); background: var(--bg-deep); }

/* submit */
.fm-submit { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-submit .btn { padding: 15px 30px; }
.fm-submit .fine { font-size: 12.5px; color: var(--ink-3); max-width: 34ch; line-height: 1.5; }
.fm-alert { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-top: 18px; line-height: 1.55; }
.fm-alert.is-on { display: block; }
.fm-alert.bad { background: color-mix(in srgb, var(--accent-2) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); color: #8A2E10; }
.fm-alert.good { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: #0B4A26; }

/* timeline beside the form */
.fm-aside { display: flex; flex-direction: column; gap: 18px; }
.fm-tl { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; }
.fm-tl h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.fm-steps { margin-top: 20px; display: grid; gap: 0; }
.fm-step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.fm-step:last-child { padding-bottom: 0; }
.fm-step::before { content: ""; position: absolute; left: 12.5px; top: 26px; bottom: 0; width: 1px; background: var(--rule); }
.fm-step:last-child::before { display: none; }
.fm-step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); font-weight: 500; z-index: 1; }
.fm-step.on .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fm-step > span:last-child { display: block; min-width: 0; }
.fm-step .sh { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fm-step .sd { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.fm-step .sw { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

.fm-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 1020px) { .fm-layout { grid-template-columns: 1fr; } }
.fm-layout .fm-aside { position: sticky; top: 84px; }
@media (max-width: 1020px) { .fm-layout .fm-aside { position: static; } }

/* ═════════════════════════════════════════════════════════
   FELLOWSHIP SPOTLIGHT  (.fx-)
   ═════════════════════════════════════════════════════════ */
.fx-band { background: var(--bg-contrast); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px); position: relative; overflow: hidden; }
.fx-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), radial-gradient(circle at 6% 92%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 50%); pointer-events: none; }
.fx-band > * { position: relative; }
.fx-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-band .kicker { color: var(--accent); }
.fx-band h2 { color: var(--bg); margin-top: 18px; }
.fx-band h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); font-weight: 500; }
.fx-band .sub { color: color-mix(in srgb, var(--bg) 74%, transparent); margin-top: 18px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; max-width: 46ch; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; align-items: center; }
.fx-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.fx-card { background: rgba(0,0,0,0.26); border: 1px solid rgba(250,247,240,0.15); border-radius: var(--radius); padding: 26px; }
.fx-card .ch { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fx-rows { margin-top: 18px; display: grid; gap: 0; }
.fx-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed rgba(250,247,240,0.16); font-size: 14.5px; }
.fx-row:last-child { border-bottom: none; padding-bottom: 0; }
.fx-row .k { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.fx-row .v { font-family: var(--font-mono); color: var(--bg); font-weight: 500; text-align: right; }
.fx-row .v.hl { color: var(--accent-ink); background: var(--accent); padding: 2px 9px; border-radius: 6px; }
.fx-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(250,247,240,0.15); border: 1px solid rgba(250,247,240,0.15); border-radius: var(--radius); overflow: hidden; margin-top: 34px; }
@media (max-width: 760px) { .fx-strip { grid-template-columns: 1fr 1fr; } }
.fx-stat { background: var(--bg-contrast); padding: 20px 18px; }
.fx-stat .n { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.fx-stat .t { font-size: 12.5px; color: color-mix(in srgb, var(--bg) 62%, transparent); margin-top: 9px; line-height: 1.45; }

/* cohort ticker */
.fx-cohort { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: var(--radius-pill); background: rgba(250,247,240,0.09); border: 1px solid rgba(250,247,240,0.18); font-size: 13.5px; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.fx-cohort .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); animation: blink 1.8s ease-in-out infinite; }
.fx-cohort b { color: var(--bg); font-weight: 600; }
.fx-bar { height: 6px; border-radius: 6px; background: rgba(250,247,240,0.16); overflow: hidden; margin-top: 12px; }
.fx-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

/* ═════════════════════════════════════════════════════════
   RESEARCH  (.rs-)
   ═════════════════════════════════════════════════════════ */
.rs-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.rs-hero h1 { margin-top: 18px; max-width: 18ch; }
.rs-hero .lede { margin-top: 22px; max-width: 56ch; }

/* topic filter */
.rs-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.rs-topic { padding: 8px 15px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: transparent; font-size: 13.5px; color: var(--ink-2); transition: all 160ms ease; }
.rs-topic:hover { border-color: var(--ink-3); color: var(--ink); }
.rs-topic[aria-pressed="true"] { background: var(--bg-contrast); border-color: var(--bg-contrast); color: var(--bg); }

/* featured */
.rs-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: center; margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 900px) { .rs-feature { grid-template-columns: 1fr; } }
.rs-feature .rs-cover { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); background: var(--bg-deep); }
.rs-feature .rs-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.8,.3,1); }
.rs-feature:hover .rs-cover img { transform: scale(1.03); }
.rs-feature h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 16px; }
.rs-feature p { color: var(--ink-2); margin-top: 16px; font-size: 16px; line-height: 1.65; max-width: 50ch; }

/* index grid */
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 60px); }
@media (max-width: 1000px) { .rs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rs-grid { grid-template-columns: 1fr; } }
.rs-card { display: flex; flex-direction: column; color: inherit; }
.rs-card .rs-cover { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--bg-deep); }
.rs-card .rs-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.8,.3,1); }
.rs-card:hover .rs-cover img { transform: scale(1.045); }
.rs-meta { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; flex-wrap: wrap; }
.rs-meta .tp { color: var(--ink); background: var(--bg-deep); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 5px; }
.rs-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 12px; }
.rs-card:hover h3 { color: var(--ink-2); }
.rs-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-top: 10px; }
.rs-card .rd { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.rs-card .rd::after { content: "→"; color: var(--accent); transition: transform 200ms ease; }
.rs-card:hover .rd::after { transform: translateX(4px); }
.rs-card.is-hidden { display: none; }

/* article */
.rs-art-hero { padding: clamp(32px, 4vw, 52px) 0 0; }
.rs-crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-crumb a:hover { color: var(--ink); }
.rs-art-hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; margin-top: 20px; max-width: 20ch; }
.rs-dek { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; margin-top: 22px; max-width: 58ch; }
.rs-byline { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rs-author { display: flex; align-items: center; gap: 11px; }
.rs-author .av { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-contrast); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 500; flex-shrink: 0; }
.rs-author > span:last-child { display: block; min-width: 0; }
.rs-author .nm { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.rs-author .rl { display: block; font-size: 12.5px; color: var(--ink-3); }
.rs-bmeta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.rs-banner { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 16/7; background: var(--bg-deep); }
.rs-banner img { width: 100%; height: 100%; object-fit: cover; }
.rs-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 10px; line-height: 1.6; }

/* key findings */
.rs-key { background: var(--bg-contrast); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 44px); margin: clamp(32px, 4vw, 48px) 0; }
.rs-key .kicker { color: var(--accent); }
.rs-key h2 { color: var(--bg); font-size: clamp(24px, 2.6vw, 32px); margin-top: 14px; }
.rs-key ol { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; counter-reset: kf; }
.rs-key li { counter-increment: kf; position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid rgba(250,247,240,0.14); font-size: 15.5px; line-height: 1.62; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.rs-key li:last-child { border-bottom: none; padding-bottom: 0; }
.rs-key li::before { content: counter(kf, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.08em; }
.rs-key li strong { color: var(--bg); font-weight: 600; }

/* stat strip */
.rs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin: clamp(28px, 3.5vw, 42px) 0; }
@media (max-width: 760px) { .rs-stats { grid-template-columns: 1fr 1fr; } }
.rs-stat { background: var(--bg); padding: 24px 20px; }
.rs-stat .n { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.rs-stat .n em { font-style: normal; color: var(--accent-2); }
.rs-stat .t { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }

/* figures + charts */
.rs-fig { margin: clamp(32px, 4vw, 48px) 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
.rs-fig-head { padding: 20px 24px 0; }
.rs-fig-n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.rs-fig-head h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.015em; margin-top: 7px; line-height: 1.25; }
.rs-fig-head .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }
.rs-chart { padding: 18px 24px 8px; }
@media (max-width: 720px) {
  .rs-chart { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 18px 16px 8px; }
  .rs-chart svg { min-width: 640px; }
  .rs-fig-head { padding: 18px 16px 0; }
  .rs-legend, .rs-fig-foot { padding-left: 16px; padding-right: 16px; }
}
.rs-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rs-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 24px 18px; }
.rs-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.rs-legend i { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.rs-fig-foot { padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--bg-deep); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); line-height: 1.65; }

/* chart primitives */
.c-grid { stroke: var(--rule); stroke-width: 1; }
.c-axis { stroke: var(--ink-3); stroke-width: 1.5; }
.c-lbl { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); letter-spacing: 0.04em; }
.c-val { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); font-weight: 500; }
.c-bar { transition: opacity 180ms ease; }
.c-bar:hover { opacity: 0.78; }
.c-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.c-dot { stroke: var(--bg); stroke-width: 2; }

/* pull-quote + table */
.rs-pull { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin: clamp(28px, 3.5vw, 40px) 0; }
.rs-pull p { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 27px); font-weight: 500; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.rs-pull .attr { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.rs-table-wrap { overflow-x: auto; margin: clamp(26px, 3vw, 38px) 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.rs-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.rs-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 13px 16px; background: var(--bg-deep); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rs-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.rs-table tr:last-child td { border-bottom: none; }
.rs-table td:first-child { color: var(--ink); font-weight: 500; }
.rs-table td.num { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--ink); }
.rs-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* method + citation */
.rs-method { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); margin: clamp(32px, 4vw, 48px) 0; }
.rs-method h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; }
.rs-method p, .rs-method li { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.rs-method p { margin-top: 12px; }
.rs-method ul { margin-top: 12px; padding-left: 1.15em; }
.rs-method li + li { margin-top: 6px; }
.rs-cite { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.8; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; margin-top: 20px; word-break: break-word; }
.rs-cite b { color: var(--ink-2); font-weight: 500; }

/* next / related */
.rs-next { border-top: 1px solid var(--rule); padding-top: clamp(36px, 5vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.rs-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 860px) { .rs-next-grid { grid-template-columns: 1fr; } }

/* research CTA */
.rs-cta { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 820px) { .rs-cta { grid-template-columns: 1fr; } }
.rs-cta h3 { font-family: var(--font-display); font-weight: 500; }
.rs-cta p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; font-size: 15px; line-height: 1.6; }

/* article-body prose tuned for research */
.rs-body { max-width: 100%; }
.rs-body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; color: var(--ink); margin-top: 2em; line-height: 1.15; }
.rs-body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2vw, 23px); color: var(--ink); margin-top: 1.7em; }
.rs-body p, .rs-body li { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.rs-body > * + * { margin-top: 1.05em; }
.rs-body ul, .rs-body ol { padding-left: 1.3em; }
.rs-body li + li { margin-top: 0.5em; }
.rs-body strong { color: var(--ink); font-weight: 600; }
.rs-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 2px; }

/* ═════════════════════════════════════════════════════════
   SHARED SMALL BITS
   ═════════════════════════════════════════════════════════ */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%); background: var(--bg-contrast); color: var(--bg); padding: 13px 22px; border-radius: var(--radius-pill); font-size: 14px; box-shadow: var(--shadow-2); z-index: 95; transition: transform 380ms cubic-bezier(.2,.8,.3,1); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast .tk { color: var(--accent); flex-shrink: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bg-contrast); color: var(--bg); padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.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; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


/* ═════════════════════════════════════════════════════════
   NARROW-VIEWPORT GUARDS (<= 360px)
   Long button labels and pill rows were pushing the document
   wider than the viewport on small phones.
   ═════════════════════════════════════════════════════════ */
.btn { max-width: 100%; }
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; line-height: 1.35; }
  .page-hero-actions, .fx-actions, .gt-actions { width: 100%; }
  .page-hero-actions > .btn, .fx-actions > .btn { flex: 1 1 100%; justify-content: center; }
  .rs-cta { grid-template-columns: 1fr; }
  .rs-cta .btn { width: 100%; justify-content: center; }
}

/* split sign-in in the nav */
.nav-signin-group { display: inline-flex; align-items: center; gap: 6px; }
.nav-signin-sep { color: var(--ink-3); opacity: 0.5; font-size: 13px; }
@media (max-width: 1120px) { .nav-signin-group { display: none; } }

/* ═════════════════════════════════════════════════════════
   NAV SIGN-IN MENU  (.nav-auth)
   ═════════════════════════════════════════════════════════ */
.nav-auth { position: relative; }
button.nav-signin { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink-2); padding: 9px 12px; border-radius: var(--radius-pill); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
button.nav-signin:hover { color: var(--ink); background: var(--bg-deep); }
button.nav-signin svg { transition: transform 200ms ease; opacity: 0.6; }
button.nav-signin[aria-expanded="true"] { color: var(--ink); background: var(--bg-deep); }
button.nav-signin[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-auth-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 268px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; z-index: 60; animation: navin 180ms cubic-bezier(.2,.8,.3,1); }
@keyframes navin { from { opacity: 0; transform: translateY(-6px); } }
.nav-auth-menu a { display: block; padding: 11px 13px; border-radius: 9px; color: var(--ink); }
.nav-auth-menu a:hover { background: var(--bg-deep); }
.nav-auth-menu a b { display: block; font-size: 14px; font-weight: 600; }
.nav-auth-menu a span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
@media (max-width: 1120px) { .nav-auth, a.nav-signin[data-auth-console] { display: none; } }

/* ═════════════════════════════════════════════════════════
   FORM FIELD ORDER
   Help text sits under the control so that inputs in a row
   line up regardless of how much help each field carries.
   ═════════════════════════════════════════════════════════ */
.fm-field { display: flex; flex-direction: column; gap: 7px; }
.fm-field > label { order: 1; }
.fm-field > :is(input, select, textarea), .fm-field > .fm-drop, .fm-field > .fm-pills, .fm-field > .fm-file { order: 2; }
.fm-field > .hint { order: 3; margin-top: -1px; }
.fm-field > .fm-err { order: 4; }
.fm-field > label.fm-consent { order: 2; }
.fm-row { align-items: start; }
.fm-field > label { min-height: 20px; display: flex; align-items: flex-start; }

/* form guards on small screens */
.fm-layout > *, .fm, .fm-row > *, .fm-field, .fm-pills { min-width: 0; }
.fm-field :is(input, select, textarea) { max-width: 100%; }
@media (max-width: 400px) {
  .fm { padding: 20px 16px; }
  .fm-note { padding: 14px 15px; }
  .fm-submit .btn { width: 100%; justify-content: center; }
}

/* hidden must win over component display rules */
[hidden] { display: none !important; }
.mob-menu [data-auth-menu] { display: flex; flex-direction: column; }

/* ===== Engagetal Apps (ap-) ===== */
.ap-band{background:var(--bg-contrast);color:var(--bg);border-radius:var(--radius-lg);padding:clamp(28px,5vw,56px);display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(24px,4vw,56px);align-items:center;overflow:hidden;position:relative}
.ap-band .sub{color:color-mix(in srgb,var(--bg) 72%,transparent);max-width:52ch;margin-top:14px}
.ap-band h2 em,.ap-hero h1 em{font-style:italic;color:var(--accent);font-variation-settings:"SOFT" 100,"WONK" 1;font-weight:500}
.ap-band .kicker{color:rgba(250,247,240,.6)}
.ap-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;align-items:center}
.ap-meta{font-family:var(--font-mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin-top:16px}
.ap-band .ap-meta{color:color-mix(in srgb,var(--bg) 55%,transparent)}
.ap-icon{display:block;width:100%;max-width:240px;height:auto;margin-inline:auto;filter:drop-shadow(0 24px 40px rgba(0,0,0,.35))}
.ap-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(28px,4vw,56px);align-items:center;padding-top:clamp(24px,3vw,44px)}
.ap-hero h1{font-size:clamp(36px,4.8vw,62px);line-height:1.04;max-width:13ch;margin-top:14px}
.ap-hero .lede{margin-top:18px;max-width:48ch}
.ap-id{display:flex;align-items:center;gap:14px;margin-bottom:6px}.ap-id img{width:56px;height:56px}
.ap-kbd{background:var(--bg-deep);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:clamp(18px,3vw,28px);box-shadow:var(--shadow-1);user-select:none;-webkit-user-select:none}
.ap-kbd-top{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);margin-bottom:14px}
.ap-row{display:flex;gap:6px;justify-content:center;margin-bottom:6px}
.ap-key{flex:1 1 0;max-width:44px;aspect-ratio:1;display:grid;place-items:center;border-radius:8px;background:#fff;border:1px solid var(--rule);font-family:var(--font-mono);font-size:11px;color:var(--ink-3);transition:background .25s,color .25s,border-color .25s,box-shadow .25s;cursor:crosshair}
.ap-key.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}
.ap-key.space{flex:0 1 55%;max-width:none;aspect-ratio:auto;height:36px}
.ap-kbd-foot{margin-top:12px;font-size:12.5px;color:var(--ink-3);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ap-kbd-foot b{color:var(--ink)}
.ap-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ap-card{background:var(--bg-deep);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:28px;transition:transform .3s}
.ap-card:hover{transform:translateY(-3px)}
.ap-card h3{margin-bottom:10px}.ap-card p{color:var(--ink-2)}
.ap-card .n{font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;color:var(--ink-3);display:block;margin-bottom:10px}
.ap-trust{display:grid;grid-template-columns:repeat(2,1fr);gap:0 36px;margin-top:8px}
.ap-trust div{padding:18px 0;border-top:1px solid var(--rule)}.ap-trust b{display:block;margin-bottom:4px}.ap-trust span{color:var(--ink-2);font-size:15px}
.ap-two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:start}
.ap-steps{counter-reset:s;list-style:none;padding:0;margin:0}
.ap-steps li{counter-increment:s;position:relative;padding:0 0 22px 52px;color:var(--ink-2)}
.ap-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;background:var(--bg-contrast);color:var(--accent);display:grid;place-items:center;font-family:var(--font-mono);font-size:13px}
.ap-steps li b{color:var(--ink);display:block;margin-bottom:2px}
.ap-code{font-family:var(--font-mono);font-size:12.5px;background:var(--bg-contrast);color:var(--accent-3);padding:12px 14px;border-radius:var(--radius-sm);overflow-x:auto;white-space:nowrap;margin-top:8px}
.ap-note{background:color-mix(in srgb,var(--accent-3) 30%,transparent);border:1px solid var(--rule);border-radius:var(--radius);padding:16px 18px;font-size:14.5px;color:var(--ink-2)}
.ap-app{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;background:var(--bg-deep);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:28px}
.ap-app img{width:96px;height:96px}.ap-app h3{margin:0 0 6px}.ap-app p{color:var(--ink-2);max-width:60ch}
.ap-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ap-tags span{font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:5px 10px;border:1px solid var(--rule);border-radius:var(--radius-pill);color:var(--ink-3)}
@media(max-width:900px){.ap-band,.ap-hero,.ap-two{grid-template-columns:1fr}.ap-grid3{grid-template-columns:1fr}.ap-trust{grid-template-columns:1fr}.ap-app{grid-template-columns:1fr;text-align:left}.ap-icon{max-width:160px;margin:0}}

/* Install steps and download counter */
.ap-lead{color:var(--ink-2);margin:-6px 0 24px;max-width:56ch}
.ap-steps li .k{font-weight:600;color:var(--ink);background:var(--bg-deep);border:1px solid var(--rule);border-radius:6px;padding:0 6px;white-space:nowrap}
.ap-card .k{font-family:var(--font-mono);font-size:.9em}

/* Install popup */
.ig{border:1px solid var(--rule);border-radius:var(--radius-lg);background:var(--bg);color:var(--ink);padding:0;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.ig::backdrop{background:rgba(17,32,22,.6)}
.ig-in{position:relative;padding:clamp(22px,4vw,34px)}
.ig h2{font-size:clamp(24px,3.2vw,32px);line-height:1.1;margin:12px 0 8px;padding-right:32px}
.ig-lead{color:var(--ink-2);margin:0 0 22px}
.ig .ap-steps li{padding-bottom:16px}
.ig-x{position:absolute;top:14px;right:14px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--rule);background:var(--bg-deep);color:var(--ink);cursor:pointer}
.ig-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:6px}
.ig-foot a{color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;font-size:14px}

/* Utility apps visibility on the landing page */
.ab-row-apps{border-top:1px solid color-mix(in srgb,var(--bg) 14%,transparent)}
.nav-links a.nav-apps{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:500}
.nav-new{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;background:var(--accent);color:var(--accent-ink);padding:2px 6px;border-radius:var(--radius-pill)}
.hero-app{display:inline-flex;align-items:center;gap:12px;margin-top:22px;padding:8px 16px 8px 8px;max-width:100%;border:1px solid var(--rule);border-radius:var(--radius-pill);background:var(--bg-deep);font-size:14px;color:var(--ink-2);line-height:1.3;transition:border-color .2s}
.hero-app:hover{border-color:var(--accent)}
.hero-app img{width:36px;height:36px;border-radius:9px;flex:none}
.hero-app b{color:var(--ink);font-weight:600}
.hero-app svg{flex:none;color:var(--ink)}
.ap-band .ap-tags{margin-top:20px}
.ap-band .ap-tags span{border-color:rgba(250,247,240,.28);color:var(--bg)}
.ap-feat{margin-top:24px;padding:20px 22px;border:1px solid rgba(250,247,240,.16);border-radius:var(--radius);background:rgba(250,247,240,.05)}
.ap-feat h3{color:var(--bg);margin-bottom:6px}
.ap-feat p{color:color-mix(in srgb,var(--bg) 78%,transparent)}
.ap-feat .ap-actions{margin-top:16px}
.ap-more{margin-top:18px;font-size:14px;color:color-mix(in srgb,var(--bg) 65%,transparent)}
.ap-more a{color:var(--bg);text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){
  .ab-row-apps{padding-top:7px;padding-bottom:8px;gap:2px 10px;font-size:13px}
  .ab-row-apps .ab-tag{display:none}
}
