/* ==========================================================================
   Harshitha Kalluri · Data Governance Consultant
   Navy and white, with a sky-blue accent and teal for "passing" states.
   ========================================================================== */

:root {
  --navy-950: #061630;
  --navy-900: #0b2447;
  --navy-800: #12325e;
  --navy-700: #19447c;
  --navy-600: #24589c;
  --sky: #5cc8ff;
  --sky-soft: #e6f4ff;
  --azure: #1f6fd1;
  --pass: #0f9f8f;
  --pass-soft: #e3f6f3;

  --white: #ffffff;
  --tint: #f4f7fb;
  --line: #e2e8f1;
  --line-strong: #cdd7e5;
  --text: #0b2447;
  --text-soft: #34496a;
  --muted: #62738f;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 71, 0.06), 0 2px 8px -2px rgba(11, 36, 71, 0.06);
  --shadow-lg: 0 2px 4px rgba(6, 22, 48, 0.08), 0 24px 60px -20px rgba(6, 22, 48, 0.45);

  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky); color: var(--navy-950); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: var(--white); font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(11, 36, 71, 0.25); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark rect { fill: var(--navy-900); }
.brand-mark path { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; }
.brand-mark circle { fill: var(--white); }
.brand-mark .brand-node { fill: var(--sky); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 8px 12px;
  font-size: 0.93rem; font-weight: 600; color: var(--text-soft); text-decoration: none;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--azure); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover { color: var(--navy-900); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy-900); }
.nav a.nav-cta {
  margin-left: 10px; padding: 9px 16px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: var(--white);
  transition: background-color 0.2s ease;
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--navy-700); }

.menu-toggle {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy-900); cursor: pointer;
}
.menu-toggle span { grid-area: 1 / 1; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 0.97rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--sky); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.icon-link {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-sm);
  color: var(--white); transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-link:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-pass { background: var(--pass-soft); color: var(--pass); }
.badge-live { background: var(--sky-soft); color: var(--azure); }
.badge-live i { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(92, 200, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at -5% 110%, rgba(15, 159, 143, 0.16), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
}

.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(36px, 6vw, 80px); align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hl { position: relative; color: var(--sky); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.12em; border-radius: 4px;
  background: linear-gradient(90deg, var(--sky), rgba(92, 200, 255, 0));
}

.hero-lede { margin-top: 24px; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, 0.78); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

.hero-orgs { margin-top: 34px; font-size: 0.95rem; font-weight: 600; color: var(--white); }
.hero-orgs span { margin-right: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hero-orgs i { margin: 0 12px; font-style: normal; color: rgba(255, 255, 255, 0.35); }

/* Catalogue record card */

.record { background: var(--white); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.record-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--tint); border-bottom: 1px solid var(--line);
}
.record-type { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.record-type svg { width: 16px; height: 16px; fill: none; stroke: var(--azure); stroke-width: 1.7; }
.record-body { padding: 22px 22px 24px; }
.record-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.record-role { margin-top: 2px; font-size: 0.95rem; font-weight: 600; color: var(--azure); }

.record-fields { margin-top: 18px; border-top: 1px solid var(--line); }
.record-fields div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.record-fields dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
.record-fields dd { font-size: 0.92rem; font-weight: 500; line-height: 1.5; }
.record-fields b { color: var(--azure); font-weight: 600; margin: 0 2px; }

.record-label { margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.checks { margin-top: 10px; display: grid; gap: 8px; }
.checks li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.check-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--pass-soft); position: relative; }
.check-ico::after {
  content: ""; position: absolute; left: 7.5px; top: 5px; width: 5px; height: 9px;
  border: solid var(--pass); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-name { font-size: 0.88rem; line-height: 1.35; color: var(--text-soft); }
.checks strong { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--navy-900); }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure); }
.section-head h2, .contact h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.section-lede { margin-top: 16px; font-size: 1.08rem; color: var(--text-soft); }

/* What I do */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--navy-900); transform: scaleX(0.18); transform-origin: left; transition: transform 0.35s ease, background-color 0.35s ease;
}
.service:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.service:hover::before { transform: scaleX(1); background: var(--azure); }
.service-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-900); }
.service-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 20px; font-size: 1.16rem; font-weight: 700; }
.service p { margin-top: 10px; font-size: 0.97rem; line-height: 1.6; color: var(--text-soft); }

/* Experience timeline */

.timeline { position: relative; display: grid; gap: 22px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--navy-900), var(--line-strong)); border-radius: 2px; }
.role { position: relative; }
.role-node {
  position: absolute; left: -36px; top: 28px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy-900);
}
.role-node.is-current { background: var(--navy-900); box-shadow: 0 0 0 5px rgba(92, 200, 255, 0.35); }
.role-node.is-current::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--sky); }
.role-card { padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.role-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.role h3 { font-size: 1.25rem; font-weight: 800; }
.role-org { font-weight: 600; color: var(--azure); }
.role-meta { margin-top: 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.role-summary { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--sky); border-radius: 0 8px 8px 0; background: var(--sky-soft); font-size: 0.98rem; font-weight: 500; color: var(--navy-800); }
.role-points { margin-top: 16px; display: grid; gap: 10px; }
.role-points li { position: relative; padding-left: 22px; font-size: 0.98rem; line-height: 1.65; color: var(--text-soft); }
.role-points li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--navy-700); transform: rotate(45deg); }
.role .tags { margin-top: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 11px; border-radius: 8px;
  background: var(--tint); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--navy-800);
}

/* Casework / issue log */

.issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.issue {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.issue:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.issue-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--navy-900); color: var(--white); }
.issue-id { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--sky); }
.issue-area { margin-right: auto; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.issue-head .badge-pass { background: rgba(15, 159, 143, 0.18); color: #5fe0cf; }
.issue h3 { padding: 22px 24px 0; font-size: 1.22rem; font-weight: 800; }
.issue-fields { display: grid; gap: 12px; padding: 16px 24px 24px; flex: 1; align-content: start; }
.issue-fields div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.issue-fields dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 4px; }
.issue-fields dd { font-size: 0.96rem; line-height: 1.6; color: var(--text-soft); }
.issue-impact { margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--pass-soft); }
.issue-impact dt { color: var(--pass); }
.issue-impact dd { color: var(--navy-900); font-weight: 700; }

/* Toolkit dictionary */

.dictionary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.dict-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; padding: 20px 26px; border-top: 1px solid var(--line); }
.dict-row:first-child { border-top: 0; }
.dict-row:hover { background: #fafcfe; }
.dict-term { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.02rem; }
.dict-code {
  display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 6px; border-radius: 6px;
  background: var(--navy-900); color: var(--sky);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
}
.dict-row .tags li { background: var(--white); }

/* Credentials */

.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cert {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px 20px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.cert::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 10.5px, transparent 11px);
  mask: radial-gradient(circle at 50% 50%, #000 10.5px, transparent 11px);
}
.cert::after {
  content: ""; position: absolute; left: 28px; top: 27px; width: 5px; height: 9px;
  border: solid var(--sky); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cert-issuer { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cert-name { font-size: 1rem; font-weight: 700; line-height: 1.35; }

.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(40px, 5vw, 56px); }
.cred-block h3 { padding-bottom: 12px; border-bottom: 2px solid var(--navy-900); font-size: 1.1rem; font-weight: 800; }
.cred-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred-list strong { font-weight: 700; line-height: 1.4; }
.cred-list span { font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); }

/* Contact */

.contact { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: clamp(72px, 10vw, 112px) 0; }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact h2 { max-width: 20ch; color: var(--white); }
.contact-lede { margin-top: 18px; max-width: 48ch; font-size: 1.08rem; color: rgba(255, 255, 255, 0.75); }

.contact-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.contact-row {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--white);
  font-weight: 600; font-size: 0.98rem; word-break: break-word;
  transition: background-color 0.2s ease;
}
a.contact-row:hover { background: rgba(255, 255, 255, 0.08); }
.contact-row small { display: block; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.contact-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); }
.contact-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-ico svg .fill { fill: var(--navy-900); stroke: none; }
.contact-card .btn { margin-top: 4px; }

/* Footer */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 0.88rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1040px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .record { max-width: 560px; }
  .services, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid .cred-block:last-child { grid-column: 1 / -1; }
  .dict-row { grid-template-columns: 220px 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -20px rgba(11, 36, 71, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 12px; font-size: 1rem; border-radius: 8px; }
  .nav a::after { left: 12px; right: auto; width: 24px; bottom: 6px; }
  .nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .issues { grid-template-columns: 1fr; }
  .dict-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .services, .certs, .cred-grid { grid-template-columns: 1fr; }
  .hero-actions { display: grid; grid-template-columns: 1fr 48px; }
  .hero-actions .btn-light { grid-column: 1; grid-row: 1; }
  .hero-actions .icon-link { grid-column: 2; grid-row: 1; }
  .hero-actions .btn-outline-light { grid-column: 1 / -1; }
  .hero-orgs i { margin: 0 8px; }
  .record-body { padding: 18px 16px 18px; }
  .record-head { padding: 12px 16px; }
  .record-fields div { grid-template-columns: 1fr; gap: 2px; }
  .checks li { grid-template-columns: 22px 1fr; }
  .checks strong { grid-column: 2; }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 6px; }
  .role-node { left: -26px; width: 16px; height: 16px; }
  .role-node.is-current::after { inset: 3px; }
  .role-card { padding: 20px 18px 22px; }
  .role-top { flex-direction: column-reverse; gap: 10px; }
  .issue-head { padding: 12px 18px; flex-wrap: wrap; }
  .issue h3 { padding: 18px 18px 0; }
  .issue-fields { padding: 14px 18px 20px; }
  .issue-fields div { grid-template-columns: 1fr; gap: 2px; }
  .dict-row { padding: 18px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-bg, .contact .hero-bg { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
