/* ============================================================
   Sifu Logic — homepage styles
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --ink:        #0e1b2e;
  --ink-2:      #46566e;
  --ink-3:      #7a889d;
  --navy:       #0f2747;
  --blue:       #1c6ea0;
  --accent:     #1fa9c4;
  --accent-2:   #56c7da;
  --bg:         #f5f8fb;
  --bg-2:       #eef3f8;
  --surface:    #ffffff;
  --line:       #e2e8f1;
  --line-2:     #d3dce7;
  --radius:     14px;
  --radius-sm:  9px;
  --maxw:       1200px;
  --grad:       linear-gradient(125deg, var(--navy) 0%, var(--blue) 52%, var(--accent) 100%);
  --shadow-sm:  0 1px 2px rgba(15,39,71,.06), 0 1px 3px rgba(15,39,71,.05);
  --shadow-md:  0 4px 14px rgba(15,39,71,.07), 0 2px 6px rgba(15,39,71,.05);
  --shadow-lg:  0 24px 60px -18px rgba(13,31,58,.28), 0 8px 24px -12px rgba(13,31,58,.18);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---- shared bits ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(28,110,160,.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(28,110,160,.7); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--navy); transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  margin-top: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245,248,251,.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--line); background: rgba(245,248,251,.92); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 36px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.brand-name .lo { color: var(--accent); }
.brand-lockup { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.brand-lockup .brand-name { font-size: 19px; line-height: 1; }
.brand-tag { font-family: var(--font-mono); font-size: 8.5px; font-weight: 500; letter-spacing: .13em; color: var(--ink-3); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--navy); background: rgba(28,110,160,.06); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   HERO  (3 layouts via [data-hero])
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* soft brand glow */
  content: "";
  position: absolute;
  top: -340px; right: -200px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(31,169,196,.16), rgba(31,169,196,0) 62%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: clamp(48px, 6.5vw, 96px) 0 clamp(56px, 7vw, 104px);
  display: grid;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
body[data-hero="centered"] .hero-copy { align-items: center; }
.hero-title {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 800;
  color: var(--ink);
  text-wrap: pretty;
  margin-bottom: 4px;
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.62;
  max-width: 540px;
  margin-top: 24px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.hero-trust b { color: var(--ink-2); font-weight: 600; }
.hero-specs { display: none; }

/* --- split (default) --- */
body[data-hero="split"] .hero-inner { grid-template-columns: 1.04fr 1fr; }

/* --- centered --- */
body[data-hero="centered"] .hero-inner { justify-items: center; text-align: center; }
body[data-hero="centered"] .hero-copy { max-width: 800px; }
body[data-hero="centered"] .eyebrow { justify-content: center; }
body[data-hero="centered"] .hero-sub { margin-inline: auto; max-width: 620px; }
body[data-hero="centered"] .hero-cta { justify-content: center; }
body[data-hero="centered"] .hero-trust { justify-content: center; }
body[data-hero="centered"] .hero-visual { width: 100%; max-width: 960px; margin-top: 8px; }

/* --- editorial --- */
body[data-hero="editorial"] .hero-inner { grid-template-columns: 1.5fr .9fr; align-items: end; }
body[data-hero="editorial"] .hero-title { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; }
body[data-hero="editorial"] .hero-visual { grid-column: 1 / -1; }
body[data-hero="editorial"] .hero-specs {
  display: block;
  border-top: 1.5px solid var(--ink);
  padding-top: 18px;
}
body[data-hero="editorial"] .hero-specs li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
}
body[data-hero="editorial"] .hero-specs li span:last-child { color: var(--navy); font-weight: 600; }
body[data-hero="editorial"] .hero-sub { max-width: none; }

/* ============================================================
   PRODUCT MOCK FRAMES (illustrative — swap for real screenshots)
   ============================================================ */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-dots i:nth-child(1){ background:#e6a6a0; } .mock-dots i:nth-child(2){ background:#e8cf9a; } .mock-dots i:nth-child(3){ background:#a8d3ae; }
.mock-title {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  margin-left: 6px; letter-spacing: .02em;
}
.mock-tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 9px; background: #fff;
}
.mock-body { padding: 18px; }

/* Datum dashboard */
.dash { display: grid; grid-template-columns: 150px 1fr; gap: 0; min-height: 320px; }
.dash-rail {
  border-right: 1px solid var(--line);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 4px;
  background: #fafcfe;
}
.dash-rail .r-h { font-family: var(--font-mono); font-size: 10px; letter-spacing:.12em; text-transform: uppercase; color: var(--ink-3); margin: 6px 6px 8px; }
.dash-rail a {
  font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-radius: 7px;
  display: flex; align-items: center; gap: 9px;
}
.dash-rail a .dot { width:6px;height:6px;border-radius:50%;background:var(--line-2); }
.dash-rail a.active { background: rgba(31,169,196,.1); color: var(--navy); font-weight: 600; }
.dash-rail a.active .dot { background: var(--accent); }
.dash-main { padding: 18px 20px; }
.dash-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 18px; }
.dash-head h4 { font-size: 18px; color: var(--ink); }
.dash-head .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.pill { font-family: var(--font-mono); font-size: 11px; padding: 4px 11px; border-radius: 999px; font-weight: 500; }
.pill.ok { background: rgba(36,150,90,.12); color: #1f7a4d; }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; background:#fff; }
.kpi .k-l { font-family: var(--font-mono); font-size: 10px; letter-spacing:.08em; text-transform: uppercase; color: var(--ink-3); }
.kpi .k-v { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--navy); margin-top: 7px; letter-spacing: -.02em; }
.kpi .k-v small { font-size: 12px; color: var(--ink-3); font-weight: 500; font-family: var(--font-mono); }
.chart {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background:#fff;
}
.chart .c-h { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.chart .c-h span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.chart .c-h b { font-size: 13px; color: var(--ink); font-family: var(--font-body); font-weight: 600; }
.chart svg { width: 100%; height: 92px; display: block; }

/* PlateLogic OCR */
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 320px; }
.plate-scan {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, #eef2f7 0 11px, #e7edf4 11px 22px);
}
.plate-scan .ph {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing:.04em;
}
.det {
  position: absolute; border: 1.5px solid var(--accent); border-radius: 4px;
  background: rgba(31,169,196,.08);
}
.det::after {
  content: attr(data-l);
  position: absolute; top: -9px; left: -1px;
  font-family: var(--font-mono); font-size: 8.5px; background: var(--accent); color:#fff;
  padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
.fields { display: flex; flex-direction: column; gap: 9px; }
.fields .f-h { font-family: var(--font-mono); font-size: 10px; letter-spacing:.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.field {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; background:#fff;
}
.field .f-l { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }
.field .f-v { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy); }
.conf { font-family: var(--font-mono); font-size: 10px; color:#1f7a4d; background: rgba(36,150,90,.1); padding: 2px 7px; border-radius: 5px; }

/* Framed real screenshot */
.shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.shot:hover { transform: translateY(-3px); box-shadow: 0 32px 70px -20px rgba(13,31,58,.34); }
.shot img { display: block; width: 100%; height: auto; }
.shot.dark { border-color: #1c2c44; }

/* ============================================================
   STANDARDS STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { padding: 26px 0; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.strip-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.strip-codes { display: flex; gap: 12px; flex-wrap: wrap; }
.code-chip {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--navy);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 15px; background: #fbfcfe;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: var(--bg); }
.prod-grid { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.prod {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 4.5vw, 64px);
  align-items: center;
}
.prod:nth-child(even) .prod-visual { order: -1; }
.prod-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 9px;
}
.prod-name { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; color: var(--ink); }
.prod-name .x { color: var(--accent); }
.prod-desc { color: var(--ink-2); font-size: 18px; margin-top: 16px; line-height: 1.62; }
.prod-feats { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.prod-feats li { position: relative; padding-left: 31px; font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.prod-feats li b { font-weight: 600; }
.prod-feats svg { position: absolute; left: 0; top: 4px; width: 19px; height: 19px; color: var(--accent); }
.prod-link { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--line-2); padding-bottom: 3px; transition: gap .15s, border-color .15s; }
.prod-link:hover { gap: 12px; border-color: var(--accent); color: var(--accent); }

/* ============================================================
   WORKFLOW
   ============================================================ */
.flow { background: var(--surface); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; }
.step { padding: 30px 26px 30px 0; border-top: 2px solid var(--ink); margin-right: 0; position: relative; }
.flow-grid .step + .step { padding-left: 26px; border-left: none; }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .08em; }
.step h3 { font-size: 20px; margin: 16px 0 10px; color: var(--ink); }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ============================================================
   STANDARDS SECTION
   ============================================================ */
.std { background: var(--bg); }
.std-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.std-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.std-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.std-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.std-card .c-code { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.01em; }
.std-card .c-name { color: var(--ink-2); font-size: 14px; margin-top: 7px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content:""; position:absolute; bottom:-300px; left:-160px; width:680px; height:680px;
  background: radial-gradient(circle, rgba(31,169,196,.26), rgba(31,169,196,0) 60%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px,5vw,80px); align-items: center; }
.contact .eyebrow { color: var(--accent-2); }
.contact h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); }
.contact .lead { color: rgba(255,255,255,.74); font-size: 19px; margin-top: 18px; line-height: 1.6; max-width: 460px; }
.contact-mail {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 16px; color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 14px 20px;
  background: rgba(255,255,255,.05); transition: border-color .2s, background .2s;
}
.contact-mail:hover { border-color: var(--accent-2); background: rgba(255,255,255,.09); }
.contact-mail svg { width: 19px; height: 19px; color: var(--accent-2); }

.form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.form label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 7px; }
.form .row { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 9px;
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); background: rgba(255,255,255,.1); }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { width: 100%; justify-content: center; }
.form-status { margin: 14px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.72); min-height: 1.2em; }
.form-status.is-ok { color: var(--accent-2); }
.form-status.is-err { color: #f0a8a0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand img { height: 78px; width: auto; }
.footer-brand p { color: var(--ink-2); font-size: 14.5px; max-width: 320px; margin-top: 16px; line-height: 1.55; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--ink-2); font-size: 15px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bot { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bot p { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  body[data-hero] .hero-inner,
  body[data-hero="editorial"] .hero-inner { grid-template-columns: 1fr; }
  .hero-specs { margin-top: 8px; }
  .prod { grid-template-columns: 1fr; }
  .prod:nth-child(even) .prod-visual { order: 0; }
  .std-wrap { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .kpis { grid-template-columns: 1fr; }
  .plate { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-rail { display: none; }
  .flow-grid { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- mobile menu sheet ---- */
.mobile-menu {
  display: none;
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); z-index: 80;
  background: var(--surface); box-shadow: var(--shadow-lg);
  flex-direction: column; padding: 26px;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu.show { display: flex; }
.mobile-menu a { font-size: 18px; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); }
.mobile-menu .btn { margin-top: 22px; justify-content: center; }
.mm-close { align-self: flex-end; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; margin-bottom: 8px; }
.mm-close svg { width: 26px; height: 26px; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(13,31,58,.4); z-index: 70; backdrop-filter: blur(2px); }
.scrim.show { display: block; }

/* ============================================================
   TWEAKS PANEL (editor-only; hidden when deployed)
   ============================================================ */
#tweaks { display: none; }
