/* =========================================================
   MUHAMMAD SHARJEEL — CYBERSECURITY PORTFOLIO
   Minimalist editorial · Swiss discipline
   Black / White / Red (red = sparse accent)
   ========================================================= */

/* ---------- PALETTES ---------- */
:root,
[data-palette="swiss-red"] {
  --ink: #0d0d0d;
  --paper: #f6f4ef;
  --paper-2: #ece9e2;
  --accent: #e2231a;
  --on-accent: #ffffff;
  --muted: #6b6b65;
  --line: #0d0d0d;
  --line-soft: rgba(13,13,13,0.14);
  --font: "Helvetica Neue", Helvetica, Arial, "Inter", system-ui, sans-serif;
}
[data-palette="mono-ink"] { --ink:#111; --paper:#f5f5f3; --paper-2:#e6e6e3; --accent:#111; --on-accent:#f5f5f3; --muted:#707070; --line:#111; --line-soft:rgba(17,17,17,0.14); }
[data-palette="cobalt"]    { --ink:#0a0e1a; --paper:#f3f5fa; --paper-2:#e4e9f2; --accent:#1f5eff; --on-accent:#ffffff; --muted:#5f6b82; --line:#0a0e1a; --line-soft:rgba(10,14,26,0.14); }
[data-palette="acid"]      { --ink:#0a0a0a; --paper:#f6f6f1; --paper-2:#e8e8df; --accent:#c6f000; --on-accent:#0a0a0a; --muted:#6a6a5e; --line:#0a0a0a; --line-soft:rgba(10,10,10,0.14); }
[data-palette="forest"]    { --ink:#0c1410; --paper:#f2f5f1; --paper-2:#e3eae3; --accent:#1f7a4f; --on-accent:#ffffff; --muted:#5d6a62; --line:#0c1410; --line-soft:rgba(12,20,16,0.14); }
[data-palette="violet"]    { --ink:#120a1c; --paper:#f4f2f7; --paper-2:#e8e3ef; --accent:#7a2cf0; --on-accent:#ffffff; --muted:#6a5d78; --line:#120a1c; --line-soft:rgba(18,10,28,0.14); }
[data-palette="signal"]    { --ink:#0a0a0a; --paper:#f4f3f0; --paper-2:#e9e7e2; --accent:#ff6a00; --on-accent:#ffffff; --muted:#6a6a66; --line:#0a0a0a; --line-soft:rgba(10,10,10,0.14); }

[data-theme="dark"] { --ink:#f3f1ec; --paper:#0c0c0c; --paper-2:#161616; --muted:#9a9a94; --line:#f3f1ec; --line-soft:rgba(243,241,236,0.16); }
[data-theme="dark"][data-palette="mono-ink"] { --accent:#f3f1ec; --on-accent:#0c0c0c; }
[data-theme="dark"][data-palette="acid"]   { --accent:#d6ff00; --on-accent:#0c0c0c; }
[data-theme="dark"][data-palette="signal"] { --accent:#ff8a33; --on-accent:#0c0c0c; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }

:root { --maxw: 1320px; --gutter: 28px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--accent); z-index: 150; transition: width .1s linear; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 140; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-grid { align-items: center; padding: 14px 0; }
.brand { grid-column: 1 / 5; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.nav { grid-column: 5 / 12; display: flex; gap: 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; }
.nav a { position: relative; padding-bottom: 2px; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--accent); }
.theme-toggle { grid-column: 12 / 13; justify-self: end; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 11px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav-toggle { display: none; }

/* ---------- HERO (editorial masthead) ---------- */
.hero { padding: 70px 0 64px; }
.hero-grid { row-gap: 44px; align-items: end; }
.hero-lead { grid-column: 1 / 9; }
.hero-aside { grid-column: 9 / 13; border-left: 1px solid var(--line-soft); padding-left: 26px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); margin: 0 0 22px; text-transform: uppercase; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(226,35,26,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(226,35,26,0.55);} 70%{box-shadow:0 0 0 12px rgba(226,35,26,0);} 100%{box-shadow:0 0 0 0 rgba(226,35,26,0);} }
.hero-title { font-size: clamp(44px, 7.2vw, 116px); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; margin: 0 0 20px; overflow-wrap: break-word; }
.hero-accent-line { font-size: clamp(15px, 1.9vw, 20px); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 22px; text-transform: uppercase; }
.hero-accent-line .sep { color: var(--line-soft); margin: 0 10px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); margin: 0 0 30px; max-width: 52ch; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-aside dl { margin: 0; display: grid; gap: 0; }
.hero-aside .meta-row { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.hero-aside .meta-row:first-child { padding-top: 0; }
.hero-aside dt { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.hero-aside dd { margin: 0; font-size: 15px; font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; border: 2px solid var(--ink); cursor: pointer; transition: transform .12s, background .15s, color .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 17px 30px; font-size: 14px; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- STATEMENT (pull-quote) ---------- */
.section--statement { padding: 100px 0; }
.statement-grid { align-items: start; }
.statement-rule { grid-column: 1 / 2; width: 4px; align-self: stretch; background: var(--accent); }
.statement-body { grid-column: 2 / 11; }
.statement-body p { font-size: clamp(24px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.statement-body p strong { color: var(--accent); }
.statement-tags { grid-column: 2 / 11; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.statement-tags span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; border: 1px solid var(--line); padding: 6px 12px; text-transform: uppercase; }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; scroll-margin-top: 84px; }
.section--alt { background: var(--paper-2); }
.section-head { align-items: baseline; margin-bottom: 52px; border-bottom: 1px solid var(--line); padding-bottom: 16px; gap: 0; }
.section-index { grid-column: 1 / 2; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0; letter-spacing: 0.04em; align-self: start; padding-top: 0.45em; }
.section-title { grid-column: 2 / 13; font-size: clamp(28px, 4.4vw, 56px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; }

/* ---------- SERVICES ---------- */
.services-grid { row-gap: 0; }
.service { grid-column: span 6; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.service:first-child, .service:nth-child(2) { border-top: 2px solid var(--ink); }
.service-no { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.service-ico { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.service-ico .ico { width: 20px; height: 20px; color: var(--ink); }
.service h3 { font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; margin: 0 0 8px; }
.service p { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.6; }

/* ---------- ENGAGEMENTS (timeline) ---------- */
.exp-timeline { display: grid; border-left: 2px solid var(--line); margin-left: 7px; padding: 0 var(--gutter); max-width: var(--maxw); margin-right: auto; margin-left: auto; }
.exp-item { display: grid; grid-template-columns: 220px 1fr; gap: var(--gutter); padding: 34px 0 34px 38px; position: relative; border-bottom: 1px solid var(--line-soft); }
.exp-item:last-child { border-bottom: 0; }
.exp-dot { position: absolute; left: -7px; top: 40px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.exp-item.is-current .exp-dot { background: var(--accent); border-color: var(--accent); }
.exp-when { display: flex; align-items: center; gap: 8px; }
.exp-when span { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.03em; }
.exp-role { font-size: clamp(20px, 2.4vw, 28px); text-transform: uppercase; margin: 0 0 4px; }
.exp-org { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 600; letter-spacing: 0.03em; }
.exp-summary { margin: 0 0 14px; max-width: 68ch; line-height: 1.65; }
.exp-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-stack span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid currentColor; padding: 3px 8px; }

/* ---------- SELECTED WORK ---------- */
.projects-grid { row-gap: var(--gutter); }
.project-card { grid-column: span 6; border: 1px solid var(--ink); padding: 30px 28px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; position: relative; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.project-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); box-shadow: 0 16px 30px rgba(13,13,13,0.18); }
.project-card.featured { border-color: var(--ink); }
.project-card.featured::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); }
.proj-head { display: flex; align-items: center; gap: 12px; }
.project-no { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin: 0; }
.proj-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; background: var(--accent); color: #fff; padding: 3px 9px; }
.project-card h3 { font-size: 26px; text-transform: uppercase; margin: 2px 0 0; }
.project-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin: 0; }
.project-card:hover .project-tag { color: var(--paper); }
.proj-desc { font-size: 14.5px; margin: 0; line-height: 1.6; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.project-meta span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid currentColor; padding: 4px 9px; }
.proj-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.proj-act { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color .15s, color .15s; }
.proj-act .ico { width: 15px; height: 15px; color: var(--accent); }
.proj-act:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- RESULTS (black band, red numbers) ---------- */
.section--impact { background: #0d0d0d; color: #f3f1ec; }
.section--impact .section-head { border-color: rgba(243,241,236,0.4); }
.section--impact .section-index { color: var(--accent); }
.metrics-grid { row-gap: 0; }
.metric { grid-column: span 3; padding: 40px 22px; border-left: 1px solid rgba(243,241,236,0.22); }
.metric:first-child { border-left: 0; }
.metric-num { font-size: clamp(54px, 7vw, 82px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0 0 14px; color: var(--accent); }
.metric-label { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: #f3f1ec; }

/* ---------- CERTIFICATIONS ---------- */
.certs-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: 0 var(--gutter); max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.cert-badge { border: 1px solid var(--ink); padding: 24px 20px 22px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; position: relative; transition: transform .18s, box-shadow .18s; }
.cert-badge:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(13,13,13,0.14); }
.cert-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #8a8a86; color: #8a8a86; font-size: 12px; font-weight: 700; }
.cert-badge.ok { border-top: 3px solid var(--accent); }
.cert-badge.ok .cert-check { border-color: var(--accent); background: var(--accent); color: #fff; }
.cert-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; padding-right: 28px; }
.cert-body { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cert-badge.ok .cert-body { color: var(--ink); }
.cert-status { align-self: flex-start; margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; border: 1px solid #8a8a86; color: #3a3a38; padding: 3px 9px; }
.cert-status.ok { border-color: var(--accent); color: var(--accent); }

/* ---------- FIELD NOTES ---------- */
.wu-grid { row-gap: var(--gutter); }
.wu-card { grid-column: span 6; border: 1px solid var(--ink); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.wu-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); box-shadow: 0 14px 26px rgba(13,13,13,0.16); }
.wu-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.wu-cat .ico { width: 16px; height: 16px; color: var(--accent); }
.wu-card h3 { font-size: 21px; line-height: 1.15; margin: 0; }
.wu-date { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.wu-excerpt { font-size: 14px; margin: 0; line-height: 1.55; }
.wu-card:hover .wu-date { color: var(--paper); }
.wu-more { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.wu-all { grid-column: 1 / 13; margin-top: 10px; }

/* ---------- CONTACT ---------- */
.section--contact { background: #0d0d0d; color: #f3f1ec; }
.section--contact .section-head { border-color: rgba(243,241,236,0.4); }
.section--contact .section-index { color: var(--accent); }
.contact-grid { row-gap: 44px; align-items: start; }
.contact-lead { grid-column: 1 / 8; }
.contact-lead .big { color: #f3f1ec; font-size: clamp(24px, 3vw, 40px); margin: 0 0 32px; max-width: 20ch; line-height: 1.1; letter-spacing: -0.02em; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.copy-email { display: inline-flex; align-items: baseline; gap: 14px; background: transparent; border: 1px solid rgba(243,241,236,0.5); color: #f3f1ec; font-family: var(--font); cursor: pointer; padding: 15px 22px; transition: background .15s, color .15s, border-color .15s; }
.copy-email:hover { background: rgba(243,241,236,0.08); border-color: #f3f1ec; }
.copy-label { font-size: clamp(17px, 2vw, 24px); font-weight: 700; letter-spacing: 0.01em; }
.copy-hint { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.72; }
.contact-links { grid-column: 9 / 13; display: grid; gap: 14px; }
.contact-links a { font-size: 15px; font-weight: 700; letter-spacing: 0.03em; color: rgba(243,241,236,0.78); border-bottom: 2px solid transparent; padding-bottom: 3px; transition: border-color .15s, color .15s; }
.contact-links a:hover { border-color: var(--accent); color: #fff; }

/* Buttons on the pinned dark bands must stay visible in EVERY palette
   (mono-ink/accent can otherwise render white-on-white). Force a
   light-fill / dark-text scheme here. */
.section--contact .btn-primary,
.section--impact .btn-primary { background: #f3f1ec; border-color: #f3f1ec; color: #0d0d0d; }
.section--contact .btn-primary:hover,
.section--impact .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.section--contact .btn-ghost { color: #f3f1ec; }
.section--contact .btn-ghost:hover { background: #f3f1ec; color: #0d0d0d; }
.copy-email.copied { background: #f3f1ec; border-color: #f3f1ec; color: #0d0d0d; }

/* ---------- ABOUT (concise) ---------- */
.about-grid { row-gap: 40px; align-items: start; }
.about-lead { grid-column: 1 / 6; }
.about-body { grid-column: 7 / 13; }
.about-lead .big { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 20px; }
.about-lead .big strong { color: var(--accent); }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.highlights li { display: flex; align-items: center; gap: 14px; font-size: clamp(15px, 1.7vw, 18px); font-weight: 700; letter-spacing: -0.01em; }
.hl-mark { flex: 0 0 12px; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.about-body p { margin: 0 0 16px; color: var(--ink); line-height: 1.7; }
.facts { margin-top: 22px; border-top: 1px solid var(--line-soft); }
.facts li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.facts li span:first-child { flex: 0 0 86px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); padding-top: 2px; }

/* ---------- TRUSTED BY ---------- */
.section--trust { padding: 56px 0; background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-label { grid-column: 1 / 13; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; }
.trust-row { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.trust-row li { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.trust-row .ico { width: 22px; height: 22px; color: var(--accent); }
.trust-note { grid-column: 1 / 13; margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- CASE STUDIES ---------- */
.cases-grid { row-gap: var(--gutter); }
.case-card { grid-column: span 6; border: 1px solid var(--ink); padding: 32px 30px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; position: relative; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.case-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(13,13,13,0.18); }
.case-card.featured { border-top: 4px solid var(--accent); }
.case-head { display: flex; align-items: center; gap: 12px; }
.case-summary { font-size: 15px; margin: 0; line-height: 1.6; }
.case-result { font-size: 14px; margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--paper-2); line-height: 1.5; }
.case-card:hover .case-result { background: rgba(243,241,236,0.08); }
.case-result-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 4px; }
.cases-all { grid-column: 1 / 13; margin-top: 10px; }

/* ---------- TOOLS ---------- */
.tools-title { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin: 56px auto 22px; padding: 0 var(--gutter); max-width: var(--maxw); width: 100%; }
.tools-wrap { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding: 0 var(--gutter); max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.tool-group { border-top: 2px solid var(--ink); padding-top: 16px; }
.tool-group h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tool-chips span { font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-soft); padding: 5px 9px; }
.tools-wrap .tool-group:nth-child(odd) h4 { color: var(--ink); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { align-items: center; padding: 24px 0; font-size: 13px; }
.footer-brand { grid-column: 1 / 7; font-weight: 700; letter-spacing: 0.05em; margin: 0; }
.footer-note { grid-column: 7 / 11; color: #4a4a46; margin: 0; font-size: 12.5px; }
.footer-top { grid-column: 11 / 13; justify-self: end; font-weight: 700; letter-spacing: 0.05em; }
.footer-top:hover { color: var(--accent); }

/* ---------- BLOG ---------- */
.blog-hero { padding: 64px 0 40px; }
.blog-hero h1 { font-size: clamp(36px, 6vw, 72px); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.96; margin: 12px 0 16px; }
.blog-hero .lede { max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.filter-btn { border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s; }
.filter-btn:hover { background: var(--ink); color: var(--paper); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-list { row-gap: var(--gutter); }
.post-card { grid-column: span 4; border: 1px solid var(--ink); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.post-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); box-shadow: 0 14px 26px rgba(13,13,13,0.16); }
.post-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.post-cat .ico { width: 16px; height: 16px; color: var(--accent); }
.post-card h3 { font-size: 20px; line-height: 1.18; margin: 0; }
.post-date { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.post-card:hover .post-date { color: var(--paper); }
.post-excerpt { font-size: 14px; margin: 0; line-height: 1.55; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.post-tags span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid currentColor; padding: 3px 8px; }
.empty { grid-column: 1 / 13; padding: 60px 0; text-align: center; color: var(--muted); font-weight: 600; }

/* article */
.post-article { padding: 56px 0 90px; }
.post-back { margin-bottom: 24px; font-weight: 700; }
.post-back a { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.post-article .post-cat { margin-bottom: 14px; }
.post-article h1 { font-size: clamp(30px, 5vw, 56px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 14px; }
.post-article .post-date { font-size: 13px; margin-bottom: 28px; }
.post-body { max-width: 70ch; font-size: 16.5px; line-height: 1.75; }
.post-body h2 { font-size: 24px; text-transform: uppercase; letter-spacing: -0.01em; margin: 38px 0 14px; }
.post-body h3 { font-size: 19px; margin: 28px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; list-style: revert; }
.post-body li { margin: 0 0 8px; }
.post-body code { background: var(--paper-2); padding: 2px 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.post-body pre { background: var(--ink); color: var(--paper); padding: 18px 20px; overflow: auto; margin: 0 0 20px; }
.post-body pre code { background: transparent; padding: 0; color: inherit; }
.post-body strong { color: var(--accent); }

/* ---------- ICONS ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .hero-lead { grid-column: 1 / 13; }
  .hero-aside { grid-column: 1 / 13; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 24px; }
  .service { grid-column: span 12; }
  .service:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .service:first-child { border-top: 2px solid var(--ink); }
  .metric { grid-column: span 6; border-left: 0; border-top: 1px solid rgba(243,241,236,0.22); }
  .metric:first-child, .metric:nth-child(2) { border-top: 0; }
  .certs-badges { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .exp-item { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .exp-when { margin-bottom: 4px; }
  .wu-card { grid-column: 1 / 13; }
  .post-card { grid-column: span 6; }
  .contact-lead { grid-column: 1 / 13; }
  .contact-links { grid-column: 1 / 13; }
  .footer-brand, .footer-note, .footer-top { grid-column: 1 / 13; justify-self: start; }
  .statement-body, .statement-tags { grid-column: 1 / 13; }
  .statement-rule { display: none; }
  .about-lead { grid-column: 1 / 13; }
  .about-body { grid-column: 1 / 13; }
  .case-card { grid-column: span 12; }
  .tools-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; grid-column: 11 / 13; justify-self: end; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--ink); color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 8px 12px; cursor: pointer; }
  .theme-toggle { display: none; }
  .header-grid.open .nav { display: flex; grid-column: 1 / 13; order: 3; flex-wrap: wrap; gap: 14px 18px; padding-top: 14px; }
  .brand { grid-column: 1 / 8; }
  .hero-title { font-size: clamp(34px, 10.5vw, 44px); }
  .project-card { grid-column: 1 / 13; }
  .certs-badges { grid-template-columns: 1fr; }
  .post-card { grid-column: 1 / 13; }
  .tools-wrap { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section--statement { padding: 70px 0; }
  .section--trust { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .progress, .theme-toggle, .nav, .hero-cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .section--alt, .section--impact, .section--contact { background: #fff; color: #000; }
}
