:root {
  /* Shared shell; sky accent = consulting / personal site gilding */
  --bg: #0c0f14;
  --bg-alt: #121822;
  --text: #e8ecf1;
  --muted: #9aa3b2;
  --accent: #6eb5ff;
  --accent-dim: #4a8fd4;
  --border: #1e2636;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
  --max: 68rem;
  /* Align narrative blocks with article.prose (insights) */
  --narrow: 42rem;
  --section-pad-y: 2.75rem;
  --section-pad-y-lg: 3.25rem;
  --section-rule: rgba(110, 181, 255, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: var(--narrow);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

/* Logo + primary nav grouped on the right (wide); wraps under EGT on narrow viewports */
.header-primary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(110, 181, 255, 0.18), transparent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1rem;
}

.lede.subtle {
  font-size: 0.95rem;
  opacity: 0.9;
}

.section {
  padding: var(--section-pad-y) 0;
}

@media (min-width: 720px) {
  .section {
    padding: var(--section-pad-y-lg) 0;
  }
}

.section.alt {
  background: var(--bg-alt);
}

/* Homepage / long-form resume rhythm (prose-like measure) */
.resume-page .section .wrap.narrow > p,
.resume-page .section .wrap.narrow > ul,
.resume-page .section .wrap.narrow > blockquote,
.resume-page .section .wrap.narrow > dl {
  max-width: 100%;
}

.resume-page .section p {
  max-width: 65ch;
}

.resume-page .section .wrap:not(.narrow) > p.section-intro {
  max-width: 65ch;
}

.section-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 2px;
  background: var(--section-rule);
  border-radius: 1px;
}

.section-head .section-intro {
  margin-bottom: 0 !important;
}

.section-eyebrow {
  margin: 0 0 0.4rem;
}

.section h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--text);
}

.section .section-head > h2 {
  margin: 0 0 0.35rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.section-intro {
  margin-bottom: 1.75rem !important;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  background: var(--bg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--accent);
  margin-right: 0.35rem;
  margin-top: 0.15rem;
}

.inline-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.inline-list li {
  margin-bottom: 0.35rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-dim);
}

.contact {
  margin: 0;
}

.contact dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1rem;
}

.contact dt:first-child {
  margin-top: 0;
}

.contact dd {
  margin: 0.25rem 0 0;
}

.contact a {
  color: var(--accent);
}

.contact a:hover {
  color: #9ccfff;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Article / insights layout */
.article-shell {
  padding: 2rem 0 3rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

article.prose {
  max-width: 42rem;
  margin: 0 auto;
}

article.prose h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

article.prose .dek {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

article.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

article.prose h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

article.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

article.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

article.prose li {
  margin-bottom: 0.35rem;
}

article.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
}

article.prose a {
  color: var(--accent);
}

.cta-strip {
  max-width: 42rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.cta-strip--in-section {
  margin: 0;
  max-width: none;
}

.section.alt .cta-strip--in-section {
  background: var(--bg);
}

.cta-strip p {
  margin: 0;
  color: var(--text);
}

.cta-strip p + dl {
  margin-top: 1rem;
}

.cta-strip a {
  color: var(--accent);
  font-weight: 600;
}

.nav a.nav-contact {
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(110, 181, 255, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.nav a.nav-contact:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* In-content EasyGoin ecosystem (sibling sites + context; keeps contact primary) */
.egt-ecosystem-band {
  padding: 1.25rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.resume-page .egt-ecosystem-band {
  padding: 1rem 0 1.5rem;
}

.resume-page .egt-ecosystem p {
  max-width: 65ch;
}

.egt-ecosystem {
  margin: 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.egt-ecosystem-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.egt-ecosystem p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.egt-ecosystem p + p {
  margin-top: 0.75rem;
}

.egt-ecosystem a {
  color: var(--accent);
}

.egt-ecosystem strong {
  color: var(--text);
  font-weight: 600;
}

.egt-ecosystem--article {
  max-width: 42rem;
  margin: 2rem auto 0;
}

.egt-ecosystem--article p {
  font-size: 0.9rem;
}

article.prose .ecosystem-crosslink {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

article.prose .ecosystem-crosslink a {
  color: var(--accent);
}

.insights-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.insights-grid a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.insights-grid a:hover {
  border-color: var(--accent-dim);
  background: var(--bg);
}

.insights-grid .t {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.insights-grid .d {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 720px) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

/* —— Résumé / profile homepage —— */
.resume-hero {
  padding: 3rem 0 2.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(110, 181, 255, 0.18), transparent);
  border-bottom: 1px solid var(--border);
}

.resume-hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Tighter two-column hero from small tablets up (photo + intro) */
@media (min-width: 640px) {
  .resume-hero-inner {
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 1.75rem 2rem;
    align-items: start;
  }

  .resume-photo {
    justify-self: start;
  }

  .resume-photo img {
    width: min(100%, 12rem);
  }
}

@media (min-width: 880px) {
  .resume-hero-inner {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .resume-photo img {
    width: min(100%, 16rem);
  }
}

.resume-photo {
  justify-self: center;
}

.resume-photo img {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.resume-intro h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.resume-tagline {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.resume-hero-cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 52ch;
}

.resume-hero-cta-note a {
  color: var(--accent);
  font-weight: 500;
}

.resume-hero-cta-note a:hover {
  color: #9ccfff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn.primary {
  background: rgba(110, 181, 255, 0.16);
  border-color: rgba(110, 181, 255, 0.45);
  color: var(--text);
}

.btn.primary:hover {
  background: rgba(110, 181, 255, 0.26);
  color: #fff;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .timeline {
    gap: 1.35rem;
  }
}

/* Experience: native disclosure on narrow viewports; full cards on wide */
details.timeline-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: clip;
}

.timeline-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
}

.timeline-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.timeline-summary::-webkit-details-marker {
  display: none;
}

.timeline-summary::marker {
  content: "";
}

.timeline-body {
  padding: 0 1.25rem 1.2rem 1.25rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-body li {
  margin-bottom: 0.4rem;
}

.timeline-item:not([open]) .timeline-body {
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .timeline-summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.45rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
    justify-self: end;
    flex-shrink: 0;
  }

  .timeline-item[open] > .timeline-summary::after {
    transform: rotate(-135deg);
    margin-top: 0.55rem;
  }

  .timeline-item[open] > .timeline-summary {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }

  .timeline-item[open] .timeline-body {
    padding-top: 0.85rem;
    padding-bottom: 1.15rem;
  }
}

@media (min-width: 768px) {
  .timeline-summary {
    cursor: default;
    grid-template-columns: 1fr;
    padding: 1.35rem 1.5rem 0.25rem;
  }

  .timeline-summary::after {
    display: none;
  }

  .timeline-body {
    padding: 0 1.5rem 1.35rem;
  }

  .timeline-item[open] > .timeline-summary {
    border-bottom: none;
  }
}

.timeline-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.timeline-meta .contract {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-meta .org {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-meta .dates {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.skill-columns {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .skill-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-heading {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--text);
}

.skill-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.skill-list li {
  margin-bottom: 0.4rem;
}

.endorsement {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

.endorsement p {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.endorsement footer {
  font-size: 0.88rem;
  color: var(--muted);
}

.endorsement a {
  color: var(--accent);
}

.downloads {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.downloads a {
  color: var(--accent);
  font-weight: 600;
}

.small-print {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— EasyGoin family sites: merged into .site-header (single bar; no separate rail) —— */
.egt-site-switcher {
  position: relative;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.egt-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.egt-dropdown-toggle:hover,
.egt-site-switcher.is-open .egt-dropdown-toggle {
  color: var(--text);
  border-color: rgba(110, 181, 255, 0.35);
  background: rgba(110, 181, 255, 0.08);
}

.egt-dropdown-toggle:focus {
  outline: none;
}

.egt-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.egt-dropdown-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.15rem;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.egt-site-switcher.is-open .egt-dropdown-chevron {
  transform: rotate(180deg);
}

.egt-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 60;
  min-width: min(100vw - 2rem, 14rem);
  padding: 0.4rem 0;
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.egt-dropdown-menu[hidden] {
  display: none !important;
}

.egt-family-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.egt-family-links li {
  margin: 0;
}

.egt-family-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.egt-family-links a:hover {
  color: var(--text);
  background: rgba(110, 181, 255, 0.12);
}

body[data-egt-site] .egt-family-links a.is-egt-current,
body[data-egt-site] .egt-family-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: rgba(110, 181, 255, 0.14);
}

@media (max-width: 520px) {
  .egt-site-switcher {
    flex: 1 1 100%;
    width: 100%;
  }

  .egt-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .egt-dropdown-menu {
    left: 0;
    right: 0;
    min-width: unset;
    width: 100%;
  }

  .header-primary {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

/* —— CV page —— */
.cv-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.55em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-alt);
}

.cv-toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.cv-professional-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cv-toc-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cv-toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cv-toc a {
  color: var(--accent);
  text-decoration: none;
}

.cv-toc a:hover {
  text-decoration: underline;
}

.cv-chapter {
  margin-bottom: 2.25rem;
}

.cv-chapter h2 {
  margin-top: 0;
}

.cv-note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.cv-places-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cv-places-list li {
  margin-bottom: 0.35rem;
}

/* Insights: anonymized scenario footnote (case-style articles) */
.insight-scenario-note {
  margin: 1.25rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  border-left: 3px solid var(--accent-dim);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}

/* Shared professional identity line (homepage hero + CV masthead) */
.cv-role-line {
  margin: -0.35rem 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: -0.01em;
}

.cv-role-line .cv-role-meta {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Print / Save as PDF — single source from live HTML (see Downloads on homepage) */
@media print {
  :root {
    --bg: #ffffff;
    --bg-alt: #f3f5f8;
    --text: #12151c;
    --muted: #3d4553;
    --border: #c9d0dc;
    --accent: #0b5cab;
    --accent-dim: #084a8f;
  }

  body {
    background: var(--bg) !important;
  }

  .no-print,
  .site-header,
  .site-footer,
  .egt-ecosystem-band,
  .skip,
  .breadcrumb,
  .cta-strip,
  .resume-actions,
  .print-hide {
    display: none !important;
  }

  .site-header,
  .site-footer {
    border: none !important;
  }

  /* Drop sticky / blur for engines that still paint chrome */
  .site-header {
    position: static !important;
    backdrop-filter: none !important;
  }

  .resume-page,
  .article-shell {
    background: var(--bg) !important;
  }

  a {
    color: var(--accent) !important;
    text-decoration: underline;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }

  .timeline-item,
  .cv-chapter,
  .endorsement,
  .section-head {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #profile.resume-hero {
    break-after: avoid;
    page-break-after: avoid;
  }

  .cv-toc {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-footer {
    display: block !important;
    margin-top: 2rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--muted);
  }

  .insight-scenario-note {
    background: var(--bg-alt) !important;
    color: var(--muted) !important;
    border-left-color: var(--accent-dim) !important;
  }
}

.print-footer {
  display: none;
}

/* Button styled as text link (print trigger in downloads list) */
.link-button {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-dim);
}

.link-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Homepage print focus (public/print-focus.js) — hide checked sections on screen and in PDF */
body[data-pf-hide-ecosystem="1"] .egt-ecosystem-band,
body[data-pf-hide-projects="1"] #projects,
body[data-pf-hide-recognition="1"] #recognition,
body[data-pf-hide-stack="1"] #stack,
body[data-pf-hide-cvband="1"] #cv {
  display: none !important;
}

.print-focus-panel {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.print-focus-panel legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.print-focus-panel-intro {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.print-focus-checks {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.print-focus-checks li {
  margin-bottom: 0.45rem;
}

.print-focus-checks label {
  cursor: pointer;
  font-size: 0.92rem;
}

.print-focus-actions {
  margin: 1rem 0 0;
}

/* Dedicated letter-sized résumé sheet (/resume/) */
.resume-sheet-main {
  padding-bottom: 2.5rem;
}

body.resume-sheet-page .resume-sheet {
  max-width: 8.5in;
  margin: 0 auto 2rem;
  padding: 1.35rem 1.65rem 1.6rem;
  background: #eef1f8;
  color: #141a24;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
}

.resume-sheet h1 {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #0c1020;
}

.resume-sheet-tagline {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #1a5080;
  font-size: 1rem;
}

.resume-sheet-contact {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #3a4456;
}

.resume-sheet-contact a {
  color: #0b5cab;
}

.resume-sheet-note {
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 1.25rem;
}

.resume-sheet-note kbd {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border: 1px solid #bcc4d4;
  border-radius: 4px;
}

.resume-sheet-section {
  margin-bottom: 1.1rem;
}

.resume-sheet-section h2 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5a6578;
  border-bottom: 1px solid #c5ccda;
  padding-bottom: 0.2rem;
}

.resume-sheet-section p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #222933;
}

.resume-sheet-roles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-sheet-roles > li {
  margin-bottom: 0.85rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-sheet-roles h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  color: #101620;
}

.resume-sheet-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #556070;
}

.resume-sheet-roles ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #2a3344;
}

.resume-sheet-ctx {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5a6578;
}

.resume-sheet-columns {
  display: grid;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 540px) {
  .resume-sheet-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.resume-sheet-col h2 {
  margin: 0 0 0.35rem;
}

.resume-sheet-list {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.82rem;
  line-height: 1.38;
  color: #2a3344;
}

.resume-sheet-quote {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid #1a5080;
  background: #e4e9f2;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #222933;
}

.resume-sheet-quote footer {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #556070;
}

.resume-sheet-actions {
  margin-top: 1.5rem;
}

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }

  body.resume-sheet-page {
    font-size: 10.5pt;
    line-height: 1.35;
    background: #fff !important;
  }

  body.resume-sheet-page .resume-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    background: #fff !important;
    color: #000 !important;
  }

  body.resume-sheet-page .resume-sheet h1,
  body.resume-sheet-page .resume-sheet h2,
  body.resume-sheet-page .resume-sheet h3,
  body.resume-sheet-page .resume-sheet p,
  body.resume-sheet-page .resume-sheet li {
    color: #000 !important;
  }

  body.resume-sheet-page .resume-sheet-section h2 {
    border-bottom-color: #999 !important;
  }

  body.resume-sheet-page .resume-sheet-tagline {
    color: #222 !important;
  }

  body.resume-sheet-page .resume-sheet-quote {
    background: #f4f4f4 !important;
    border-left-color: #333 !important;
  }
}
