/* ==========================================================================
   Muhammad Faqih — application security portfolio
   Navy shell, white reading surfaces, restrained corporate blue.
   System sans by default; Georgia for the name.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --surface: #edf1f6;
  --surface-strong: #e1e7ef;
  --ink: #182438;
  --navy: #101e32;
  --navy-raised: #172b46;
  --on-dark: #f5f8fc;
  --on-dark-muted: #c1cedf;
  --on-dark-accent: #b5d0f6;
  --on-dark-line: #3b4c64;
  --accent: #2456a6;
  --accent-dark: #193f7b;
  --muted: #536176;
  --muted-strong: #3d4c62;
  --line: #d9e1eb;
  --line-strong: #b5c2d3;
  --fail: #a13535;
  --fail-bg: #fbecec;
  --pass: #286448;
  --pass-bg: #eaf3ee;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --shell: 1120px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* The header and footer are navy, so paint the browser canvas navy too:
     overscrolling past either edge then extends them instead of flashing
     the default white page behind the content. */
  background: var(--navy);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--paper);
  overscroll-behavior-y: none;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.cv-glance a:focus-visible,
.resume-aside a:focus-visible,
.lightbox button:focus-visible {
  outline-color: var(--on-dark-accent);
}
.report-card-primary:focus-visible,
.button-primary:focus-visible,
.filter.active:focus-visible {
  outline-color: var(--on-dark-accent);
  outline-offset: -3px;
}

.shell,
.container {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow,
.kicker,
.summary-label,
.glance-label,
.work-type,
.work-kind,
.report-card-label,
.status,
.prevnext-label {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.eyebrow { color: var(--accent); }
.kicker { color: var(--accent); }

.text-link,
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover,
.arrow-link:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
.arrow-link span { transition: transform .15s ease; }
.arrow-link:hover span { transform: translateX(2px); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-quiet { background: transparent; border-color: transparent; color: var(--accent); padding-inline: 2px; text-decoration: underline; text-underline-offset: 4px; }
.button-quiet:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Header and footer
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--on-dark-line);
  background: var(--navy);
  position: relative;
  z-index: 20;
}
.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 34px;
}
.brand { display: flex; flex-direction: column; justify-self: start; min-width: 0; }
.brand-name { color: var(--on-dark); font-size: 15px; font-weight: 650; letter-spacing: -.012em; }
.brand-role { color: var(--on-dark-muted); font-size: 11.5px; line-height: 1.4; margin-top: 1px; }
.primary-nav { display: flex; align-items: center; gap: 27px; font-size: 13.5px; }
.primary-nav a { color: var(--on-dark); line-height: 1.4; }
.primary-nav a:hover { color: var(--on-dark-accent); }
.primary-nav a[aria-current="location"] { color: var(--on-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--on-dark-accent); }
.primary-nav .nav-cv {
  padding: 7px 13px;
  border: 1px solid var(--on-dark);
  border-radius: 2px;
  background: var(--on-dark);
  color: var(--navy);
  font-weight: 650;
}
.primary-nav .nav-cv:hover { background: #dbe8fa; border-color: #dbe8fa; color: var(--navy); }
.primary-nav .nav-cv[aria-current="page"] { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch { display: flex; align-items: center; gap: 7px; color: var(--on-dark-line); font-size: 12px; font-weight: 600; }
.lang-switch a { color: var(--on-dark-muted); padding: 4px 1px; }
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a[aria-current="page"] { color: var(--on-dark); border-bottom: 1px solid var(--on-dark-accent); }

.site-footer { border-top: 1px solid var(--on-dark-line); background: var(--navy); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  color: var(--on-dark-muted);
  font-size: 12px;
}
.footer-note { color: var(--on-dark-muted); }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--on-dark-line); }
.footer-nav a:hover { color: var(--on-dark-accent); text-decoration-color: var(--on-dark-accent); }
.footer-link { display: inline-flex; gap: 4px; }

/* --------------------------------------------------------------------------
   Homepage: CV-first introduction
   -------------------------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  gap: 46px;
  padding: 34px 0 30px;
}
.intro-main { min-width: 0; }
.role-line {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .075em;
  line-height: 1.4;
  text-transform: uppercase;
}
.intro h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 4.6vw, 54px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 10px 0 0;
}
.value-prop {
  max-width: 560px;
  margin-top: 14px;
  font-size: clamp(21px, 2.1vw, 24px);
  font-weight: 560;
  letter-spacing: -.018em;
  line-height: 1.32;
}
.intro-profile { max-width: 570px; margin-top: 12px; color: var(--muted-strong); font-size: 14.5px; line-height: 1.65; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: 21px; }
.credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.credentials strong { color: var(--accent); font-weight: 700; }
.credentials span { color: var(--line-strong); }

.cv-glance {
  min-width: 0;
  padding: 24px;
  background: var(--navy);
  color: var(--on-dark);
}
.glance-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 6px;
}
.glance-head h2 { color: var(--on-dark); font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.glance-head .text-link { color: var(--on-dark-accent); font-size: 11.5px; flex: none; }
.glance-head .text-link:hover { color: var(--on-dark); }
.glance-timeline { border-top: 1px solid var(--on-dark-line); margin-top: 5px; }
.glance-role { padding: 11px 0 10px; border-bottom: 1px solid var(--on-dark-line); }
.glance-label { color: var(--on-dark-accent); margin-bottom: 5px; }
.glance-role h3 { color: var(--on-dark); font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.glance-org { color: var(--on-dark-muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.glance-date { color: var(--on-dark-muted); font-size: 11.5px; margin-top: 2px; }
.prior-fact {
  border-left: 2px solid var(--on-dark-accent);
  margin: 12px 0;
  padding: 1px 0 1px 11px;
}
.prior-fact .glance-label { margin-bottom: 3px; }
.prior-fact p:last-child { color: var(--on-dark-muted); font-size: 12.5px; line-height: 1.5; }
.glance-certs { padding-top: 9px; border-top: 1px solid var(--on-dark-line); }
.glance-certs h3 { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-accent); margin-bottom: 5px; }
.glance-certs ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.glance-certs li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--on-dark-line); padding: 3px 0; color: var(--on-dark); font-size: 11.5px; line-height: 1.55; }
.glance-certs li:nth-child(-n+2) { border-top: 0; }
.glance-certs li span:last-child { color: var(--on-dark-muted); }
.lab-note { color: var(--on-dark-muted); font-size: 10.8px; line-height: 1.5; margin-top: 9px; }

/* --------------------------------------------------------------------------
   Homepage: selected work
   -------------------------------------------------------------------------- */

.work-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 39px 0 48px;
  scroll-margin-top: 20px;
}
.work-section .section-heading h2,
.deliverables-head h2,
.contact-head h2 { color: var(--navy); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: clamp(27px, 2.7vw, 32px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-top: 4px;
}
.section-lead { max-width: 490px; justify-self: end; color: var(--muted-strong); font-size: 13.5px; line-height: 1.65; }
.work-list { border-top: 1px solid var(--line-strong); }
.work-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
.work-index { min-width: 0; }
.work-index-top { display: flex; align-items: center; gap: 10px; }
.ordinal { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.work-type { color: var(--accent); }
.work-index h3 { margin: 11px 0 3px; color: var(--navy); font-size: 27px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.work-index h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.work-kind { color: var(--muted); letter-spacing: .065em; }
.work-main { min-width: 0; }
.work-main h4 { max-width: 590px; color: var(--navy); font-size: 21.5px; font-weight: 620; letter-spacing: -.023em; line-height: 1.3; }
.work-facts { margin-top: 13px; }
.work-facts > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.work-facts dt { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .085em; line-height: 1.6; text-transform: uppercase; }
.work-facts dd { color: var(--muted-strong); font-size: 13px; line-height: 1.62; }
.work-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 13px; }
.work-artifact { min-width: 0; margin: 0; }
.artifact-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.artifact-image img { width: 100%; height: 100%; object-fit: contain; }
.artifact-image:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.work-artifact figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.work-artifact figcaption > span { text-transform: capitalize; }
.work-artifact figcaption a {
  color: var(--accent);
  font-size: 10.8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.architecture-mini {
  min-height: 180px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mini-label { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mini-flow { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.mini-flow li { position: relative; border: 1px solid var(--line); background: var(--paper); padding: 5px 8px; font-size: 10.8px; line-height: 1.4; text-align: center; }
.mini-flow li + li::before { content: "↓"; display: block; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px; background: var(--paper-raised); padding: 0 2px; }
.mini-control { border-top: 1px dashed var(--line-strong); margin-top: 2px; padding-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Homepage: deliverables and contact
   -------------------------------------------------------------------------- */

.deliverables { border-bottom: 1px solid var(--line); background: var(--paper); padding: 39px 0 42px; }
.deliverables-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 30px; align-items: start; }
.deliverables-head h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.deliverables-head p { max-width: 275px; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 7px; }
.deliverable { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.deliverable-index { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; }
.deliverable h3 { margin: 5px 0 5px; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.deliverable p { color: var(--muted-strong); font-size: 12.8px; line-height: 1.62; }

.contact-section { padding: 46px 0 54px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--surface); scroll-margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; }
.contact-head h2 { max-width: 500px; font-size: clamp(27px, 2.9vw, 34px); font-weight: 650; letter-spacing: -.035em; line-height: 1.16; margin-top: 4px; }
.contact-head p:last-child { max-width: 470px; color: var(--muted-strong); font-size: 13.5px; line-height: 1.65; margin-top: 9px; }
.contact-details { min-width: 0; }
.contact-email {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent-dark); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; margin-top: 15px; }
.upwork-note { max-width: 520px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Shared inner-page headings
   -------------------------------------------------------------------------- */

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--muted-strong); }

.detail-head { padding: 36px 0 26px; }
.detail-head h1,
.reader-header h1,
.evidence-head h1,
.resume-head h1 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.045em;
}
.detail-head h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.02; margin-top: 10px; }
.detail-intro { max-width: 700px; color: var(--muted-strong); font-size: 17px; line-height: 1.65; margin-top: 14px; }
.detail-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.detail-tech span { border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 8px; color: var(--muted-strong); font-size: 11px; line-height: 1.4; }

.section-title { margin-bottom: 19px; }
.section-title h2 { font-size: clamp(25px, 2.7vw, 30px); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; }
.section-title > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 13.5px; line-height: 1.65; margin-top: 7px; }
.light-count { color: var(--muted); font-size: 14px; font-weight: 400; }

/* --------------------------------------------------------------------------
   Assessment overview
   -------------------------------------------------------------------------- */

.assessment-page > .breadcrumb,
.project-page > .breadcrumb,
.resume-page > .breadcrumb,
.evidence-page > .breadcrumb,
.reader-page > .breadcrumb { padding-top: 27px; }

.assessment-summary,
.tool-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 40px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  background: var(--surface);
  padding: 22px 24px 24px;
}
.summary-heading .eyebrow { margin-bottom: 5px; }
.summary-heading h2 { color: var(--navy); font-size: 21px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.summary-grid { display: grid; grid-template-columns: 1.05fr 1fr 1.1fr; gap: 0; min-width: 0; }
.summary-item { min-width: 0; padding: 0 22px; border-left: 1px solid var(--line); }
.summary-item:first-child { padding-left: 0; border-left: 0; }
.summary-item:last-child { padding-right: 0; }
.summary-label { color: var(--accent); margin-bottom: 6px; }
.summary-item p:not(.summary-label) { color: var(--muted-strong); font-size: 12.8px; line-height: 1.62; }
.summary-item .summary-lead { color: var(--ink); font-size: 18px; font-weight: 620; letter-spacing: -.02em; line-height: 1.35; }

.page-jump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.page-jump > span { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-right: 4px; }
.page-jump a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-jump a:hover { color: var(--accent-dark); }

.report-section { padding: 33px 0 37px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.report-heading { max-width: 720px; }
.report-heading h2 { font-size: clamp(24px, 2.7vw, 29px); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; }
.report-heading p:last-child { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 6px; }
.report-cards { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.report-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-raised);
  padding: 14px 15px;
  transition: background .15s ease, border-color .15s ease;
}
.report-card:hover { border-color: var(--accent); background: var(--surface); }
.report-card-primary { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.report-card-primary:hover { background: var(--navy-raised); border-color: var(--navy-raised); }
.report-card-label { color: var(--muted); }
.report-card-primary .report-card-label,
.report-card-primary .report-card-meta { color: var(--on-dark-muted); }
.report-card-primary .report-card-title { color: var(--on-dark); }
.report-card-title { font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.report-card-meta { color: var(--muted); font-size: 11.5px; line-height: 1.45; }

.testcase-section { padding: 34px 0 39px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 0; }
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 430px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-raised);
}
.search-wrapper > span { color: var(--muted); font-size: 20px; line-height: 1; }
.search-wrapper input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-wrapper input::placeholder { color: var(--muted); opacity: 1; }
.search-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.filter-pills { display: flex; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.filter { min-height: 40px; border: 0; border-left: 1px solid var(--line); padding: 0 13px; background: var(--paper); color: var(--muted-strong); font-size: 11.5px; line-height: 1.3; }
.filter:first-child { border-left: 0; }
.filter:hover { background: var(--surface); }
.filter.active { background: var(--navy); color: var(--on-dark); }
.filter.active:hover { background: var(--navy); }
.test-table { border-top: 1px solid var(--line-strong); margin-top: 14px; }
.test-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 66px 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 6px 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.test-row:hover { background: var(--surface); }
.test-no { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.test-name { min-width: 0; }
.test-name strong { display: block; font-size: 14px; font-weight: 620; line-height: 1.45; }
.test-name > span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.test-status { justify-self: start; }
.test-arrow { justify-self: end; color: var(--muted); font-size: 15px; }
.status { display: inline-flex; align-items: center; border: 1px solid; border-radius: 2px; padding: 2px 5px; letter-spacing: .05em; }
.status-fail { color: var(--fail); border-color: #e0b4b4; background: var(--fail-bg); }
.status-pass { color: var(--pass); border-color: #a9cdb9; background: var(--pass-bg); }
.no-matches { padding: 22px 0; color: var(--muted); font-size: 13.5px; }

.gallery-section { padding: 33px 0 55px; scroll-margin-top: 18px; }
.gallery-heading { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.ui-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.ui-item { min-width: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-raised); padding: 0 0 8px; text-align: left; overflow: hidden; }
.ui-item img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--surface); }
.ui-item > span { display: block; padding: 6px 8px 0; color: var(--muted); font-size: 10.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-item:hover { border-color: var(--accent); }
.ui-item:hover img { outline: 2px solid var(--accent); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   Evidence pages
   -------------------------------------------------------------------------- */

.evidence-head { padding: 25px 0 22px; border-bottom: 1px solid var(--line); }
.evidence-head .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); }
.evidence-head h1 { max-width: 900px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 12px 0 9px; }
.evidence-head .lab-note,
.evidence-head > p.lab-note { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; margin: 0; }
.source-path { max-width: 100%; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 46px; padding: 30px 0 60px; align-items: start; }
.evidence-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--navy); background: var(--surface); padding: 16px; font-size: 12.5px; }
.evidence-sidebar .back-link { color: var(--accent); font-weight: 600; line-height: 1.5; padding-bottom: 13px; margin-bottom: 7px; border-bottom: 1px solid var(--line); }
.evidence-sidebar .eyebrow { color: var(--navy); margin-bottom: 2px; }
.evidence-sidebar > a:not(.back-link) { color: var(--muted-strong); line-height: 1.45; padding: 3px 0; }
.evidence-sidebar > a:not(.back-link):hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.evidence-content { min-width: 0; }
.evidence-section { margin-bottom: 42px; scroll-margin-top: 18px; }
.evidence-section:last-of-type { margin-bottom: 26px; }
.notes { border-top: 1px solid var(--line-strong); }
.note-entry { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.note-entry h3 { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .085em; line-height: 1.6; text-transform: uppercase; padding-top: 2px; }
.prewrap { color: var(--ink); font-size: 13.5px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.original-note { margin-top: 14px; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
.original-note summary { cursor: pointer; color: var(--accent); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.original-note pre { max-height: 500px; overflow: auto; margin-top: 13px; white-space: pre-wrap; overflow-wrap: anywhere; font: 11.5px/1.7 var(--mono); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence-img { margin: 0; }
.image-trigger { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper-raised); overflow: hidden; cursor: zoom-in; }
.image-trigger img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.image-trigger:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.view-overlay { position: absolute; right: 0; bottom: 0; padding: 5px 8px; background: var(--navy); color: var(--on-dark); font-size: 9.5px; letter-spacing: .05em; opacity: 0; transition: opacity .15s ease; }
.image-trigger:hover .view-overlay,
.image-trigger:focus-visible .view-overlay { opacity: 1; }
.evidence-img figcaption { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }
.captures { display: grid; gap: 18px; }
.capture { border: 1px solid var(--on-dark-line); border-radius: 2px; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.capture-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--on-dark-line); background: var(--navy-raised); color: var(--on-dark); font-size: 10.5px; line-height: 1.4; }
.capture-label small { color: var(--on-dark-muted); font-size: 10px; }
.mono { font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.raw-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raw { min-width: 0; }
.raw + .raw { border-left: 1px solid var(--on-dark-line); }
.raw header { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid var(--on-dark-line); background: var(--navy-raised); color: var(--on-dark); font-size: 10.5px; font-weight: 650; line-height: 1.4; }
.raw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--on-dark-accent); flex: none; }
.raw-dot.second { background: #7f9fc9; }
.raw pre { max-height: 360px; min-height: 90px; margin: 0; padding: 12px 13px; overflow: auto; white-space: pre; tab-size: 2; font: 11px/1.65 var(--mono); color: var(--on-dark); background: var(--navy); }
.capture-note { padding: 10px 12px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.capture .missing { border-color: var(--on-dark-line); color: var(--on-dark-muted); }

/* Screenshot annotation notes live on the white reading surface; the dark
   `.capture-note` rule above stays for HTTP captures only. */
.evidence-img > .capture-note {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-raised);
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Process records mount screenshots and prose inside the navy capture box. */
.process-capture .process-img figcaption { padding: 0 12px; color: var(--on-dark-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.process-body { display: grid; gap: 10px; padding: 14px 16px 16px; min-width: 0; }
.process-body h3 { color: var(--on-dark); font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; }
.process-body > .mono { color: var(--on-dark-muted); font-size: 11.5px; }
.process-body > .capture-note { padding: 0; border-top: 0; font-size: 12.5px; line-height: 1.6; }
.process-step { display: grid; gap: 6px; min-width: 0; text-align: left; }
.process-step h4 { color: var(--on-dark); font-size: 14px; font-weight: 620; line-height: 1.45; overflow-wrap: anywhere; }
.process-step pre {
  max-width: 100%;
  max-height: 350px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  font: 11.5px/1.65 var(--mono);
  color: var(--on-dark);
  background: var(--navy-raised);
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
}
.process-capture .quiet { color: var(--on-dark-muted) !important; line-height: 1.55; }
.process-capture p.missing { border-color: var(--on-dark-line); color: var(--on-dark-muted); }

/* Figure-side original-annotation disclosure (white reading surface). */
.original-annotation { display: grid; gap: 10px; min-width: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
.original-annotation summary { cursor: pointer; color: var(--accent); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.original-annotation .prewrap { color: var(--muted-strong); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.original-annotation p.mono { color: var(--muted-strong); font-size: 11.5px; }

/* Capture-side disclosures keep the navy context: source blocks stay readable. */
.capture .original-annotation { margin: 12px 16px 16px; border-color: var(--on-dark-line); background: var(--navy-raised); }
.capture .original-annotation summary { color: var(--on-dark-accent); }
.capture .original-annotation .prewrap, .capture .original-annotation p.mono { color: var(--on-dark-muted); }

/* Process source disclosure (always inside the navy capture box). */
.original-process {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0 16px 16px;
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
  background: var(--navy-raised);
  padding: 12px 14px;
}
.original-process > div:not(.prewrap) { display: grid; gap: 10px; min-width: 0; }
.original-process summary { cursor: pointer; color: var(--on-dark-accent); font-size: 12.5px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.original-process h4.original-title { color: var(--on-dark); font-size: 14px; font-weight: 620; line-height: 1.45; overflow-wrap: anywhere; }
.original-process p.mono { color: var(--on-dark-muted); font-size: 11.5px; overflow-wrap: anywhere; }
.original-process .prewrap { color: var(--on-dark-muted); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.original-process .prewrap p { color: var(--on-dark-muted); line-height: 1.6; }
.original-process pre {
  max-width: 100%;
  max-height: 350px;
  padding: 10px 12px;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  font: 11.5px/1.65 var(--mono);
  color: var(--on-dark);
  background: var(--navy);
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
}
.process-capture summary:focus-visible { outline-color: var(--on-dark-accent); }
.quiet { color: var(--muted) !important; font-size: 11.5px !important; }
.missing { border: 1px dashed var(--line-strong); border-radius: 2px; padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 17px; }
.prevnext > div:last-child { text-align: right; }
.prevnext-label { display: block; color: var(--muted); margin-bottom: 4px; }
.prevnext a { color: var(--accent); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.prevnext a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Burp-TCP case study
   -------------------------------------------------------------------------- */

.project-page { padding-bottom: 56px; }
.burp-head { padding-bottom: 22px; }
.tool-summary { margin-bottom: 31px; }
.architecture-section { border-bottom: 1px solid var(--line); padding: 30px 0 33px; }
.architecture-board { border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); border-radius: 2px; background: var(--surface); padding: 21px 22px 16px; }
.architecture-flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.architecture-flow li { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); padding: 13px 14px; }
.architecture-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.arch-index { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.architecture-flow strong { font-size: 15px; font-weight: 620; line-height: 1.35; }
.architecture-control { margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line-strong); color: var(--muted-strong); font-size: 11.5px; line-height: 1.5; text-align: center; }
.burp-story { border-bottom: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; padding: 25px 0 28px; border-top: 1px solid var(--line); }
.burp-story .story-row:first-child { border-top: 0; }
.story-row .eyebrow { margin-bottom: 5px; }
.story-row h2 { font-size: 25px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.story-row > p { color: var(--muted-strong); font-size: 14.5px; line-height: 1.72; padding-top: 2px; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 31px 0 39px; }
.capability-grid h2 { font-size: 25px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin: 4px 0 15px; }
.capabilities, .limits { list-style: none; border-top: 1px solid var(--line-strong); }
.capabilities li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.capabilities span { color: var(--accent); font-size: 10.5px; font-weight: 700; line-height: 1.8; }
.limits li { position: relative; padding: 11px 0 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 13.5px; line-height: 1.55; }
.limits li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.repo-feature { margin-top: 22px; padding: 17px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.repo-feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin: 4px 0 3px; }
.repo-feature p:not(.eyebrow) { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.repo-feature .button { margin-top: 13px; }

/* --------------------------------------------------------------------------
   Interactive report reader
   -------------------------------------------------------------------------- */

.reader-page { padding-bottom: 58px; }
.reader-header { padding: 29px 0 24px; border-bottom: 1px solid var(--line); }
.reader-header h1 { font-size: clamp(35px, 4.4vw, 48px); line-height: 1.08; margin-top: 10px; }
.report-subtitle { display: block; margin-top: 5px; color: var(--accent); font-size: clamp(18px, 2.1vw, 23px); font-weight: 500; letter-spacing: -.018em; line-height: 1.3; }
.reader-header .detail-intro { font-size: 14px; line-height: 1.65; max-width: 760px; margin-top: 10px; }
.reader-figures { display: flex; max-width: 620px; margin-top: 20px; border: 1px solid var(--line); border-top: 3px solid var(--navy); background: var(--surface); }
.reader-figures > div { display: flex; flex-direction: column; gap: 2px; width: 33.333%; padding: 11px 18px; border-right: 1px solid var(--line); }
.reader-figures > div:last-child { border-right: 0; }
.report-stat-number { color: var(--navy); font-size: 25px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.reader-figures > div > span:last-child { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.reader-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 44px; padding: 31px 0 0; align-items: start; }
.reader-sidebar { position: sticky; top: 20px; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--navy); background: var(--surface); padding: 16px; }
.reader-sidebar > .eyebrow { color: var(--navy); margin-bottom: 8px; }
.reader-toc-main { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 12px; line-height: 1.45; }
.reader-toc-main:hover { color: var(--accent); }
.reader-sidebar details { margin-top: 14px; }
.reader-sidebar summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.5; padding: 4px 0; }
.reader-toc-list { display: flex; flex-direction: column; max-height: 38vh; overflow: auto; margin-top: 5px; }
.reader-toc-list > a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 28px; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: 10.5px; line-height: 1.45; }
.reader-toc-list > a:hover { color: var(--accent); }
.toc-code { color: var(--muted); }
.toc-state { font-size: 9.5px; font-weight: 700; }
.toc-fail { color: var(--fail); }
.toc-pass { color: var(--pass); }
.reader-body { min-width: 0; }
.reader-section, .reader-original { border-top: 1px solid var(--line-strong); padding: 25px 0 35px; scroll-margin-top: 18px; }
.reader-chapter > span { display: block; color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; margin-bottom: 5px; }
.reader-chapter h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 9px; }
.reader-section > p, .reader-chapter > p { max-width: 720px; color: var(--muted-strong); font-size: 13.5px; line-height: 1.7; }
.reader-summary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 2px; background: var(--surface); margin-top: 16px; }
.reader-summary-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; }
.reader-summary-grid > div + div { border-left: 1px solid var(--line); }
.reader-summary-grid small { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-summary-grid strong { color: var(--navy); font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.reader-summary-grid span { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.reader-method { list-style: none; counter-reset: method; border-top: 1px solid var(--line); margin-top: 15px; }
.reader-method li { counter-increment: method; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 13px; line-height: 1.55; }
.reader-method li::before { content: counter(method, decimal-leading-zero); color: var(--accent); font-size: 10.5px; font-weight: 700; line-height: 1.9; }
.reader-findings { border-top: 1px solid var(--line-strong); margin-top: 15px; }
.reader-finding { padding: 21px 0 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.reader-finding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.reader-ordinal { color: var(--muted); font-size: 10.5px; }
.reader-finding h3 { font-size: 19px; font-weight: 640; letter-spacing: -.02em; line-height: 1.35; }
.reader-evidence-meta { color: var(--muted); font-size: 10.5px; line-height: 1.5; margin: 5px 0 10px; }
.reader-notes { border-top: 1px solid var(--line); }
.reader-notes .note-entry { grid-template-columns: 118px minmax(0, 1fr); padding: 9px 0; }
.reader-notes .note-entry h3 { font-size: 10px; color: var(--accent); }
.reader-notes .prewrap { font-size: 12.5px; line-height: 1.65; }
.reader-finding-actions { margin-top: 11px; }
.reader-finding-actions a { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; padding: 7px 10px; color: var(--accent); font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.reader-finding-actions a:hover { border-color: var(--accent); background: var(--surface); }
.pdf-embed { height: min(78vh, 900px); min-height: 520px; margin-top: 15px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.pdf-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.pdf-fallback { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.pdf-fallback a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pdf-note { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   CV
   -------------------------------------------------------------------------- */

.resume-head { padding: 24px 0 24px; border-bottom: 1px solid var(--line); }
.resume-head h1 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 48px); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; margin-top: 7px; }
.resume-role { color: var(--accent); font-size: 14px; font-weight: 650; line-height: 1.5; margin-top: 6px; }
.resume-intro { max-width: 760px; color: var(--muted-strong); font-size: 14px; line-height: 1.66; margin-top: 9px; }
.resume-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: 17px; }
.resume-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 52px; align-items: start; padding: 27px 0 55px; }
.resume-content { min-width: 0; }
.resume-section { border-top: 1px solid var(--line-strong); padding: 18px 0 25px; }
.resume-section:first-child { border-top: 0; padding-top: 0; }
.resume-section > h2,
.resume-aside h2 { font-size: 10.5px; font-weight: 700; letter-spacing: .095em; line-height: 1.5; text-transform: uppercase; }
.resume-section > h2 { color: var(--accent); margin-bottom: 11px; }
.resume-entry { display: grid; grid-template-columns: minmax(0, 1fr) 137px; gap: 18px; padding: 13px 0 15px; border-bottom: 1px solid var(--line); }
.resume-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.resume-entry:first-of-type { padding-top: 0; }
.resume-entry h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.018em; line-height: 1.35; }
.resume-org { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 2px 0 6px; }
.resume-date { color: var(--muted); font-size: 11.5px; line-height: 1.55; text-align: right; }
.resume-entry ul { margin: 0; padding-left: 17px; color: var(--muted-strong); }
.resume-entry li { font-size: 13.2px; line-height: 1.63; }
.resume-entry li + li { margin-top: 2px; }
.resume-entry li::marker { color: var(--line-strong); }
.resume-skills-full { display: grid; gap: 6px; color: var(--muted-strong); font-size: 13.2px; line-height: 1.62; }
.resume-skills-full strong { color: var(--ink); font-weight: 650; }
.resume-note { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.resume-aside { position: sticky; top: 20px; min-width: 0; background: var(--navy); color: var(--on-dark-muted); padding: 20px; }
.resume-aside section + section { margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--on-dark-line); }
.resume-aside h2 { color: var(--on-dark-accent); margin-bottom: 7px; }
.resume-aside p, .resume-aside li { color: var(--on-dark-muted); font-size: 12px; line-height: 1.62; overflow-wrap: anywhere; }
.resume-aside a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.resume-aside a:hover { color: var(--on-dark-accent); }
.aside-contact-email { font-size: 12.5px !important; font-weight: 650; }
.aside-note { color: var(--on-dark-muted) !important; font-size: 10.5px !important; line-height: 1.5 !important; margin-top: 6px; }
.credential-list { list-style: none; }
.credential-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--on-dark-line); }
.credential-list li:first-child { border-top: 0; padding-top: 0; }
.credential-list li span:last-child { color: var(--on-dark-muted); flex: none; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: max-content;
  max-width: 94vw;
  max-height: 92vh;
  padding: 44px 14px 12px;
  border: 1px solid var(--on-dark-line);
  border-radius: 2px;
  background: var(--navy);
  color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(6, 14, 26, .88); }
.lightbox img { max-width: 88vw; max-height: 72vh; object-fit: contain; }
.lightbox p { padding: 8px 4px 0; color: var(--on-dark-muted); font-size: 11.5px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.lightbox-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--on-dark); font-size: 11px; font-weight: 600; line-height: 1.4; }
.lightbox-close:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .intro { gap: 34px; }
  .cv-glance { padding: 22px; }
  .work-item { grid-template-columns: 145px minmax(0, 1fr) 210px; gap: 24px; }
  .deliverables-grid { grid-template-columns: 1.1fr 1fr 1fr; }
  .deliverables-head { grid-column: 1 / -1; }
  .deliverables-head p { max-width: 560px; }
  .report-cards { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .intro { display: block; padding: 28px 0 26px; }
  .intro h1 { font-size: clamp(39px, 6.8vw, 48px); }
  .cv-glance { margin-top: 22px; padding: 22px; }
  .glance-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 0; margin-top: 10px; }
  .glance-role { border-top: 1px solid var(--on-dark-line); border-bottom: 0; padding: 9px 0; }
  .prior-fact { margin-top: 5px; }
  .glance-certs ul { grid-template-columns: repeat(4, 1fr); }
  .glance-certs li { border-top: 0; }
  .work-item { grid-template-columns: 135px minmax(0, 1fr); }
  .work-artifact { grid-column: 2; max-width: 310px; margin-top: 15px; }
  .deliverables-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .report-cards { grid-template-columns: 1fr 1fr; }
  .report-card-primary { grid-column: 1 / -1; }
  .assessment-summary,
  .tool-summary { display: block; }
  .summary-heading { margin-bottom: 13px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-item { padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
  .summary-item:first-child { border-top: 0; padding-top: 0; }
  .summary-item .summary-lead { font-size: 17px; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; }
  .section-lead { justify-self: start; max-width: 620px; }
  .gallery-heading { grid-template-columns: 1fr; }
  .ui-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-layout { grid-template-columns: 1fr; gap: 20px; }
  .evidence-sidebar { position: static; flex-flow: row wrap; align-items: center; gap: 7px 15px; padding: 14px; }
  .evidence-sidebar .back-link { width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 3px; }
  .evidence-sidebar .eyebrow { display: none; }
  .reader-layout { grid-template-columns: 1fr; gap: 23px; }
  .reader-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 14px; }
  .reader-sidebar > .eyebrow { grid-column: 1 / -1; }
  .reader-sidebar details { grid-column: 1 / -1; margin-top: 5px; }
  .reader-toc-main { border-bottom: 1px solid var(--line); }
  .capability-grid { grid-template-columns: 1fr; gap: 28px; }
  .resume-layout { grid-template-columns: 1fr; gap: 28px; }
  .resume-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 20px; }
  .resume-aside section + section { margin-top: 0; padding-top: 0; border-top: 0; }
  .resume-aside > .aside-note { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0 13px;
    min-height: 0;
    padding-top: 8px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-name { font-size: 14px; }
  .brand-role { display: none; }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--on-dark-line);
    font-size: 13px;
  }
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    line-height: 1.3;
  }
  .primary-nav a:first-child { justify-self: start; }
  .primary-nav .nav-cv { justify-self: center; margin: 0; padding: 6px 11px; font-size: 13px; }
  .primary-nav a:last-child { justify-self: end; }
  .lang-switch { grid-column: 2; grid-row: 1; gap: 5px; font-size: 11.5px; }
  .intro { padding: 25px 0 24px; }
  .intro h1 { font-size: 38px; }
  .value-prop { font-size: 21px; line-height: 1.32; }
  .intro-profile { font-size: 14px; }
  .intro-actions { align-items: stretch; }
  .button { min-height: 44px; }
  .intro-actions .button-quiet { justify-content: flex-start; min-height: 34px; }
  .credentials { margin-top: 11px; font-size: 11.5px; }
  .cv-glance { margin-top: 20px; }
  .glance-head h2 { font-size: 18px; }
  .glance-timeline { display: block; }
  .glance-role { border-bottom: 1px solid var(--on-dark-line); }
  .glance-role + .glance-role { border-top: 0; }
  .glance-certs ul { grid-template-columns: 1fr 1fr; }
  .glance-certs li:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
  .lab-note { font-size: 10.5px; }
  .section-heading { margin-bottom: 17px; }
  .work-section { padding: 29px 0 38px; }
  .work-item { display: block; padding: 22px 0 24px; }
  .work-index-top { gap: 13px; }
  .work-index h3 { margin-top: 7px; }
  .work-main { margin-top: 14px; }
  .work-main h4 { font-size: 20px; }
  .work-facts > div { grid-template-columns: 75px minmax(0, 1fr); gap: 10px; }
  .work-artifact { max-width: 100%; margin-top: 13px; }
  .artifact-image { aspect-ratio: 16 / 9; }
  .architecture-mini { min-height: 0; }
  .mini-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 4px; }
  .mini-flow li + li::before { content: "→"; top: 50%; left: -8px; transform: translateY(-50%); padding: 0; }
  .deliverables { padding: 28px 0 31px; }
  .deliverables-grid { grid-template-columns: 1fr; gap: 16px; }
  .deliverables-head { grid-column: auto; }
  .deliverable { padding-top: 8px; }
  .contact-section { padding: 32px 0 38px; }
  .contact-grid { gap: 17px; }
  .contact-email { font-size: 20px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 7px 15px; padding: 17px 0; font-size: 11px; }
  .footer-note { grid-column: 1 / -1; grid-row: 2; }
  .footer-nav { grid-column: 2; grid-row: 1; gap: 12px; justify-content: flex-end; }
  .detail-head { padding: 26px 0 20px; }
  .detail-head h1 { font-size: 40px; }
  .detail-intro { font-size: 15px; }
  .assessment-summary,
  .tool-summary { padding: 17px 18px 19px; }
  .summary-heading h2 { font-size: 19px; }
  .page-jump { gap: 7px 14px; font-size: 11.5px; }
  .report-section { padding: 25px 0 28px; }
  .report-cards { grid-template-columns: 1fr; }
  .report-card-primary { grid-column: auto; }
  .testcase-section { padding: 26px 0 29px; }
  .filterbar { display: block; }
  .search-wrapper { max-width: none; }
  .filter-pills { margin-top: 9px; }
  .filter { flex: 1; min-height: 37px; padding-inline: 8px; font-size: 10.5px; }
  .test-row { grid-template-columns: 27px minmax(0, 1fr) 53px; gap: 9px; padding: 12px 0; }
  .test-arrow { display: none; }
  .test-name strong { font-size: 13px; }
  .test-name > span { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .status { font-size: 9px; padding: 2px 4px; }
  .gallery-section { padding: 25px 0 37px; }
  .ui-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ui-item img { aspect-ratio: 16 / 10; }
  .evidence-page > .breadcrumb { padding-top: 19px; }
  .evidence-head { padding: 19px 0 17px; }
  .evidence-head h1 { font-size: 30px; }
  .evidence-layout { padding: 21px 0 38px; }
  .evidence-section { margin-bottom: 30px; }
  .notes .note-entry { display: block; padding: 11px 0; }
  .note-entry h3 { margin-bottom: 4px; }
  .prewrap { font-size: 13px; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 13px; }
  .raw-columns { grid-template-columns: 1fr; }
  .raw + .raw { border-left: 0; border-top: 1px solid var(--on-dark-line); }
  .raw pre { max-height: 320px; }
  .prevnext { grid-template-columns: 1fr; gap: 9px; }
  .prevnext > div:last-child { text-align: left; }
  .story-row { display: block; padding: 19px 0 21px; }
  .story-row h2 { font-size: 22px; margin-bottom: 8px; }
  .story-row > p { font-size: 13.5px; }
  .architecture-section { padding: 23px 0 25px; }
  .architecture-board { padding: 14px; }
  .architecture-flow { grid-template-columns: 1fr; gap: 21px; }
  .architecture-flow li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -21px; transform: translateX(50%); }
  .architecture-control { text-align: left; }
  .capability-grid { padding: 24px 0 29px; }
  .repo-feature { padding: 14px; }
  .reader-page > .breadcrumb { padding-top: 19px; }
  .reader-header { padding: 21px 0 18px; }
  .reader-header h1 { font-size: 34px; }
  .report-subtitle { font-size: 18px; }
  .reader-header .detail-intro { font-size: 13px; }
  .reader-figures { margin-top: 15px; }
  .reader-figures > div { padding: 9px 10px; }
  .report-stat-number { font-size: 22px; }
  .reader-layout { padding-top: 23px; }
  .reader-section, .reader-original { padding: 20px 0 25px; }
  .reader-chapter h2 { font-size: 23px; }
  .reader-summary-grid { display: block; }
  .reader-summary-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .reader-notes .note-entry { display: block; }
  .reader-notes .note-entry h3 { margin-bottom: 3px; }
  .reader-finding h3 { font-size: 18px; }
  .pdf-embed { min-height: 430px; height: 62vh; }
  .resume-head { padding: 19px 0 18px; }
  .resume-head h1 { font-size: 38px; }
  .resume-toolbar { gap: 8px 14px; }
  .resume-layout { padding: 21px 0 38px; }
  .resume-entry { display: block; padding: 12px 0 14px; }
  .resume-date { text-align: left; margin-bottom: 5px; }
  .resume-entry-main h3 { margin-top: 2px; }
  .resume-aside { display: block; }
  .resume-aside section + section { margin-top: 18px; padding-top: 11px; border-top: 1px solid var(--on-dark-line); }
  .lightbox { padding-top: 41px; }
}

@media (max-width: 440px) {
  .brand-name { font-size: 13.5px; }
  .primary-nav .nav-cv { padding: 5px 9px; font-size: 12.5px; }
  .lang-switch { font-size: 11px; gap: 4px; }
  .intro h1 { font-size: 36px; }
  .value-prop { font-size: 20px; }
  .contact-links { display: grid; justify-items: start; gap: 8px; }
  .glance-certs ul { column-gap: 13px; }
  .work-main h4 { font-size: 19px; }
  .work-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .work-links { gap: 8px 14px; }
  .test-row { grid-template-columns: 24px minmax(0, 1fr) 49px; gap: 7px; }
  .test-name > span { -webkit-line-clamp: 1; }
  .filter { font-size: 10px; }
  .ui-item > span { font-size: 9.5px; padding-inline: 6px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .footer-note { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* --------------------------------------------------------------------------
   Print: clean CV/resume output
   -------------------------------------------------------------------------- */

@media print {
  @page { size: A4; margin: 13mm; }
  :root { --paper: #fff; --paper-raised: #fff; --surface: #fff; --surface-strong: #fff; --ink: #111; --muted: #444; --muted-strong: #222; --line: #bbb; --line-strong: #999; --navy: #fff; --navy-raised: #fff; --on-dark: #111; --on-dark-muted: #333; --on-dark-accent: #1c3a5a; --on-dark-line: #bbb; --accent: #1c3a5a; --accent-dark: #111; }
  html, body { background: #fff; }
  body { color: #111; font-size: 10pt; line-height: 1.45; }
  .site-header,
  .site-footer,
  .skip,
  .resume-toolbar,
  .breadcrumb,
  .lightbox { display: none !important; }
  .shell,
  .container { width: 100%; max-width: none; margin: 0; }
  .resume-page { padding: 0; }
  .resume-head { padding: 0 0 9pt; border-bottom: 1px solid #999; }
  .resume-head h1 { font-size: 25pt; margin-top: 2pt; }
  .resume-role { font-size: 10pt; margin-top: 3pt; }
  .resume-intro { max-width: none; font-size: 9pt; line-height: 1.45; margin-top: 5pt; }
  .resume-layout { display: grid; grid-template-columns: minmax(0, 1fr) 175px; gap: 16pt; padding: 10pt 0 0; }
  .resume-section { border-top: 1px solid #bbb; padding: 8pt 0 10pt; break-inside: avoid; }
  .resume-section:first-child { border-top: 0; padding-top: 0; }
  .resume-section > h2,
  .resume-aside h2 { color: #1c3a5a; font-size: 8pt; letter-spacing: .08em; }
  .resume-section > h2 { margin-bottom: 5pt; }
  .resume-entry { grid-template-columns: minmax(0, 1fr) 92px; gap: 9pt; padding: 6pt 0 7pt; break-inside: avoid; }
  .resume-entry h3 { font-size: 10pt; }
  .resume-org, .resume-date { font-size: 8pt; }
  .resume-entry li, .resume-skills-full { font-size: 8.5pt; line-height: 1.42; }
  .resume-entry ul { padding-left: 12pt; }
  .resume-note { font-size: 7.5pt; }
  .resume-aside { position: static; display: block; background: #fff !important; color: #111 !important; border: 0; border-top: 1px solid #999; padding: 7pt 0 0; }
  .resume-aside section + section { margin-top: 10pt; padding-top: 6pt; border-top: 1px solid #bbb; }
  .resume-aside p, .resume-aside li, .resume-aside a { color: #222 !important; }
  .resume-aside p, .resume-aside li { font-size: 8pt; line-height: 1.45; }
  .credential-list li { border-top: 1px solid #bbb !important; }
  .cv-glance, .report-card-primary, .capture { background: #fff !important; color: #111 !important; }
  .aside-contact-email { font-size: 8.5pt !important; }
  .aside-note { font-size: 7.5pt !important; }
  .resume-page a { color: inherit; text-decoration: none; }
  .reader-layout { display: block; }
  .reader-header { padding: 0 0 10pt; }
  .reader-sidebar, .pdf-embed, .pdf-fallback, .reader-finding-actions { display: none !important; }
}
