:root {
  /* ── ink palette ─────────────────────────────────────── */
  --ink:        #0a0a0a;
  --elev:       #0f0f10;
  --soft:       #131316;
  --line:       #1f1f23;
  --line-soft:  rgba(255,255,255,0.06);
  --muted:      #8a8a93;
  --dim:        #5e5e66;
  --fg:         #e5e5e5;

  /* ── accents ─────────────────────────────────────────── */
  --accent:     #5e6ad2;
  --accent-2:   #7c87e8;
  --accent-soft: rgba(94,106,210,0.18);
  --good:       #4cb782;
  --warn:       #f2c94c;

  /* ── radii ───────────────────────────────────────────── */
  --r:        4px;
  --r-pill:   999px;
}

/* ── reset + base ───────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--ink);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--fg); }

/* ── Alpine x-cloak — hide pre-init content ─────────────── */
[x-cloak] { display: none !important; }

/* ── loading + error overlay states ────────────────────── */
.status-overlay {
  position: fixed;
  inset: 52px 0 0;             /* sit under the topbar */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
  background: var(--ink);
}
.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-align: center;
  max-width: 480px;
}
.status-card--error {
  border-color: rgba(242, 201, 76, 0.4);
  background: linear-gradient(180deg, var(--elev), rgba(242, 201, 76, 0.04));
}
.status-title {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}
.status-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.status-hint code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg);
}
.status-icon {
  font-size: 28px;
  color: var(--warn);
  line-height: 1;
}
.status-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-retry {
  margin-top: 14px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background 140ms ease, transform 100ms ease;
}
.status-retry:hover {
  background: var(--accent);
  color: #fff;
}
.status-retry:active { transform: translateY(1px); }

/* ── shell ─────────────────────────────────────────────── */
.shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
  padding: 0 24px;
}

/* ── brand mark ────────────────────────────────────────── */
.brand-mark {
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  width: 22px; height: 22px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--accent);
  border-radius: var(--r);
}
.brand-mark--sm { width: 18px; height: 18px; font-size: 10px; }

/* ── topbar ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13px;
}
.brand-slash { color: var(--dim); }

/* ── command bar ───────────────────────────────────────── */
.cmd {
  display: flex;
  align-items: center;
  cursor: text;
  flex: 1;
  height: 32px;
  padding: 0 10px 0 12px;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--elev);
  border-radius: var(--r);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.cmd:hover { border-color: #2a2a30; }
.cmd.open {
  border-color: var(--accent);
  background: var(--elev);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmd .ic { color: var(--dim); flex-shrink: 0; }
.cmd input {
  flex: 1;
  min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--fg); font: inherit; padding: 0;
}
.cmd input::placeholder { color: var(--dim); }
.cmd input::-webkit-search-cancel-button { display: none; }

.kbd {
  display: inline-flex;
  gap: 2px; padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px;
  color: var(--muted);
}
.cmd.open .kbd { border-color: var(--accent); color: var(--accent); }
.kbd kbd { font: inherit; }

.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 5px 10px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px;
  color: var(--muted);
  border-radius: var(--r);
  transition: color 140ms ease, background 140ms ease;
}
.topnav a:hover { color: var(--fg); background: var(--soft); }

/* ── hero ──────────────────────────────────────────────── */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px; padding: 0 10px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--elev);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px;
  color: var(--fg);
}
.pill.muted { color: var(--muted); }
.pill .dot {
  border-radius: 9999px;
  width: 6px; height: 6px;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--good); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

.name {
  font-weight: 600;
  margin: 14px 0 0;
  font-size: 57.6px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.name .accent { color: var(--accent); }

.role {
  font-family: 'Geist Mono', ui-monospace, monospace;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.role .prompt { color: #5e6e75; }
.role .accent { color: var(--accent); font-weight: 600; }

.bio {
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 700px;
  font-size: 15px;
  color: var(--fg);
}
.bio .accent { color: var(--accent); font-weight: 500; }

/* ── sections ──────────────────────────────────────────── */
.block { margin-top: 32px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.block-title {
  font-family: 'Geist Mono', ui-monospace, monospace;
  margin: 0;
  font-size: 14px;
  color: var(--fg);
}
.block-title .hash { color: var(--accent); }
.block-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ── skill bars ────────────────────────────────────────── */
.bars {
  border-radius: var(--r);
  overflow: hidden;
  margin: 0; padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--elev);
}
.bar {
  display: grid;            /* explicit — @apply grid не работает в CDN */
  align-items: center;
  grid-template-columns: minmax(180px, 1fr) 2fr auto;
  gap: 14px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
}
.bar:first-child { border-top: 0; }
.bar-label { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--fg); }
.bar-track {
  position: relative;       /* explicit — anchor for absolute bar-fill */
  overflow: hidden;
  height: 6px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.bar-fill {
  position: absolute;       /* explicit — fills the track */
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--r-pill);
  box-shadow: 0 0 12px var(--accent-soft);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.bar-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  background: var(--ink);
}
.bar-tag.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.bar-tag.muted { color: var(--dim); }

/* ── chips ─────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.chip {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  background: var(--elev);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── nav rows (sections) ───────────────────────────────── */
.rows {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--elev);
}
.row {
  display: grid;            /* explicit */
  align-items: center;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  transition: background 160ms ease, transform 160ms ease;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--soft); transform: translateX(2px); }
.row .arrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--dim); font-size: 13px;
  transition: transform 200ms ease, color 200ms ease;
}
.row:hover .arrow { color: var(--accent); transform: translateX(3px); }
.row .label { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row .key { color: var(--fg); font-weight: 500; }
.row .dash { color: var(--dim); font-family: 'Geist Mono', ui-monospace, monospace; }
.row .desc {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.row .tag.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ── projects ──────────────────────────────────────────── */
.projects {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--elev);
}
.proj {
  display: grid;            /* explicit */
  align-items: center;
  grid-template-columns: 24px 28px 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  transition: background 160ms ease, transform 160ms ease;
}
.proj:first-child { border-top: 0; }
.proj:hover { background: var(--soft); transform: translateX(2px); }
.proj .arrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--dim); font-size: 13px;
  transition: transform 200ms ease, color 200ms ease;
}
.proj:hover .arrow { color: var(--accent); transform: translateX(3px); }
.proj .ico {
  display: grid;            /* explicit */
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
  border-radius: var(--r);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px;
}
.proj .name { margin: 0; font-size: 14px; color: var(--fg); }
.proj .em   { color: var(--muted); font-weight: 400; }
.proj .desc {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--dim);
  margin-top: 2px;
}
.proj .meta {
  display: inline-flex;
  gap: 1px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted);
}
.status-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  background: var(--ink);
}
.status-tag.prod     { color: var(--good); border-color: rgba(76,183,130,0.4); background: rgba(76,183,130,0.08); }
.status-tag.shipped  { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.status-tag.internal { color: var(--muted); }
.status-tag.wip      { color: var(--warn); border-color: rgba(242,201,76,0.4); background: rgba(242,201,76,0.08); }

/* ── photos ────────────────────────────────────────────── */
.photos {
  display: grid;            /* explicit */
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}
.photo {
  position: relative;
  display: grid;            /* explicit */
  place-items: center;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--soft), var(--ink));
  color: var(--dim);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px;
  text-align: center;
  padding: 8px;
  overflow: hidden;
  transition: transform 300ms ease;
}
.photo:hover { transform: translateY(-2px); }
.photo .caption { font-size: 10px; color: var(--dim); margin-top: 4px; }

/* ── socials ───────────────────────────────────────────── */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── footer ────────────────────────────────────────────── */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 60px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--dim);
}
footer .blip { color: var(--accent); }

/* ── command palette ───────────────────────────────────── */
.palette {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  max-height: 70vh;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--line) inset;
  overflow: hidden;
}
.palette.open { display: flex; }
.palette.appearing { animation: paletteAppear 220ms cubic-bezier(.22,1,.36,1); }
@keyframes paletteAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.palette-backdrop.open { opacity: 1; pointer-events: auto; }

.palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.palette-head .count strong { color: var(--accent); }

.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px 4px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 100ms ease;
}
.palette-item + .palette-item { margin-top: 1px; }
.palette-item:hover, .palette-item.active { background: var(--soft); }
.palette-item.active { box-shadow: inset 0 0 0 1px var(--accent); }
.palette-item .item-icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
}
.palette-item.active .item-icon { color: var(--accent); border-color: var(--accent); }
.palette-item .item-body { flex: 1; min-width: 0; }
.palette-item .item-title {
  font-size: 13.5px; color: var(--fg); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.palette-item .item-desc {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; color: var(--dim);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.palette-item .item-tags {
  display: flex;
  flex-shrink: 0;
  gap: 1px;
}
.palette-item .item-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  background: var(--ink);
}
.palette-item .item-tag.ai       { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.palette-item .item-tag.prod    { color: var(--good); border-color: rgba(76,183,130,0.4); }
.palette-item .item-tag.shipped { color: var(--accent); }
.palette-item .item-tag.section { color: var(--muted); }
.palette-item .item-tag.external { color: var(--warn); border-color: rgba(242,201,76,0.4); }

.palette-item mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 600;
}

.palette-empty {
  text-align: center;
  padding: 28px 18px;
  color: var(--dim);
  font-size: 12.5px;
}
.palette-empty strong { color: var(--fg); font-weight: 500; }
.palette-empty .hint {
  display: block;
  margin-top: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
}

.palette-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dim);
}
.palette-foot .spacer { flex: 1; }
.palette-foot .brand { color: var(--accent); }
.palette-foot kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--elev);
  color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
}

/* ── typed.js cursor ───────────────────────────────────── */
.typed-cursor { color: var(--accent); font-weight: 600; }
.typed-cursor.no-cursor { display: none; }

/* ── particle canvas ───────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.shell, .topbar, footer { position: relative; z-index: 1; }

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

/* ── payment cards (donate page) ────────────────────────── */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.payment-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.payment-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.payment-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
}
.payment-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.payment-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.payment-recipient {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--ink);
}
.payment-recipient code {
  flex: 1; min-width: 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg);
  word-break: break-all;
}
.payment-recipient-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.copy-btn {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  cursor: pointer;
}
.payment-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  text-align: center;
  transition: background 140ms ease, color 140ms ease;
  align-self: flex-start;
}
.payment-cta:hover {
  background: var(--accent);
  color: #fff;
}
.hint-block {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: rgba(94,106,210,0.04);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}
.hint-block strong { color: var(--accent); }

/* ── allocation cards ──────────────────────────────────── */
.alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.alloc-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  transition: border-color 160ms ease;
}
.alloc-card:hover { border-color: var(--accent); }
.alloc-pct {
  font-family: 'Geist Mono', monospace;
  font-size: 22px;
  color: var(--accent);
  font-weight: 600;
}
.alloc-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-top: 2px;
}
.alloc-detail {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── CTA buttons ────────────────────────────────────────── */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
}
.cta-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease, transform 100ms ease;
}
.cta-btn:hover { background: var(--accent); color: #fff; }
.cta-btn:active { transform: translateY(1px); }
.cta-btn--secondary {
  border-color: var(--line);
  background: var(--elev);
  color: var(--fg);
}
.cta-btn--secondary:hover {
  border-color: var(--accent);
  background: var(--elev);
  color: var(--accent);
}

/* ── pricing cards (price page) ─────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.pricing-card {
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  transition: border-color 200ms ease, transform 200ms ease;
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(94,106,210,0.06), var(--elev));
}
.pricing-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricing-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.pricing-card--featured .pricing-name { color: var(--accent); }
.pricing-headline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.pricing-price {
  margin-top: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.pricing-price-suffix {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.pricing-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta {
  margin-top: auto;
  padding-top: 18px;
  display: block;
  text-align: center;
}
.pricing-cta a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--fg);
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.pricing-cta a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.pricing-card--featured .pricing-cta a {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.pricing-card--featured .pricing-cta a:hover {
  background: var(--accent);
  color: #fff;
}

/* ── FAQ (price page) ───────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--elev);
  overflow: hidden;
}
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 500;
  transition: background 140ms ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { background: var(--soft); }
.faq-summary::after {
  content: '+';
  font-family: 'Geist Mono', monospace;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 200ms ease, color 200ms ease;
}
.faq-item[open] .faq-summary::after {
  content: '−';
  color: var(--accent);
}
.faq-body {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.faq-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink);
  color: var(--fg);
}

/* ── text link helper (used in bio text on inner pages) ─── */
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
  transition: text-decoration-color 140ms ease;
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ── nav active state ──────────────────────────────────── */
.topnav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── responsive trim ───────────────────────────────────── */
@media (max-width: 720px) {
  .name { font-size: 42px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .bar   { grid-template-columns: 1fr 2fr auto; }
  .proj  { grid-template-columns: 20px 24px 1fr; }
  .proj .meta { display: none; }
  .topnav a { padding: 5px 7px; }
  .pricing-price { font-size: 24px; }
  .alloc-grid { grid-template-columns: 1fr 1fr; }
}
