/* Contrast and readability refinement — v3.
   Intentionally loaded AFTER styles.css and themes.css, so that both appearances
   have readable body text, meaningful secondary text, and an accessible hierarchy.
   Illustrations are conceptual and deliberately do not contain any client data. */
:root {
  --text: #f5f9ff;
  --muted: #c9d6e7;
  --dim: #aebed3;
  --body-copy: #c9d6e7;
  --metadata: #bbcbdf;
}
:root[data-theme="light"] {
  --text: #102339;
  --muted: #354d66;
  --dim: #49617d;
  --body-copy: #374f69;
  --metadata: #46607c;
}
body { font-size: 16px; line-height: 1.72; }
.text-muted { color: #b6c7dc; }
:root[data-theme="light"] .text-muted { color: #506680; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .095em; }
.micro-label { font-size: 10px; color: var(--metadata); letter-spacing: .065em; }
.section-no { color: var(--dim); }
.button { font-size: 14px; min-height: 50px; }
.text-link { font-size: 14px; font-weight: 600; }

/* Navigation and exact positioning tagline. */
.brand-name { font-size: 13px; letter-spacing: .075em; }
.brand-name > span { font-size: 10px; font-weight: 500; letter-spacing: .005em; color: #c6d6e9; margin-top: 4px; white-space: nowrap; }
.desktop-nav a { font-size: 14px; font-weight: 500; color: #c0d0e0; }
.nav-cta { font-size: 13px; font-weight: 600; }
:root[data-theme="light"] .brand-name > span { color: #39566e; }
:root[data-theme="light"] .desktop-nav a { color: #2c455c; }
:root[data-theme="light"] .desktop-nav a:hover,
:root[data-theme="light"] .desktop-nav a[aria-current="location"] { color: #092d24; }

/* Hero: clear business focus and readable explanatory text. */
.hero-eyebrow { display: inline-flex; width: fit-content; padding: 9px 13px; margin-bottom: 24px;
  font-family: var(--font); font-size: 12px; font-weight: 750; letter-spacing: .045em;
  color: #b4ffe4; background: #0f2725; border: 1px solid #326454; border-radius: 7px; }
.hero-intro { font-size: 19px; color: #e1e9f3; line-height: 1.65; }
.hero-intro strong { color: #fff; font-weight: 650; }
.hero-detail { font-size: 16px; color: #c0cfe0; line-height: 1.8; max-width: 515px; }
.hero-context { font-size: 13px; color: #b9c9db; }
.hero-context strong { color: #e8f0fb; }
.hero-bottom { font-size: 11px; letter-spacing: .075em; color: #b4c6d8; }
.hero-bottom a { color: #d6e4f2; }
.visual-caption { font-size: 10px; letter-spacing: .08em; color: #b5c5d9; }
:root[data-theme="light"] .hero-eyebrow { color: #075943; background: #e3f6ec; border-color: #9ccdb7; }
:root[data-theme="light"] .hero-intro { color: #29415d; }
:root[data-theme="light"] .hero-intro strong { color: #102d42; }
:root[data-theme="light"] .hero-detail { color: #3e5671; }
:root[data-theme="light"] .hero-context { color: #415c73; }
:root[data-theme="light"] .hero-context strong { color: #233f54; }
:root[data-theme="light"] .hero-bottom { color: #4b637c; }
:root[data-theme="light"] .hero-bottom a { color: #305b56; }
:root[data-theme="light"] .visual-caption { color: #4a6579; }

/* Illustration labels, which previously fell below legible font sizes. */
.lab-topline { font-size: 10px; letter-spacing: .075em; color: #e1e9f4; }
.lab-topline .lab-version { font-size: 9px; color: #bbcbe0; }
.lab-stage .micro-label { font-size: 9px; color: #bfe3d3; }
.lab-stage strong { font-size: 13px; }
.lab-stage small { font-size: 10px; color: #c7e2db; }
.core-caption strong { font-size: 16px; }
.core-caption > span { font-size: 9px; letter-spacing: .065em; color: #c3c8e5; }
.branch strong { font-size: 11px; text-align: center; }
.branch > span { font-size: 10px; color: #c2cfe1; }
.lab-footer { font-size: 9px; letter-spacing: .025em; color: #c5e0d5; }
.lab-footer .lab-footnote { font-size: 9px; color: #b9c9db; }
.floating-proof small { font-size: 11px; color: #c0d7d0; }
.floating-proof strong > span { font-size: 11px; color: #cce0dc; }
:root[data-theme="light"] .lab-topline { color: #27475e; }
:root[data-theme="light"] .lab-topline .lab-version { color: #47617b; }
:root[data-theme="light"] .lab-stage .micro-label { color: #26644c; }
:root[data-theme="light"] .lab-stage small { color: #2c6555; }
:root[data-theme="light"] .core-caption > span,
:root[data-theme="light"] .core-side-label { color: #3a5674; }
:root[data-theme="light"] .branch > span { color: #43617b; }
:root[data-theme="light"] .lab-footer { color: #315946; }
:root[data-theme="light"] .lab-footer .lab-footnote { color: #486177; }
:root[data-theme="light"] .floating-proof small,
:root[data-theme="light"] .floating-proof strong > span { color: #365e52; }

/* Outcomes and section headings. */
.impact-item p { font-size: 14px; color: #c5d3e5; line-height: 1.6; }
.section-heading > p { font-size: 16px; max-width: 405px; line-height: 1.75; color: var(--body-copy); }
.section-heading h2 { line-height: 1.2; }
:root[data-theme="light"] .impact-item p { color: #39556d; }

/* Four cases in a readable 2×2 grid; the original 3-column grid was too narrow. */
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { background: #101a27; border-color: #3b4d60; border-radius: 14px; }
.project-visual { height: 236px; padding: 20px 24px; border-bottom-color: #344252; }
.project-body { padding: 28px 30px 25px; }
.project-body h3 { font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.project-body > p { font-size: 15px; line-height: 1.75; color: #cbd8e8; margin-top: 15px; margin-bottom: 24px; }
.project-type { font-size: 11px; color: #c8d7e8; letter-spacing: .045em; gap: 9px; }
.category-dot { width: 7px; height: 7px; }
.project-state { font-size: 11px; font-weight: 600; color: #dfebf6; border-color: #536577; padding: 4px 8px; }
.tags { gap: 7px; }
.tags span { font-size: 11px; color: #d5e1ef; border-color: #3e5266; background: #182536; padding: 6px 9px; }
.project-result { margin-block: 23px 17px; padding-block: 18px; border-color: #415163; }
.project-result strong { font-size: 19px; font-weight: 600; }
.violet-result strong, .blue-result strong { font-size: 18px; }
.project-result > span { font-size: 13px; color: #c4d4e5; }
.project-open { font-size: 14px; min-height: 44px; color: #e5f7f0; }
.project-open .icon { color: var(--mint); }
.filters { gap: 5px; padding: 5px; background: #151f2d; border-color: #405165; }
.filter { font-size: 13px; font-weight: 600; color: #bdccde; padding: 9px 16px; min-height: 43px; }
.filter.active { color: #091b15; }
.work-note { font-size: 11px; color: #bce6d5; letter-spacing: .055em; }
.work-footer p { font-size: 13px; color: #bbcadb; line-height: 1.6; }
.work-footer .text-link { font-size: 13px; }
:root[data-theme="light"] .project-card { background: #ffffff; border-color: #b9cbdc; }
:root[data-theme="light"] .project-body > p { color: #354e67; }
:root[data-theme="light"] .project-type { color: #39526c; }
:root[data-theme="light"] .project-state { color: #31574d; border-color: #b0cabb; background: #e8f3ed; }
:root[data-theme="light"] .tags span { color: #314c67; background: #f2f6fa; border-color: #bbccde; }
:root[data-theme="light"] .project-result { border-color: #c5d4e3; }
:root[data-theme="light"] .project-result > span { color: #3a536d; }
:root[data-theme="light"] .project-open { color: #145c4a; }
:root[data-theme="light"] .filters { background: #e8eef5; border-color: #bfcddd; }
:root[data-theme="light"] .filter { color: #344e69; }
:root[data-theme="light"] .filter.active { color: #064f3d; background: #c8e4d5; }
:root[data-theme="light"] .work-note { color: #23634f; }
:root[data-theme="light"] .work-footer p { color: #445c75; }

/* Four illustrative project previews: increase legibility and contrast. */
.preview-topline { font-size: 10px; color: #bfe0d1; letter-spacing: .07em; }
.preview-index { font-size: 10px; color: #c1cde0; }
.ai-visual .preview-topline { color: #d2c5ff; }
.analytics-visual .preview-topline { color: #bad9ff; }
.workflow-node { width: 82px; height: 77px; gap: 8px; color: #e4f3eb; border-color: #527666; }
.workflow-node span { font-size: 10px; font-weight: 600; }
.node-active { width: 106px; }
.workflow-link { width: 24px; }
.workflow-illustration { height: 130px; }
.preview-outcome { font-size: 11px; color: #c9e4d5; }
.illustration-note { font-size: 9px; color: #c1d0e2; letter-spacing: .04em; }
.chat-question { font-size: 12px; color: #f1eaff; }
.chat-answer strong { font-size: 13px; color: #f2edff; font-weight: 650; }
.chat-answer div > span { font-size: 10px; color: #d0c7e6; }
.mini-kpis div > span { font-size: 8px; color: #c1d7ed; }
:root[data-theme="light"] .preview-topline { color: #275c49; }
:root[data-theme="light"] .preview-index { color: #4c627b; }
:root[data-theme="light"] .ai-visual .preview-topline { color: #654b95; }
:root[data-theme="light"] .analytics-visual .preview-topline { color: #385d87; }
:root[data-theme="light"] .workflow-node { color: #275b48; }
:root[data-theme="light"] .preview-outcome { color: #24614e; }
:root[data-theme="light"] .illustration-note { color: #415972; }
:root[data-theme="light"] .chat-question { color: #453064; }
:root[data-theme="light"] .chat-answer strong { color: #3d2d5e; }
:root[data-theme="light"] .chat-answer div > span { color: #51436d; }
:root[data-theme="light"] .mini-kpis div > span { color: #355f87; }

/* NEW: Power Query case illustration — no proprietary screenshots. */
.aqua { background: #7ad7e1; }
.query-visual { background: radial-gradient(ellipse at 50% 96%, rgba(29, 153, 163, .26), transparent 80%), #11232b; }
.query-visual .preview-topline { color: #a8ebf1; }
.query-pipeline { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);
  gap: 9px; align-items: center; margin-top: 23px; }
.query-stage { display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 121px; gap: 7px; padding: 12px 5px; border: 1px solid #3f6670;
  background: #19363d; border-radius: 10px; text-align: center; }
.query-stage-primary { background: linear-gradient(145deg,#164348,#1b4245); border-color: #71c4bf; box-shadow: 0 0 28px #5addd313; }
.query-stage-icon { display: grid; place-items: center; width: 29px; height: 29px; color: #a6e3e6; background: #28555b; border-radius: 7px; }
.query-stage-icon .icon { width: 16px; height: 16px; }
.query-stage strong { font-size: 12px; line-height: 1.25; font-weight: 650; color: #f0fbfb; }
.query-stage small { font-size: 10px; line-height: 1.25; color: #c1e1e2; }
.query-arrow { font-size: 20px; color: #85d7ce; text-align: center; }
.query-signal { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 13px;
  font-size: 11px; font-weight: 600; color: #b9e6df; }
.query-signal .icon { width: 15px; height: 15px; color: #9cf2d7; }
.query-result strong { color: #a4eced; font-size: 18px; }
:root[data-theme="light"] .query-visual { background: radial-gradient(ellipse at bottom, #b7e5df96, transparent 80%), #e8f4f4; }
:root[data-theme="light"] .query-visual .preview-topline { color: #28665f; }
:root[data-theme="light"] .query-stage { border-color: #8fbeb9; background: #f8fffd; }
:root[data-theme="light"] .query-stage-primary { background: #d3efe8; border-color: #67aca2; box-shadow: 0 0 28px #419f9513; }
:root[data-theme="light"] .query-stage-icon { background: #d9eee9; color: #175c50; }
:root[data-theme="light"] .query-stage strong { color: #153f3e; }
:root[data-theme="light"] .query-stage small { color: #356564; }
:root[data-theme="light"] .query-arrow { color: #257c71; }
:root[data-theme="light"] .query-signal { color: #245f54; }
:root[data-theme="light"] .query-result strong { color: #176b70; }

/* Specialist sections, timelines and biographical copy. */
.expertise-card { border-color: #394a60; }
.expertise-number { font-size: 10px; color: #c2d1e3; }
.expertise-card h3 { font-size: 24px; }
.expertise-card > p { font-size: 15px; line-height: 1.75; color: #cbd7e7; }
.skill-list li { font-size: 14px; color: #e2eaf3; }
.tool-pills span { font-size: 13px; color: #e0e9f3; border-color: #455b71; }
.expertise-footnote { font-size: 10px; color: #b9c8db; letter-spacing: .06em; }
.direction-strip strong { font-size: 15px; color: #e2d7ff; }
.direction-strip p { font-size: 14px; color: #c4cee3; }
.direction-tag { font-size: 10px; color: #d0bee9; }
.experience-intro > p { font-size: 15px; }
.experience-intro > .text-link { font-size: 14px; }
.experience-quote p { color: #d8e3ee; }
.experience-quote > span:last-child { font-size: 10px; color: #bcd4ca; }
.date { font-size: 12px; color: #bfcfe0; letter-spacing: .055em; }
.timeline h4 { font-size: 15px; color: #d6e3ef; }
.timeline-item > p { font-size: 15px; color: #c4d4e5; line-height: 1.75; }
.experience-highlights span { font-size: 12px; color: #c7eedc; }
.recognition { font-size: 12px; }
.early-career summary { font-size: 15px; }
.early-career summary .date { font-size: 11px; }
.early-career-content p { font-size: 14px; }
.early-career-content div > span { font-size: 12px; }
.about-copy > p { font-size: 15px; line-height: 1.85; }
.about-signature strong { font-size: 15px; }
.about-signature div > span { font-size: 12px; }
.education-panel > .micro-label, .learning-list > .micro-label { font-size: 11px; }
.education-item .pursuing-tag { font-size: 10px; }
.education-item h3 { font-size: 17px; }
.education-item p { font-size: 14px; }
.education-item div > span:last-child { font-size: 12px; }
.learning-list p { font-size: 13px; }
.learning-list small { font-size: 11px; }
.principles div > span { font-size: 11px; }
.principles strong { font-size: 13px; }
:root[data-theme="light"] .expertise-card { border-color: #c1cfdf; }
:root[data-theme="light"] .expertise-number { color: #405c78; }
:root[data-theme="light"] .expertise-card > p { color: #3a536d; }
:root[data-theme="light"] .skill-list li { color: #284560; }
:root[data-theme="light"] .tool-pills span { color: #31516c; border-color: #b5cadc; }
:root[data-theme="light"] .expertise-footnote { color: #47627c; }
:root[data-theme="light"] .direction-strip strong { color: #4b3669; }
:root[data-theme="light"] .direction-strip p { color: #3f5370; }
:root[data-theme="light"] .direction-tag { color: #58457b; }
:root[data-theme="light"] .experience-quote p { color: #284860; }
:root[data-theme="light"] .experience-quote > span:last-child { color: #3c705e; }
:root[data-theme="light"] .date { color: #39556c; }
:root[data-theme="light"] .timeline h4 { color: #305069; }
:root[data-theme="light"] .timeline-item > p { color: #354f66; }
:root[data-theme="light"] .experience-highlights span { color: #24634b; }

/* Dialogue and contact: prioritize reading over tiny microcopy. */
.contact-layout > div > p { font-size: 16px; line-height: 1.8; color: #d0deed; }
.contact-card > .micro-label { font-size: 11px; color: #bdd8ca; }
.copy-email, .social-links a { font-size: 13px; color: #c9e5d5; }
.contact-card > p { font-size: 12px !important; color: #bcdacc !important; }
.footer-name { font-size: 13px; }
.footer-name > span { font-size: 10px; color: #b1c5d5; letter-spacing: .02em; }
.footer-note { font-size: 12px; color: #b9c8d9; }
.footer-note > span:last-child { font-size: 11px; color: #a9bdce; }
.dialog-top .micro-label { font-size: 11px; }
.dialog-content .case-status { font-size: 11px; color: #bfd1e4; }
.dialog-content h2 { font-size: clamp(25px,3vw,34px); }
.dialog-content .case-intro { font-size: 17px; color: #d9e6f5; line-height: 1.7; }
.dialog-content h3 { font-size: 17px; font-weight: 650; }
.dialog-content p, .dialog-content li { font-size: 15px; line-height: 1.75; color: #cfdcec; }
.case-impact strong { font-size: 23px; }
.case-impact p { font-size: 14px; }
.case-scope { font-size: 13px !important; color: #b7cce1 !important; }
.case-links .button { font-size: 13px; }
:root[data-theme="light"] .contact-layout > div > p { color: #3c5570; }
:root[data-theme="light"] .contact-card > .micro-label,
:root[data-theme="light"] .copy-email, :root[data-theme="light"] .social-links a { color: #295c48; }
:root[data-theme="light"] .contact-card > p { color: #315e49 !important; }
:root[data-theme="light"] .footer-name > span,
:root[data-theme="light"] .footer-note,
:root[data-theme="light"] .footer-note > span:last-child { color: #425b76; }
:root[data-theme="light"] .dialog-content .case-status { color: #35546b; }
:root[data-theme="light"] .dialog-content .case-intro,
:root[data-theme="light"] .dialog-content p,
:root[data-theme="light"] .dialog-content li { color: #354f66; }
:root[data-theme="light"] .case-scope { color: #48637e !important; }

@media (max-width: 1199px) {
  .brand-name > span { font-size: 9px; }
  .desktop-nav { gap: 17px; }
  .desktop-nav a { font-size: 13px; }
  .project-grid { gap: 18px; }
  .project-body { padding: 24px; }
  .project-body h3 { font-size: 23px; }
  .project-type { font-size: 10px; }
}
@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-detail { font-size: 15px; }
  .impact-item p { font-size: 13px; }
  .section-heading > p { font-size: 15px; }
  .expertise-card > p { font-size: 14px; }
  .skill-list li { font-size: 13px; }
  .project-body > p { font-size: 14px; }
  .query-pipeline { gap: 5px; grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr); }
  .query-stage strong { font-size: 11px; }
  .query-stage small { font-size: 9px; }
}
@media (max-width: 767px) {
  .brand-name { font-size: 12px; }
  /* Full tagline remains prominently visible in the hero; mobile branding stays compact. */
  .site-header .brand-name > span { display: none; }
  .hero-eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .01em; max-width: 100%; }
  .hero-intro { font-size: 17px; }
  .hero-detail { font-size: 15px; }
  .hero-context { font-size: 12px; }
  .hero-bottom { font-size: 10px; letter-spacing: .02em; }
  .impact-item p { font-size: 12px; }
  .section-heading > p { font-size: 15px; }
  .project-grid { grid-template-columns: 1fr; gap: 21px; }
  .project-card { display: flex; flex-direction: column; }
  .project-visual { height: 232px; min-height: 0; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 25px; }
  .project-body h3 { font-size: 24px; }
  .project-body > p { font-size: 15px; }
  .project-type { font-size: 10px; }
  .project-state { font-size: 10px; }
  .preview-topline, .preview-index { font-size: 10px; }
  .work-toolbar { gap: 12px; }
  .filters { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filter { font-size: 11px; padding: 8px 5px; min-height: 42px; }
  .work-note { font-size: 10px; }
  .work-footer { align-items: flex-start; }
  .work-footer p { font-size: 12px; }
  .expertise-card > p { font-size: 15px; }
  .skill-list li { font-size: 14px; }
  .direction-strip p { font-size: 13px; }
  .date { font-size: 11px; }
  .timeline-item > p { font-size: 14px; }
  .about-copy > p { font-size: 15px; }
  .contact-layout > div > p { font-size: 15px; }
  .dialog-content { padding: 26px; }
  .dialog-content .case-intro { font-size: 16px; }
  .dialog-content p, .dialog-content li { font-size: 15px; }
  .footer-name > span { font-size: 9px; }
  .query-pipeline { margin-top: 24px; gap: 8px; grid-template-columns: minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr); }
  .query-stage strong { font-size: 11px; }
  .query-stage small { font-size: 9px; }
  .query-signal { font-size: 10px; }
}
@media (max-width: 420px) {
  .hero-eyebrow { font-size: 10px; padding: 9px 10px; }
  .hero-actions .button { font-size: 12px; padding: 12px 14px; }
  .hero-detail { font-size: 14px; }
  .hero-bottom { font-size: 9px; }
  .impact-item p { font-size: 11px; }
  .project-visual { padding: 17px; height: 223px; }
  .project-body { padding: 22px; }
  .project-type { font-size: 9px; letter-spacing: .015em; }
  .project-body h3 { font-size: 22px; }
  .project-body > p { font-size: 14px; }
  .preview-topline, .preview-index { font-size: 9px; }
  .illustration-note { font-size: 8px; left: 17px; }
  .workflow-node { width: 67px; height: 75px; }
  .node-active { width: 93px; }
  .workflow-node span { font-size: 9px; }
  .workflow-link { width: 12px; }
  .chat-question { font-size: 11px; }
  .chat-answer strong { font-size: 12px; }
  .chat-answer div > span { font-size: 9px; }
  .query-pipeline { gap: 4px; grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr); margin-top: 20px; }
  .query-stage { min-height: 112px; padding: 9px 3px; }
  .query-stage strong { font-size: 10px; }
  .query-stage small { font-size: 9px; }
  .query-signal { font-size: 9px; }
  .query-arrow { font-size: 16px; }
  .filter { font-size: 10px; }
  .work-note { font-size: 9px; }
  .contact-card > p { font-size: 11px !important; }
}
@media print {
  .project-card, .expertise-card { border-color: #bec5cd; }
  .query-visual { display: none !important; }
}
