/* Dr. Lau's FM Halftone Screening — marketing/docs site
   Self-contained, no external dependencies. Dark Photoshop-adjacent theme. */

:root {
  --bg: #15171a;
  --bg-2: #1c1f24;
  --bg-3: #23272e;
  --panel: #1a1d22;
  --line: #2e333b;
  --text: #e8eaed;
  --text-dim: #a7adb7;
  --text-faint: #757c88;
  --accent: #5b9dff;
  --accent-2: #7c5bff;
  --c: #00b8d4; /* cyan  */
  --m: #e6007e; /* magenta */
  --y: #ffd400; /* yellow */
  --k: #cdd2da; /* "black" rendered light on dark */
  --radius: 12px;
  --maxw: 1080px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 91, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(91, 157, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 23, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand img.brand-logo {
  width: 26px; height: 32px; border-radius: 0;
  filter: invert(1) brightness(1.35);
}
.brand .sub { color: var(--text-faint); font-weight: 400; font-size: 0.82rem; }
.nav a.navlink {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 6px 2px;
}
.nav a.navlink:hover { color: var(--text); text-decoration: none; }
.nav a.navlink.active { color: var(--text); border-bottom: 2px solid var(--accent); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.08;
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 38ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge { margin-top: 22px; color: var(--text-faint); font-size: 0.85rem; }

.hero-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 30% 20%, #2a2f37, #14161a 70%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-art img { width: 46%; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5)); }
/* faux halftone dot field behind the logo */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--text-faint) 1px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%);
}

/* ---------- Sections ---------- */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; }
.kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag.plate { background: rgba(91, 157, 255, 0.14); color: #8fbcff; }
.tag.inkjet { background: rgba(124, 91, 255, 0.16); color: #b6a2ff; }
.card .icon { font-size: 1.5rem; margin-bottom: 10px; display: block; }

/* CMYK chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.chip.c { border-color: var(--c); color: var(--c); }
.chip.m { border-color: var(--m); color: var(--m); }
.chip.y { border-color: var(--y); color: var(--y); }
.chip.k { border-color: var(--k); color: var(--k); }

/* ---------- Steps ---------- */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps > li {
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px; top: 16px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 0.95rem;
}
ol.steps > li h4 { margin: 0 0 4px; font-size: 1.05rem; }
ol.steps > li p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
ol.steps code, .prose code, table code { font-family: var(--mono); font-size: 0.86em;
  background: var(--bg-3); padding: 1px 6px; border-radius: 5px; color: #d9b8ff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 650; background: var(--bg-3); }
tr:last-child td { border-bottom: none; }
td.param { font-weight: 600; color: var(--text); white-space: nowrap; }
td .eng { font-size: 0.72rem; font-weight: 600; color: var(--text-faint); display: block; margin-top: 3px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--y); }
.callout p { margin: 0; color: var(--text-dim); }
.callout strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg-2);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--text-dim); }
.faq details > div p:first-child { margin-top: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  margin: 64px 0 0;
  padding: 44px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(91,157,255,0.12), rgba(124,91,255,0.14));
  border: 1px solid var(--line);
}
.cta-strip h2 { margin: 0 0 8px; font-size: 1.7rem; }
.cta-strip p { color: var(--text-dim); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 32px 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); }

/* ---------- Secondary (section) nav ---------- */
.subnav {
  border-bottom: 1px solid var(--line);
  background: rgba(26, 29, 34, 0.6);
}
.subnav .wrap { display: flex; gap: 20px; align-items: center; height: 46px; overflow-x: auto; }
.subnav .label { color: var(--text-faint); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.subnav a { color: var(--text-dim); font-size: 0.9rem; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--text); }

/* ---------- Portfolio hero ---------- */
.phero { padding: 76px 0 52px; }
.phero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: center; }
.phero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 14px; }
.phero .lead { font-size: 1.2rem; color: var(--text-dim); max-width: 42ch; }
.phero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.headshot {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  filter: saturate(1.02);
}
.headshot-wrap { position: relative; }
.headshot-wrap::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.35);
  pointer-events: none;
}

/* ---------- IEEE Fellow credential ---------- */
.cred { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.cred-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; color: #fff;
  background: linear-gradient(135deg, #00629b, #0a2d6e);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 70, 140, 0.4);
  white-space: nowrap;
}
.cred-badge .star { font-size: 1.05em; line-height: 1; color: #ffd400; }
.cred-note { color: var(--text-dim); font-size: 0.9rem; }

.cred-banner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 98, 155, 0.18), rgba(10, 45, 110, 0.14));
  border: 1px solid rgba(0, 98, 155, 0.5);
}
.cred-banner .seal {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #00629b, #0a2d6e);
  color: #ffd400; font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0, 70, 140, 0.45);
}
.cred-banner h3 { margin: 0 0 4px; font-size: 1.25rem; }
.cred-banner p { margin: 0; color: var(--text-dim); }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat { text-align: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stat .num { font-size: 1.9rem; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-dim); font-size: 0.86rem; margin-top: 4px; }

/* ---------- Featured plugin banner ---------- */
.feature-banner {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center;
  padding: 28px 32px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,157,255,0.12), rgba(124,91,255,0.14));
  border: 1px solid var(--line);
}
.feature-banner img { width: 130px; height: 130px; justify-self: center; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5)); }
.feature-banner h3 { margin: 0 0 6px; font-size: 1.4rem; }
.feature-banner p { margin: 0; color: var(--text-dim); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: zoom-in;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 10px 12px; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- UI screenshots ---------- */
.shot-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
.shot {
  margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: zoom-in;
  transition: border-color 0.15s ease;
}
.shot-row .shot { margin-top: 0; }
.shot:hover { border-color: var(--accent); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--text-dim); }
.shot.center { max-width: 820px; margin-left: auto; margin-right: auto; }
/* Palette-only close-ups: render small, never as large as the in-context shots */
.shot.panel { max-width: 300px; margin-left: auto; margin-right: auto; }

/* Newspaper layout: figures float and the surrounding prose wraps around them */
.shot.right, .shot.left { max-width: 600px; margin-top: 4px; margin-bottom: 14px; }
.shot.right { float: right; clear: right; margin-left: 26px; }
.shot.left  { float: left;  clear: left;  margin-right: 26px; }
.shot.sm { max-width: 380px; }
/* fill the full width of the container (e.g. a card), no float */
.shot.fill { float: none; clear: both; max-width: 100%; width: 100%; margin: 0 0 16px; }
.section-head.has-figure { max-width: none; }
.section-head.has-figure p { max-width: none; }
.card .shot { margin-top: 0; }
/* contain floats so card borders, callouts and sections wrap their figures */
.card::after, .callout::after, .block .wrap::after { content: ""; display: block; clear: both; }
/* card grids and step lists are CSS grids (can't wrap a float) — keep them on their own row */
.grid, ol.steps { clear: both; }

@media (max-width: 720px) {
  .shot-row { grid-template-columns: 1fr; }
  .shot.panel { max-width: 240px; }
  .shot.right, .shot.left { float: none; clear: both; max-width: 100%; margin: 18px auto; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 9, 11, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 32px; flex-direction: column; gap: 14px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .cap { color: var(--text-dim); font-size: 0.95rem; max-width: 70ch; text-align: center; }
.lightbox .close { position: absolute; top: 18px; right: 24px; font-size: 2rem; color: #fff; cursor: pointer; line-height: 1; background: none; border: none; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 16px; }
.post {
  display: grid; grid-template-columns: 130px 1fr; gap: 22px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.post .date { color: var(--text-faint); font-size: 0.85rem; }
.post h3 { margin: 0 0 8px; font-size: 1.2rem; }
.post p { margin: 0 0 10px; color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Two-col bio ---------- */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.bio-side img { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bio-side .card { margin-top: 18px; }
.bio-side .card ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.form-card {
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--accent); }
.field input, .field textarea {
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--text-faint); font-size: 0.82rem; margin: 4px 0 18px; }

.form-status { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.95rem; }
.form-status.ok { background: rgba(40, 167, 96, 0.14); border: 1px solid rgba(40, 167, 96, 0.5); color: #7ee2a8; }
.form-status.err { background: rgba(230, 0, 70, 0.12); border: 1px solid rgba(230, 80, 110, 0.5); color: #ff9bb0; }
.form-status[hidden] { display: none; }

.contact-aside .card { margin-bottom: 16px; }
.contact-aside .card h3 { margin-top: 0; }
.contact-aside a { word-break: break-word; }

/* ---------- Patents ---------- */
.patent-meta { color: var(--text-dim); font-size: 0.95rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 6px; }
.patent-meta .sep { color: var(--text-faint); }
.patent-meta strong { color: var(--text); }
.inventors { color: var(--text-faint); font-size: 0.9rem; margin: 4px 0; }
.topic-pill {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: rgba(91, 157, 255, 0.14); color: #8fbcff; margin: 8px 0;
}

/* Patent figure grid (drawings are black-on-white → shown on a light tile) */
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.fig-item {
  margin: 0; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  transition: border-color 0.15s ease;
}
.fig-item:hover { border-color: var(--accent); }
.fig-item img { width: 100%; height: 190px; object-fit: contain; background: #f4f5f7; display: block; }
.fig-item figcaption { padding: 8px 10px; font-size: 0.8rem; color: var(--text-dim); }

/* Patent listing on the overview page */
.patent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.patent-link {
  display: block; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2); color: var(--text);
  transition: border-color 0.15s ease, transform 0.06s ease;
}
.patent-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.patent-link .num { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 3px; }
.patent-link .t { font-size: 0.95rem; color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .phero-grid { grid-template-columns: 1fr; }
  .headshot-wrap { max-width: 300px; order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-side { max-width: 320px; }
  .feature-banner { grid-template-columns: 1fr; text-align: center; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav .navlink { display: none; }
  .nav.open .navlink { display: block; }
  .nav-toggle {
    display: inline-block; background: none; border: 1px solid var(--line);
    color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  }
  .nav.open {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    height: auto; padding: 12px 24px; gap: 6px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open .brand { margin-right: 0; }
}
