/* manufrancis.com: one stylesheet, no build step.
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Illustrations  7. Motion  8. Admin */

/* 1. Tokens ---------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #0b0b0f;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e4e4ea;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #0b0b0f;
  --blue: #2156ff;   --blue-soft: #edf2ff;
  --mint: #0c9f7b;   --mint-soft: #e7f7f1;
  --violet: #7a4cff; --violet-soft: #f2edff;
  --amber: #e58a00;  --amber-soft: #fff4e2;
  --gold: #d4a64a;
  --danger: #c4320a;
  --r-lg: 28px;
  --r-md: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(17, 24, 39, .08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .04), 0 30px 80px rgba(17, 24, 39, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(3.2rem, 8.4vw, 6.4rem); line-height: .98; letter-spacing: -.05em; font-weight: 750; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.038em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #a1a1aa; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--blue); margin-bottom: .8em; letter-spacing: -.01em; }
.section-dark .eyebrow { color: #8ea8ff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.body-lg { font-size: 1.15rem; color: #3a3a40; }
.muted { color: var(--muted); }
.muted-dark { color: #8b8b96; }
.small { font-size: .875rem; }
.sub { margin-top: 48px; }
.grad { background: linear-gradient(92deg, var(--blue), var(--violet) 55%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 4. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary, .btn-accent { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: #2a2a33; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9c9d1; }
.btn-danger { background: var(--danger); color: #fff; }
.link-arrow { font-weight: 600; font-size: 1.05rem; }
.link-arrow span { display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }
.pill { font-style: normal; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: auto; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; }
.nav-links a:not(.btn) { color: #3a3a40; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { min-height: 36px; padding: 0 16px; font-size: .9rem; }
.nav-toggle { display: none; min-height: 44px; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; min-height: 46px; }
  .nav.open .nav-links { display: flex; }
}

/* 5. Sections -------------------------------------------------------------- */

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(700px 420px at 88% 18%, rgba(33, 86, 255, .10), transparent 70%),
              radial-gradient(600px 400px at 70% 90%, rgba(12, 159, 123, .08), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 550; color: #3a3a40; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(12, 159, 123, .15); }
.hero-line { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; color: var(--ink); margin: 20px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.hero-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.illo-orbit { position: absolute; inset: 0; width: 100%; height: 100%; --c: var(--blue); --c2: var(--mint); --c3: var(--violet); }
.hero-photo { position: relative; margin: 0; width: 76%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 55% 30%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .85rem; font-weight: 550; color: var(--ink); white-space: nowrap; }
.float-card img { width: 84px; height: auto; }
.fc-1 { top: 9%; left: -2%; }
.fc-2 { bottom: 16%; left: -6%; }
.ok-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(12, 159, 123, .15); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .float-card { font-size: .75rem; padding: 8px 10px; }
  .fc-1 { left: 0; } .fc-2 { left: 0; }
  .float-card img { width: 64px; }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 8vw, 96px) 0 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { margin: 0 0 6px; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat dt { color: var(--muted); font-size: .95rem; line-height: 1.45; max-width: 16em; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 28px; }
}

/* Recognition */
.award { background: var(--dark); color: #a1a1aa; }
.award h2 { color: #fff; }
.award .eyebrow { color: var(--gold); }
.award-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.award-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.award-photo img { width: 100%; }
.illo-laurel { width: 76px; height: 76px; margin-bottom: 16px; --gold: #d4a64a; }
.lead-dark { font-size: 1.15rem; color: #b4b4bd; }
@media (max-width: 860px) { .award-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 40px; background: linear-gradient(135deg, var(--blue-soft), var(--mint-soft)); }
.about-photo img { position: relative; border-radius: 32px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* Expertise bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile p { margin: 0; color: #4a4a52; max-width: 30em; }
.tile-art { height: 210px; padding: 14px; margin: -8px 0 24px; border-radius: 20px; overflow: hidden; }
.tile-art .illo { display: block; width: 100%; height: 100%; }
.tone-blue   { --c: var(--blue);   --c2: var(--mint);   --c3: var(--violet); } .tone-blue .tile-art   { background: var(--blue-soft); }
.tone-mint   { --c: var(--mint);   --c2: var(--blue);   --c3: var(--violet); } .tone-mint .tile-art   { background: var(--mint-soft); }
.tone-violet { --c: var(--violet); --c2: var(--blue);   --c3: var(--amber);  } .tone-violet .tile-art { background: var(--violet-soft); }
.tone-amber  { --c: var(--amber);  --c2: var(--blue);   --c3: var(--violet); } .tone-amber .tile-art  { background: var(--amber-soft); }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } }

/* Ventures */
.ventures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.venture { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--bg-alt); }
.venture h3 { font-size: 1.6rem; margin: 28px 0 4px; }
.venture-logo { height: 56px; display: flex; align-items: center; }
.venture-logo img { max-height: 52px; width: auto; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #3a3a40; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%232156ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badges img { width: 100%; height: 76px; object-fit: contain; padding: 12px 16px; border-radius: 14px; background: #fff; }
@media (max-width: 860px) { .ventures { grid-template-columns: 1fr; } }

/* Training gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 22vw, 260px); grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #1a1a20; }
.shot-wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; font-size: .88rem; font-weight: 550; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .shot-wide { grid-column: span 2; }
}

/* Associations */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
.logos li { display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 18px 22px; border-radius: var(--r-md); background: var(--bg-alt); font-weight: 550; color: #3a3a40; line-height: 1.35; }
.logos img { width: 72px; height: 60px; object-fit: contain; flex: none; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos .text-only::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
@media (max-width: 860px) { .logos { grid-template-columns: 1fr; } }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cred-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; }
.cred-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cred-logo { height: 30px; width: auto; margin: 4px 0 16px; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cred-list li:first-child { border-top: 0; }
.cred-list .code { flex: none; display: grid; place-items: center; width: 52px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
.cred-list li > span:last-child { flex: 1; }
.cred-list.edu strong { display: block; color: var(--ink); font-weight: 600; }
.cred-list.edu small { display: block; color: var(--muted); font-size: .9rem; }
.edu-logo { height: 28px; width: auto; margin-bottom: 8px; }
@media (max-width: 860px) { .cred-grid { grid-template-columns: 1fr; } }

/* Contact + forms */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--bg-alt); }
.form .row { margin-bottom: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text);
  border: 1px solid #d6d6de; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 86, 255, .15); }
.form textarea { resize: vertical; }
.form [aria-invalid=true] { border-color: var(--danger); }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: #3a3a40; }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.field-error, .form-error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.form-error { padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: #fff1ec; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { text-align: center; padding: 56px 32px; }
.ok-big { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 1.8rem; }
.narrow { max-width: 420px; margin: 40px auto; }
.danger { margin-top: 20px; border-color: #f4c7c3; }

/* Prose */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.prose h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-top: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); }
@media (max-width: 640px) { .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; } .prose thead { display: none; } .prose td { border: 0; padding: 4px 0; } .prose tr { padding: 12px 0; border-bottom: 1px solid var(--line); } }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 28px 0; }
.footer a { color: #3a3a40; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

/* 6. Illustrations --------------------------------------------------------- */
.illo { overflow: visible; }
.i-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-faint { stroke-opacity: .22; }
.i-strong { stroke-width: 2.6; }
.i-dash { stroke-dasharray: 3 12; stroke-opacity: .55; }
.i-dash-2 { stroke-dasharray: 2 9; stroke: var(--c3); stroke-opacity: .5; }
.i-fill { fill: var(--c); }
.i-fill-2 { fill: var(--c2); }
.i-fill-3 { fill: var(--c3); }
.i-soft { fill: var(--c); fill-opacity: .12; }
.i-card { fill: #fff; stroke: rgba(0, 0, 0, .06); }
.i-mute { fill: #dfe1e8; }
.i-white { fill: #fff; }
.i-ok { fill: var(--mint); }
.i-node rect { fill: #fff; stroke: var(--c); stroke-width: 2; }
.i-people { fill: var(--c); fill-opacity: .85; }
.i-gold { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.i-gold-fill { fill: var(--gold); }

/* 7. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .spin { transform-box: view-box; transform-origin: 300px 300px; animation: spin 80s linear infinite; }
  .spin.rev { animation-duration: 60s; animation-direction: reverse; }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
  .pulse.d2 { animation-delay: .8s; } .pulse.d3 { animation-delay: 1.6s; }
  .scan { animation: scan 3.2s var(--ease) infinite; }
  .flow { stroke-dasharray: 6 10; animation: flow 1.8s linear infinite; }
  .flow.d2 { animation-duration: 2.4s; }
  .blink { animation: blink 1.1s steps(1) infinite; }
  .float { animation: float 4s ease-in-out infinite; }
  .float-card { animation: float 6s ease-in-out infinite; }
  .fc-2 { animation-delay: -2s; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .12s; }
  .js .reveal.d2 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(76px); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 8. Admin ----------------------------------------------------------------- */
.admin .section { padding-top: 40px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin-head h1 { font-size: 2.2rem; margin: 0; letter-spacing: -.03em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .9rem; }
.filters a:hover { text-decoration: none; background: var(--bg-alt); }
.filters a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters span { opacity: .6; margin-left: 4px; }
.search { display: flex; gap: 8px; margin-bottom: 20px; }
.search input { flex: 1; padding: 10px 16px; font: inherit; border: 1px solid #d6d6de; border-radius: 999px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.leads { width: 100%; border-collapse: collapse; font-size: .95rem; }
.leads th, .leads td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.leads th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg-alt); }
.status-new { background: var(--blue-soft); color: var(--blue); }
.status-contacted { background: #fef9c3; color: #713f12; }
.status-qualified { background: var(--violet-soft); color: #4c1d95; }
.status-won { background: var(--mint-soft); color: #065f46; }
.status-closed { background: #e5e7eb; color: #374151; }
.notice-inline { padding: 10px 14px; border-radius: 12px; background: var(--mint-soft); color: #065f46; }
.lead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .lead-grid { grid-template-columns: 1fr; } }
.details { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.message { overflow-wrap: anywhere; background: var(--bg-alt); padding: 16px; border-radius: 12px; }
.admin .form .row label input, .admin .form select, .admin .form textarea { background: #fff; }

/* Admin: sign-in and two-step verification */
.admin-nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.admin-nav a { color: #3a3a40; }
.narrow h1, .setup h1 { font-size: 2rem; letter-spacing: -.03em; }
.setup { max-width: 640px; margin: 24px auto; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 48px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; }
.steps h2, .h-card { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 6px; }
.qr-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 10px; }
.qr { width: 220px; height: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; image-rendering: pixelated; }
.secret code { display: inline-block; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 1rem; letter-spacing: .06em; word-break: break-all; }
.form .inline { display: flex; gap: 10px; align-items: stretch; }
.form .inline .otp { margin-top: 0; }
.form input.otp { font-size: 1.4rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; max-width: 220px; }
.narrow .form input.otp, .narrow input.otp { max-width: none; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; margin: 20px 0 28px; list-style: none; }
.codes code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 1.05rem; text-align: center; letter-spacing: .04em; }
.sub-tight { margin-top: 16px; }

/* Social profile links */
.social { display: flex; flex-wrap: wrap; gap: 2px; padding: 0; margin: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s, transform .2s var(--ease); }
.social a:hover { color: var(--ink); background: var(--bg-alt); transform: translateY(-1px); text-decoration: none; }
.social-icon { width: 17px; height: 17px; }
.social-lg { gap: 10px; margin: 6px 0 28px; }
.social-lg a { width: 46px; height: 46px; background: var(--bg-alt); color: var(--ink); }
.social-lg a:hover { background: var(--ink); color: #fff; }
.social-lg .social-icon { width: 19px; height: 19px; }
.social-label { margin: 28px 0 0; font-weight: 600; color: var(--ink); }
.footer-inner { align-items: center; }

/* Admin: activity log, admins, security */
.admin-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.sub-card { margin-top: 20px; }
.small-head { margin-bottom: 8px; }
.small-head h2 { margin: 0; }
.mini-log { list-style: none; padding: 0; margin: 0; }
.mini-log li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.mini-log li:first-child { border-top: 0; }
.dot-tone { display: inline-block; flex: none; width: 8px; height: 8px; margin: 7px 8px 0 0; border-radius: 50%; background: var(--muted); vertical-align: top; }
.mini-log .dot-tone { margin-right: 0; }
.tone-ok { background: var(--mint); }
.tone-warn { background: var(--amber); }
.tone-bad { background: var(--danger); }
.tone-info { background: var(--blue); }
.log td { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.filter-fail { margin-left: auto; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-link, .page-current { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; font-size: .9rem; }
.page-link { color: var(--text); }
.page-link:hover { background: var(--bg-alt); text-decoration: none; }
.page-current { background: var(--ink); color: #fff; font-weight: 600; }
.actions summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; }
.actions[open] { min-width: 260px; }
.actions .form { margin-top: 10px; }
.actions .form input.otp { font-size: 1.1rem; max-width: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.created { margin-bottom: 20px; border-color: #b7ebd5; background: var(--mint-soft); }
.narrow-left { max-width: 640px; }
.venture-link { color: inherit; }
.venture-link span { color: var(--blue); font-size: .8em; }
.venture-link:hover { color: var(--blue); text-decoration: none; }
