/* robertcv.com — hand-coded static site. Mobile-first, no framework. */
:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2a44;
  --navy-700: #16395c;
  --ink: #1b2430;
  --muted: #56606d;
  --line: #d9dee5;
  --bg: #e3e7ed;
  --bg-alt: #d7dde5;
  --accent: #c8841f;       /* amber / copper — used on light bg for large text & borders */
  --accent-strong: #9a5f0c;/* AA-contrast accent for small text on white */
  --accent-light: #e8b050; /* accent on dark bg */
  --radius: 10px;
  --maxw: 1080px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1rem; padding-top: .6rem; padding-bottom: .6rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-800); }
.brand-mark {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: var(--navy-800); color: var(--accent-light);
  font-family: var(--font-serif); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.brand-name { font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.role-btn { display: inline-block; padding: .3rem .85rem; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-strong); font-weight: 600; font-size: .9rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.role-btn:hover, .role-btn:focus-visible { background: var(--accent); color: #fff; }
.site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 .1rem; list-style: none; margin: 0 0 0 -.45rem; padding: 0; white-space: nowrap; }
.site-nav a {
  display: block; padding: .4rem .45rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--navy-700); }

@media (min-width: 960px) {
  html { scroll-padding-top: 76px; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; overflow: visible; }
  .site-nav ul { flex-wrap: nowrap; justify-content: flex-end; gap: .15rem; margin: 0; }
  .site-nav a { padding: .4rem .6rem; font-size: .95rem; }
}
/* Header links to X Tank Co / GlyEng (external) */
@media (max-width: 379px) { .site-nav ul { margin-left: -.28rem; } .site-nav a { padding-left: .28rem; padding-right: .28rem; } }
@media (min-width: 960px) {
  .site-nav .nav-ext-last { position: relative; margin-right: .5rem; }
  .site-nav .nav-ext-last::after { content: ""; position: absolute; right: -.33rem; top: 50%; height: 1.05rem; margin-top: -.525rem; border-right: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232,176,80,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::after { /* subtle contour-line texture, pure CSS */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-radial-gradient(circle at 80% 120%, #fff 0 1px, transparent 1px 28px);
}
.hero-inner { position: relative; z-index: 1; padding-top: 4.5rem; padding-bottom: 3rem; }
.eyebrow {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-light);
}
.hero h1 {
  margin: 0; font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.75rem); line-height: 1.05; letter-spacing: -.01em;
}
.headline {
  margin: .9rem 0 0; font-size: clamp(1.15rem, 3.2vw, 1.5rem); font-weight: 500; color: #dbe4ee;
}
.hero-quote {
  margin: 2rem 0 0; padding: .25rem 0 .25rem 1.1rem; max-width: 36rem;
  border-left: 3px solid var(--accent-light);
}
.hero-quote blockquote { margin: 0; }
.hero-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2.8vw, 1.35rem); color: #f1f4f8; }
.hero-quote figcaption { margin-top: .35rem; font-size: .95rem; color: var(--accent-light); letter-spacing: .02em; }
.hero-quote cite { font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent-light); color: var(--navy-900); }
.btn-primary:hover { background: #f2c26b; color: var(--navy-900); }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

@media (min-width: 760px) {
  .hero-inner { padding-top: 7rem; padding-bottom: 3.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 760px) { .section { padding: 5rem 0; } }

.section-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.75rem; }
.section-kicker {
  margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.section-head h2 {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.2; color: var(--navy-800);
}
.lead { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.6; color: var(--ink); }

.about-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; } }

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Placeholder blocks (remove as real content lands) ---------- */
.placeholder {
  border: 2px dashed #b9c2cd; border-radius: var(--radius);
  padding: 1.5rem; background: rgba(255,255,255,.6); color: var(--muted);
  min-height: 7rem; display: flex; flex-direction: column; justify-content: center;
}
.placeholder-lg { min-height: 12rem; }
.placeholder-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong);
}
.placeholder p { margin: .35rem 0 0; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-intro { margin: 0 0 1.25rem; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; } }
.contact-list li {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; background: #fff;
}
.contact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.2rem; font-weight: 600; color: var(--navy-800); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cedb; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #e8eef5; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }

/* ---------- Hero with portrait ---------- */
.hero-grid { display: grid; gap: 2rem; }
.hero-photo { order: -1; }
.hero-photo img {
  width: 130px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 32%; border-radius: 50%;
  border: 2px solid rgba(232,176,80,.85); box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 6px rgba(232,176,80,.12);
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .hero-photo { order: 0; }
  .hero-photo img { width: 200px; }
}

/* ---------- Cards (business initiatives, projects) ---------- */
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(15,42,68,.05);
}
.card p { margin: 0; color: var(--ink); font-size: 1rem; }
.card-title { margin: 0; font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy-800); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent-strong); text-decoration: underline; }
.card-link { margin-top: auto; padding-top: .35rem; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
/* Featured (full-width) project card: chart on top at its natural aspect ratio, text below */
.card-feature { gap: 1.1rem; padding: 1.25rem; }
.feature-media { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.feature-media img { display: block; width: 100%; height: auto; max-width: 1902px; object-fit: contain; }
.feature-body { display: flex; flex-direction: column; gap: .5rem; }
.feature-body p { max-width: 52rem; }
@media (min-width: 760px) { .card-feature { padding: 1.5rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sub pages (e.g. projects/tx-swd) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 2.5rem 0 2.25rem; }
.page-hero h1 { margin: .35rem 0 .5rem; font-family: var(--font-serif); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; }
.page-intro { margin: 0; max-width: 46rem; color: #dbe4ee; font-size: 1.08rem; }
.breadcrumb { font-size: .9rem; color: #b9c6d4; }
.breadcrumb a { color: var(--accent-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.post-jump a { display: inline-block; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; }
.post-jump a:hover { border-color: var(--accent-light); color: var(--accent-light); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); }

.gallery { padding-top: 1rem; padding-bottom: 3rem; }
.post-block { padding: 2.25rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.post-head h2 { margin: .15rem 0 .35rem; font-family: var(--font-serif); font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--navy-800); line-height: 1.25; }
.post-line { margin: 0 0 1.1rem; color: var(--muted); }
.chart { margin: 0; }
.chart a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.chart a:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(15,42,68,.12); }
.chart img { width: 100%; height: auto; }
.chart figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.chart figcaption a { display: inline; border: 0; background: none; color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.chart figcaption a:hover { box-shadow: none; text-decoration: underline; }
.sources { border-bottom: 0; }
.sources h2 { margin: 0 0 .75rem; font-family: var(--font-serif); color: var(--navy-800); font-size: 1.4rem; }
.sources ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.sources li { margin: .3rem 0; }

/* ---------- Skills ---------- */
.section-intro { margin: -.75rem 0 1.5rem; max-width: 46rem; color: var(--muted); }
.skill-list { margin: .35rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.skill-list li { position: relative; padding-left: 1.3rem; font-size: 1rem; line-height: 1.5; }
.skill-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- Creed (unnumbered pull-quote band between About and Experience) ---------- */
.creed {
  position: relative; overflow: hidden; color: var(--navy-800);
  background: var(--bg); border-top: 3px solid var(--accent);
  padding: 2.25rem 0;
}
.creed-inner { max-width: 880px; text-align: center; }
.creed-title {
  margin: 0 0 1.1rem; font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-strong);
}
.creed-quote { position: relative; margin: 0; }
.creed-quote::before {
  content: "\201C"; display: block; height: 2.6rem; margin: 0 auto .5rem;
  font-family: var(--font-serif); font-size: 5.5rem; line-height: 1; color: var(--accent); opacity: .75;
  pointer-events: none;
}
.creed-quote blockquote { margin: 0; position: relative; }
.creed-quote p {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 4.6vw, 2rem); line-height: 1.45; color: var(--navy-800);
}
@media (min-width: 760px) { .creed { padding: 3.25rem 0; } }

/* ---------- Document pages (projects/guyana-playbook) ---------- */
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.1rem; }
.doc-dl-meta { font-size: .9rem; color: #b9c6d4; }
.doc { max-width: 920px; padding-top: 2.25rem; padding-bottom: 3rem; }
.doc-article { font-size: 1.02rem; }
.doc-head { text-align: center; padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: 2px solid var(--navy-800); }
.doc-title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 5.5vw, 2.5rem); line-height: 1.15; color: var(--navy-800); }
.doc-head p { margin: .45rem 0 0; }
.doc-sub { font-weight: 700; font-size: 1.08rem; }
.doc-segments { color: var(--muted); }
.doc-site a { font-weight: 700; }
.doc-section { scroll-margin-top: 80px; }
.doc-section h2 { margin: 0 0 .5rem; font-family: var(--font-serif); font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.25; color: var(--navy-800); }
.doc-detail { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.doc-section h3 { margin: 1.75rem 0 .6rem; font-size: 1.12rem; line-height: 1.35; color: var(--navy-800); }
.doc-section h3.doc-overview-head { margin: 1.3rem 0 .2rem; font-size: 1.02rem; }
.doc-section p { margin: 0 0 .85rem; }
.doc-tagline { font-weight: 600; color: var(--accent-strong); }
.doc-equip strong, .doc-value strong { color: var(--navy-800); }
.doc-value { padding: .8rem 1rem; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 6px 6px 0; }
.doc-list { margin: 0 0 1rem; padding-left: 1.3rem; }
.doc-list li { margin: .2rem 0; }
.doc-end { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-end .doc-dl-meta { color: var(--muted); }
.doc-end p { margin: 1rem 0 0; }

.pb-table-wrap { margin: 0 0 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pb-table-wrap:focus-visible { outline-offset: 2px; }
.pb-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.pb-table th, .pb-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; }
.pb-table thead th { background: var(--navy-800); color: #fff; font-size: .86rem; font-weight: 700; letter-spacing: .01em; vertical-align: bottom; }
.pb-table tbody th, .pb-table tbody td { border-top: 1px solid var(--line); }
.pb-table tbody th { font-weight: 700; color: var(--navy-800); }
.pb-table tbody tr:nth-child(even) > * { background: var(--bg-alt); }
.pb-table .co { width: 19%; } .pb-table .focus { width: 24%; } .pb-table .url { width: 34%; } .pb-table .notes { width: 23%; }
.pb-table .url { font-size: .9rem; }
.pb-table .url a { overflow-wrap: anywhere; }
/* Phones: each row becomes a stacked card (no sideways scrolling needed) */
@media screen and (max-width: 719px) {
  .pb-table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .pb-table { min-width: 0; }
  .pb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pb-table, .pb-table tbody, .pb-table tr, .pb-table th, .pb-table td { display: block; width: 100% !important; }
  .pb-table tr { margin: 0 0 .85rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .pb-table tbody tr:nth-child(even) > * { background: none; }
  .pb-table tbody th, .pb-table tbody td { border-top: 0; }
  .pb-table tbody th { padding: .7rem .95rem .55rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.3; border-bottom: 1px solid var(--line); background: var(--bg-alt) !important; }
  .pb-table td { padding: .5rem .95rem; }
  .pb-table td + td { border-top: 1px dashed var(--line); }
  .pb-table td::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Projects: feature card + document card ---------- */
.project-stack { display: grid; gap: 1.25rem; }
.card-doc { display: grid; gap: 1.1rem; align-items: center; }
.card-doc .doc-thumb { display: block; width: 132px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(15,42,68,.14); transition: box-shadow .15s, transform .15s; }
.card-doc .doc-thumb:hover { box-shadow: 0 10px 26px rgba(15,42,68,.2); transform: translateY(-2px); }
.card-doc .doc-thumb img { width: 100%; height: auto; }
.card-doc .card-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.card-doc .feature-body { gap: .45rem; }
.card-doc .card-title { line-height: 1.3; }
@media (min-width: 640px) { .card-doc { grid-template-columns: auto 1fr; gap: 1.75rem; } .card-doc .doc-thumb { width: 150px; } }

/* ---------- Print (site pages) ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .page-hero, .doc-end { display: none !important; }
  body { font-size: 10.5pt; }
  .doc { max-width: none; padding: 0; }
  .doc-detail { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; }
  .pb-table { min-width: 0; font-size: 9pt; }
  .pb-table-wrap { overflow: visible; }
  .pb-table thead th { color: #000; background: #eee; }
  tr, .doc-equip, .doc-value { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- LATAM START: projects/latam-operators (scoped; also inlined into the standalone file) ---------- */
.latam .stats { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.latam .stat-pill { padding: .3rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #dbe4ee; font-size: .85rem; font-weight: 600; letter-spacing: .01em; }
.latam .stat-pill span { color: var(--accent-light); font-weight: 800; }
.latam .latam-body { padding: 2rem 0 3rem; }
.latam .latam-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1.25rem; }
.latam .table-wrap { overflow: auto; max-height: max(28rem, calc(100vh - 150px)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(15,42,68,.05); -webkit-overflow-scrolling: touch; }
.latam .latam-table { width: 100%; min-width: 1240px; border-collapse: separate; border-spacing: 0; font-size: .86rem; line-height: 1.5; }
.latam .latam-table th { position: sticky; top: 0; z-index: 2; padding: .65rem .65rem; background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.latam .latam-table td { padding: .65rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; background: #fff; }
.latam .latam-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.latam .latam-table tbody tr:hover td { background: #fbf4e8; }
.latam .latam-table tbody tr:last-child td { border-bottom: 0; }
/* sticky # + Company columns while scrolling sideways */
.latam .latam-table .c-1 { position: sticky; left: 0; z-index: 1; width: 3rem; min-width: 3rem; }
.latam .latam-table .c-2 { position: sticky; left: 3rem; z-index: 1; min-width: 11rem; box-shadow: inset -1px 0 0 var(--line); }
.latam .latam-table th.c-1, .latam .latam-table th.c-2 { z-index: 3; }
.latam .latam-table .c-3 { min-width: 6.5rem; } .latam .latam-table .c-4 { min-width: 12rem; } .latam .latam-table .c-5 { min-width: 8rem; } .latam .latam-table .c-6 { min-width: 9.5rem; }
.latam .latam-table .c-7 { min-width: 5.6rem; } .latam .latam-table .c-9 { min-width: 13.5rem; } .latam .latam-table .c-10 { min-width: 11.5rem; }
.latam .num { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.latam .company-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--navy-800); }
.latam .cb { display: inline-block; margin: 0 .25rem .25rem 0; padding: .05rem .4rem; border: 1px solid #c3cfdd; border-radius: 4px; background: #eef2f7; color: var(--navy-700); font-size: .72rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5; white-space: nowrap; }
.latam .og-badge { display: inline-block; min-width: 4.6rem; padding: .15rem .6rem; border: 1px solid; border-radius: 999px; font-size: .78rem; font-weight: 700; text-align: center; letter-spacing: .02em; }
.latam .og-O { background: #fbeed8; color: var(--accent-strong); border-color: var(--accent-light); }
.latam .og-G { background: #e4ecf5; color: var(--navy-700); border-color: #9fb6cf; }
.latam .og-NA { background: #f1f2f4; color: var(--muted); border-color: var(--line); font-weight: 600; }
.latam .addr, .latam .domicile { color: var(--ink); font-size: .84rem; }
.latam .sub-label { display: block; margin-top: .3rem; color: var(--accent-strong); font-size: .78rem; font-weight: 600; }
.latam .addr-aside { color: var(--muted); font-size: .78rem; }
.latam .us-addr { color: var(--navy-700); font-size: .84rem; }
.latam .us-badge { display: inline-block; margin-bottom: .2rem; padding: .05rem .45rem; border-radius: 4px; background: var(--navy-800); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.latam .us-aside { color: var(--muted); font-size: .76rem; }
.latam .no-us { color: #9aa3ad; }
.latam .basis-cell { font-size: .82rem; line-height: 1.55; }
.latam .basis-note { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; font-style: italic; }
.latam .link-cell a { color: var(--navy-700); font-weight: 600; overflow-wrap: anywhere; }
.latam .link-cell a:hover { color: var(--accent-strong); }
.latam .employees { color: var(--navy-800); font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.latam .latam-source { margin: 1.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
/* Phones: each company becomes a stacked card */
@media screen and (max-width: 719px) {
  .latam .table-wrap { max-height: none; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .latam .latam-table { min-width: 0; }
  .latam .latam-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .latam .latam-table, .latam .latam-table tbody, .latam .latam-table td { display: block; }
  .latam .latam-table tr { display: grid; grid-template-columns: auto 1fr; margin: 0 0 .9rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .latam .latam-table td { grid-column: 1 / -1; position: static; min-width: 0 !important; padding: .5rem .95rem; border-bottom: 1px dashed var(--line); background: none !important; box-shadow: none; text-align: left; }
  .latam .latam-table td.c-1, .latam .latam-table td.c-2 { background: var(--bg-alt) !important; border-bottom: 1px solid var(--line); padding-top: .7rem; padding-bottom: .6rem; }
  .latam .latam-table td.c-1 { grid-column: 1; padding-right: .1rem; width: auto; }
  .latam .latam-table td.c-2 { grid-column: 2; }
  .latam .latam-table td.c-1::before, .latam .latam-table td.c-2::before { content: none; }
  .latam .latam-table td::before { content: attr(data-label); display: block; margin-bottom: .1rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .latam .latam-table tr td:last-child { border-bottom: 0; }
  .latam .company-name { font-size: 1.08rem; }
}
@media print {
  .latam .page-hero { display: block !important; background: none; color: #000; padding: 0 0 .5rem; }
  .latam .page-intro, .latam .stat-pill, .latam .breadcrumb { color: #333; }
  .latam .stat-pill span { color: #000; }
  .latam .table-wrap { max-height: none; overflow: visible; box-shadow: none; }
  .latam .latam-table { min-width: 0; font-size: 7.5pt; }
  .latam .latam-table th, .latam .latam-table td { position: static; }
  .latam .latam-table th { color: #000; background: #eee; }
}
/* ---------- LATAM END ---------- */

/* Projects: the two simpler cards side by side on desktop */
.project-duo { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .project-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-duo .card-doc .doc-thumb { width: 128px; } .project-duo .card-doc { gap: 1.4rem; align-items: start; } }

/* Projects: TX SWD map card (image left, text right from 860px; stacked on phones) + cross-link on the TX SWD page */
.card-map .card-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
@media (min-width: 860px) { .card-map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; } }
.page-cross { margin: 1rem 0 0; font-size: .95rem; color: #dbe4ee; }
.page-cross a { color: var(--accent-light); font-weight: 600; text-underline-offset: 3px; }

/* ---------- About: lead paragraph stacked above the Background bio ---------- */
.about-stack { max-width: 46rem; }
.about-bio { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-sub { margin: 0 0 .75rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.about-bio p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.about-bio p:last-child { margin-bottom: 0; }
/* About: Photos gallery (content/photos.md). One per row on phones; 3-column grid from 640px where a landscape
   (.photo--wide) spans 2 columns and a portrait (.photo--tall) spans 1 and is shown smaller. Photos are never cropped. */
.about-photos { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
/* Recommendations (end of About): grid holds 1–2 quote cards; one card spans the full width */
.about-recs { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.rec-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: start; }
.rec-card { position: relative; margin: 0; gap: 1rem; }
.rec-card::before { content: "\201C"; display: block; height: 2rem; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--accent); opacity: .75; pointer-events: none; }
.rec-card blockquote { margin: 0; }
.rec-card blockquote p { margin: 0 0 .9rem; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.rec-card blockquote p:last-child { margin-bottom: 0; }
.rec-card figcaption { display: flex; flex-direction: column; gap: .15rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.rec-name { font-weight: 700; color: var(--navy-800); }
.rec-title { color: var(--ink); font-size: .95rem; }
.rec-context { color: var(--muted); font-size: .88rem; }
.rec-link { margin-top: .35rem; font-weight: 600; font-size: .92rem; color: var(--accent-strong); text-decoration: none; }
.rec-link:hover { text-decoration: underline; }
@media (min-width: 760px) { .rec-card { padding: 1.75rem 2rem; } }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.25rem; align-items: start; } .photo--wide { grid-column: span 2; } }
.photo { margin: 0; min-width: 0; }
.photo-link { display: block; width: 100%; border-radius: 8px; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; background: #eef1f5; box-shadow: 0 1px 3px rgba(15, 30, 50, .12); }
.photo--tall .photo-link { width: min(100%, 13rem); }
@media (min-width: 640px) { .photo--tall .photo-link { width: min(100%, 10.9rem); } }
.photo figcaption { margin-top: .55rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* ---------- Experience (02): industry cards ---------- */
.exp-card { gap: .75rem; }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem 1rem; }
.exp-years { margin: 0; font-size: .85rem !important; font-weight: 700; letter-spacing: .04em; color: var(--accent-strong) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exp-intro { color: var(--muted) !important; }
.exp-list { margin: 0; }
.exp-list a { color: var(--navy-700); font-weight: 600; }
.exp-list a:hover { color: var(--accent-strong); }
.exp-companies { margin-top: auto !important; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .85rem !important; line-height: 1.5; color: var(--muted) !important; }
.exp-co { white-space: nowrap; }
.exp-card .card-title { line-height: 1.3; }
.exp-result, .proj-result { margin: 0; padding: .1rem 0 .1rem .75rem; border-left: 3px solid var(--accent); font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--navy-800) !important; }

/* ---------- MINING START: projects/lower-48-uranium + projects/texas-frac-sand (generated by tools/build_mining.py; do not edit by hand) ---------- */
/* the documents' own stylesheet, scoped under .xt-doc */
.xt-doc { font-size: 16px; line-height: normal; letter-spacing: normal; text-align: left; }
@page { size: 8.5in 11in; margin: 0; }
.xt-doc { --paper:#ffffff; --panel:#f6f4ef; --panel2:#faf9f6;
 --rust:#a83208; --amber:#b0640a; --hi:#d4530e;
 --gold:#8f6f08; --ink:#16191d; --ink2:#3b4249; --muted:#6b7683;
 --line:rgba(168,50,8,.22); --line2:rgba(168,50,8,.14); }
.xt-doc * { margin:0;padding:0;box-sizing:border-box; }
.xt-doc { background:var(--paper);font-family:'Barlow','Helvetica Neue',Arial,sans-serif;color:var(--ink);
 -webkit-print-color-adjust:exact;print-color-adjust:exact; }
.xt-doc .page { width:8.5in;height:11in;position:relative;overflow:hidden;background:var(--paper);
 page-break-after:always;break-after:page;margin:0 auto; }
.xt-doc .page:last-child { page-break-after:auto;break-after:auto; }
.xt-doc .page::before { content:'';position:absolute;left:0;top:0;bottom:0;width:0.07in;
 background:linear-gradient(180deg,var(--rust),var(--amber)); }
.xt-doc .inner { padding:0.5in 0.55in 0.9in 0.65in;height:100%;position:relative; }
.xt-doc h1, .xt-doc h2, .xt-doc h3, .xt-doc .disp { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-weight:400;letter-spacing:0.5px; }
.xt-doc .mono { font-family:'Share Tech Mono','Courier New',monospace; }
.xt-doc .cover { background:var(--paper); }
.xt-doc .cover .inner { padding-top:2.1in; }
.xt-doc .cover-label { font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;letter-spacing:3px;
 color:var(--rust);text-transform:uppercase;margin-bottom:0.3in; }
.xt-doc .cover-title { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:64pt;line-height:0.92;color:var(--ink); }
.xt-doc .cover-title span { color:var(--hi); }
.xt-doc .cover-sub { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:26pt;color:var(--muted);
 letter-spacing:2px;margin-top:6px; }
.xt-doc .rule { width:1.4in;height:3px;background:linear-gradient(90deg,var(--rust),var(--amber));margin:0.28in 0; }
.xt-doc .cover-desc { font-size:11pt;font-weight:400;line-height:1.75;color:var(--ink2);max-width:5.6in; }
.xt-doc .cover-stats { display:flex;gap:0.55in;margin-top:0.45in; }
.xt-doc .stat-num { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:30pt;color:var(--hi);line-height:1; }
.xt-doc .stat-lbl { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:2px;color:var(--muted);
 text-transform:uppercase;margin-top:3px; }
.xt-doc .cover-foot { position:absolute;left:0.65in;right:0.55in;bottom:0.5in;display:flex;justify-content:space-between;
 border-top:1px solid var(--line);padding-top:12px;
 font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;letter-spacing:2px; }
.xt-doc .cover-foot .a { color:var(--amber); }
.xt-doc .cover-foot .b { color:var(--muted); }
.xt-doc .phead { background:var(--panel);margin:-0.5in -0.55in 0.20in -0.65in;padding:0.28in 0.55in 0.20in 0.65in;
 border-bottom:2px solid var(--rust);position:relative; }
.xt-doc .eyebrow { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:3px;color:var(--rust);
 text-transform:uppercase;margin-bottom:5px; }
.xt-doc .ptitle { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:27pt;color:var(--ink);line-height:1; }
.xt-doc .psub { font-family:'Share Tech Mono','Courier New',monospace;font-size:9pt;color:var(--amber);letter-spacing:1px;margin-top:5px; }
.xt-doc .ghost { position:absolute;right:0.5in;top:0.1in;font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;
 font-size:56pt;color:rgba(168,50,8,.14);line-height:1; }
.xt-doc .slabel { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:3px;color:var(--rust);
 text-transform:uppercase;margin-bottom:9px;display:flex;align-items:center;gap:10px; }
.xt-doc .slabel::after { content:'';flex:1;height:1px;background:var(--line); }
.xt-doc .box { background:var(--panel2);border:1px solid var(--line2);border-left:3px solid var(--rust);
 padding:11px 14px; }
.xt-doc .box.amber { border-left-color:var(--amber);background:#fdf7ee; }
.xt-doc .box.yellow { border-left-color:var(--gold);background:#fdfaee; }
.xt-doc .txt { font-size:9.5pt;font-weight:400;line-height:1.6;color:var(--ink2); }
.xt-doc .txt b { color:var(--ink);font-weight:700; }
.xt-doc p+p { margin-top:7px; }
.xt-doc .grid2 { display:grid;grid-template-columns:1fr 1fr;gap:0.22in; }
.xt-doc .grid3 { display:grid;grid-template-columns:1fr 1fr 1fr;gap:0.16in; }
.xt-doc .meta { display:flex;background:var(--panel);border:1px solid var(--line2);margin-bottom:0.2in; }
.xt-doc .mi { flex:1;padding:8px 11px;border-right:1px solid var(--line2); }
.xt-doc .mi:last-child { border-right:none; }
.xt-doc .mk { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:2px;color:var(--muted);
 text-transform:uppercase;margin-bottom:3px; }
.xt-doc .mv { font-size:9pt;font-weight:600;color:var(--ink);line-height:1.25; }
.xt-doc .badges { display:flex;gap:9px; }
.xt-doc .badge { background:#fdf1e6;border:1px solid var(--line);padding:7px 12px;text-align:center; }
.xt-doc .bv { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:15pt;color:var(--hi);line-height:1; }
.xt-doc .bl { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:1.5px;color:var(--muted);
 text-transform:uppercase;margin-top:3px; }
.xt-doc .vp { display:flex;flex-direction:column;gap:7px; }
.xt-doc .vpi { display:flex;gap:9px;font-size:9pt;font-weight:400;line-height:1.5;color:var(--ink2); }
.xt-doc .dot { width:5px;height:5px;min-width:5px;max-height:5px;background:var(--hi);flex-shrink:0;margin-top:6px;align-self:start; }
.xt-doc .dot.y { background:var(--gold); }
.xt-doc .chips { display:flex;flex-wrap:wrap;gap:6px; }
.xt-doc .chip { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:1px;color:var(--gold);
 border:1px solid rgba(143,111,8,.45);background:#fdfaee;padding:4px 8px; }
.xt-doc .contacts { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.xt-doc .ci { display:grid;grid-template-columns:auto 1fr;gap:9px;padding:8px 10px;background:var(--panel2);
 border:1px solid var(--line2); }
.xt-doc .cb { width:11px;height:11px;min-width:11px;max-height:11px;border:1.5px solid var(--rust);background:#fff;
 margin-top:3px;align-self:start; }
.xt-doc .ct { font-size:8.5pt;font-weight:700;color:var(--ink);line-height:1.2; }
.xt-doc .cd { font-size:7.5pt;font-weight:400;color:var(--muted);line-height:1.35;margin-top:2px; }
.xt-doc table { width:100%;border-collapse:collapse; }
.xt-doc th { font-family:'Share Tech Mono','Courier New',monospace;font-size:7pt;letter-spacing:2px;color:var(--rust);
 text-transform:uppercase;text-align:left;padding:6px 7px;border-bottom:1.5px solid var(--rust);vertical-align:bottom; }
.xt-doc td { font-size:8pt;font-weight:400;line-height:1.4;color:var(--ink2);padding:5px 7px;
 border-bottom:1px solid var(--line2);vertical-align:top; }
.xt-doc td b { color:var(--ink);font-weight:700; }
.xt-doc tr:nth-child(even) td { background:var(--panel2); }
.xt-doc .tag { font-family:'Share Tech Mono','Courier New',monospace;font-size:6.5pt;letter-spacing:1px;padding:2px 5px;
 border:1px solid;white-space:nowrap; }
.xt-doc .t-hi { color:#1c6b2e;border-color:rgba(28,107,46,.5);background:#eef7f0; }
.xt-doc .t-md { color:#8f6f08;border-color:rgba(143,111,8,.5);background:#fdfaee; }
.xt-doc .t-lo { color:#5d6874;border-color:rgba(93,104,116,.45);background:#f4f5f6; }
.xt-doc table.tight { table-layout:fixed; }
.xt-doc table.tight td { font-size:8pt;padding:7px 7px;line-height:1.4; }
.xt-doc table.tight .tag { display:inline-block;margin-bottom:2px; }
.xt-doc table.tight th { padding:5px 6px; }
.xt-doc .mail { background:var(--panel2);border:1px solid var(--line2);padding:11px 13px; }
.xt-doc .mail .to { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;letter-spacing:1.5px;color:var(--amber);
 text-transform:uppercase;margin-bottom:6px; }
.xt-doc .mail .subj { font-size:9pt;font-weight:700;color:var(--rust);margin-bottom:7px; }
.xt-doc .mail .body { font-size:8.5pt;font-weight:400;line-height:1.55;color:var(--ink2);white-space:pre-line; }
.xt-doc .steps { counter-reset:s;display:flex;flex-direction:column;gap:9px; }
.xt-doc .step { display:grid;grid-template-columns:auto 1fr;gap:11px; }
.xt-doc .sn { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:15pt;color:var(--hi);line-height:1;
 width:0.3in;flex-shrink:0; }
.xt-doc .sh { font-size:9.5pt;font-weight:700;color:var(--ink);margin-bottom:2px; }
.xt-doc .sd { font-size:8.5pt;font-weight:400;line-height:1.5;color:var(--ink2); }
.xt-doc .pfoot { position:absolute;left:0.65in;right:0.55in;bottom:0.45in;padding-top:9px;
 border-top:1px solid var(--line2);display:flex;justify-content:space-between;align-items:center; }
.xt-doc .fb { font-family:'Share Tech Mono','Courier New',monospace;font-size:8pt;color:var(--amber);letter-spacing:2px; }
.xt-doc .fc { font-family:'Share Tech Mono','Courier New',monospace;font-size:7.5pt;color:var(--muted);letter-spacing:1.5px; }
.xt-doc .pn { font-family:'Bebas Neue','Oswald','Arial Narrow',sans-serif;font-size:14pt;color:var(--hi); }
.xt-doc .spacer { height:0.16in; }
.xt-doc .small { font-size:7.5pt;line-height:1.45;color:var(--muted);font-weight:400; }
.xt-doc .co .slabel { margin-bottom:6px; }
.xt-doc .co .mk { font-size:6pt; }
.xt-doc .co .mv { font-size:8.2pt;line-height:1.2; }
.xt-doc .co .mi { padding:6px 9px; }
.xt-doc .co .meta { margin-bottom:0.14in; }
.xt-doc .co .vp { gap:5px; }
.xt-doc .co .vpi { font-size:8.2pt;line-height:1.45; }
.xt-doc .co .vpi .dot { margin-top:5px; }
.xt-doc .co table.tight td { font-size:7.8pt;padding:4.5px 6px; }
.xt-doc .co table.tight th { padding:4px 6px; }
.xt-doc .co .box .txt { font-size:8.8pt;line-height:1.5; }
.xt-doc .co .ct { font-size:8pt; }
.xt-doc .co .cd { font-size:7.2pt; }
.xt-doc .co .ci { padding:6px 9px; }
.xt-doc .eyebrow { font-weight: 400; }
/* page chrome */
.xt-page .page-back { margin: .9rem 0 0; font-size: .95rem; }
.xt-page .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.xt-page .xt-back { margin: 1.5rem 0 2.5rem; }
@media screen {
  .xt-doc { background: #e8e4dc; padding: 28px 12px 40px; }
  .xt-doc .page { height: auto; min-height: 11in; overflow: visible; margin: 0 auto 24px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 10px 28px rgba(0,0,0,.08); }
  .xt-doc .page:last-child { margin-bottom: 0; }
  .xt-doc .inner { height: auto; min-height: 11in; }
  .xt-doc .xt-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media screen and (max-width: 880px) {
  .xt-doc { padding: 12px 8px 24px; overflow-wrap: break-word; }
  .xt-doc .page { width: 100%; min-height: 0; margin-bottom: 12px; }
  .xt-doc .inner { min-height: 0; padding: 22px 16px 22px 22px; }
  .xt-doc .cover .inner { padding-top: 56px; }
  .xt-doc .phead { margin: -22px -16px 16px -22px; padding: 18px 16px 14px 22px; }
  .xt-doc .ghost { right: 14px; top: 8px; font-size: 40pt; }
  .xt-doc .cover-title { font-size: clamp(40px, 13vw, 64pt); }
  .xt-doc .cover-sub { font-size: clamp(20px, 6vw, 26pt); }
  .xt-doc .cover-desc { max-width: none; }
  .xt-doc .cover-stats { flex-wrap: wrap; gap: 18px 32px; margin-top: 28px; }
  .xt-doc .cover-foot, .xt-doc .pfoot { position: static; margin-top: 28px; flex-wrap: wrap; gap: 6px 16px; }
  .xt-doc .meta { flex-wrap: wrap; }
  .xt-doc .mi { flex: 1 1 45%; min-width: 0; border-bottom: 1px solid var(--line2); }
  .xt-doc .badges { flex-wrap: wrap; }
  .xt-doc .xt-tw-w table { min-width: 640px; }
}
@media screen and (max-width: 640px) {
  .xt-doc .grid2, .xt-doc .grid3, .xt-doc .contacts { grid-template-columns: 1fr; }
}
@media print {
  .xt-page .xt-back { display: none; }
}
/* ---------- MINING END ---------- */

/* ---------- TXSWDMAP START: projects/tx-swd-map (generated by tools/build_txswdmap.py; do not edit by hand) ---------- */
.swdmap .page-hero { padding: 1.4rem 0 1.25rem; }
.swdmap .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .3rem 0 .35rem; }
.swdmap .page-intro { font-size: 1rem; }
.swdmap .page-back { margin: .6rem 0 0; font-size: .95rem; color: #b9c6d4; }
.swdmap .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.swdmap-wrap { max-width: 1400px; margin: 0 auto; padding: 1rem 1.25rem 1.5rem; }
.swdmap .swd-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.swdmap .swd-field { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--muted); min-width: 0; }
.swdmap .swd-field span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.swdmap .swd-field select { font: inherit; font-size: .95rem; color: var(--ink); padding: 7px 8px; border: 1px solid #b9c2cd; border-radius: 6px; background: #fff; width: 16rem; max-width: 100%; min-height: 40px; }
.swdmap #f-operator { width: 22rem; }
.swdmap .swd-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding-bottom: 9px; cursor: pointer; }
.swdmap .swd-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.swdmap .swd-status { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-bottom: 4px; }
.swdmap #swd-count { font-size: .92rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.swdmap .swd-btn { font: inherit; font-size: .88rem; padding: 7px 14px; min-height: 36px; cursor: pointer; border: 1px solid #b9c2cd; border-radius: 6px; background: #f3f5f8; color: var(--ink); }
.swdmap .swd-btn:hover { background: #e6eaf0; }
/* map fills the viewport below the sticky site header (+ the filter bar) */
.swdmap .swd-map-wrap { position: relative; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 420px; }
.swdmap #swd-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; border: 1px solid #c3ccd6; border-radius: 8px; background: #e8e8e4; }
.swdmap .leaflet-container { font-family: var(--font-sans); }
.swdmap .leaflet-container img { max-width: none; }
.swdmap .swd-footer { font-size: .8rem; color: var(--muted); padding-top: 8px; line-height: 1.45; }
.swdmap .swd-footer p { margin: 0 0 3px; }
.swdmap .swd-attr { color: #6b7683; }
.swdmap .swdmap-back { margin: 1rem 0 0; }
.swdmap .swd-legend { background: rgba(255,255,255,.93); padding: 8px 10px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-size: 12px; line-height: 1.5; color: #222; }
.swdmap .swd-legend h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.swdmap .swd-legend .row { display: flex; align-items: center; gap: 7px; }
.swdmap .swd-legend svg { flex: none; display: block; }
.swdmap .swd-info { font-size: 12.5px; line-height: 1.45; min-width: 190px; }
.swdmap .swd-info .nm { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.swdmap .swd-info a { color: #1f4e9c; word-break: break-all; }
.swdmap .swd-info .ll { color: #666; }
.swdmap .leaflet-tooltip.swd-tip { padding: 6px 8px; }
@media (max-width: 720px) {
  .swdmap-wrap { padding: .75rem .75rem 1.25rem; }
  .swdmap .swd-controls { gap: 8px; padding: 8px; }
  .swdmap .swd-field { flex: 1 1 100%; }
  .swdmap .swd-field select, .swdmap #f-operator { width: 100%; font-size: 16px; }
  .swdmap .swd-check { padding-bottom: 2px; }
  .swdmap .swd-status { margin-left: 0; width: 100%; justify-content: space-between; }
  .swdmap .swd-map-wrap { height: 72vh; height: 72dvh; min-height: 360px; }
  .swdmap .swd-legend { font-size: 11px; padding: 5px 7px; }
  .swdmap .swd-legend h4 { font-size: 11px; }
}
@media print { .swdmap .swd-controls, .swdmap .swdmap-back { display: none; } .swdmap .swd-map-wrap { height: 7in; } }
/* ---------- TXSWDMAP END ---------- */

/* ---------- LMOP START: projects/lmop (iframe Leaflet map) ---------- */
.lmopmap .page-hero { padding: 1.4rem 0 1.25rem; }
.lmopmap .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .3rem 0 .35rem; }
.lmopmap .page-intro { font-size: 1rem; }
.lmopmap .page-facts { margin: .55rem 0 0; font-size: .92rem; color: #b9c6d4; line-height: 1.45; max-width: 52rem; }
.lmopmap .page-back { margin: .6rem 0 0; font-size: .95rem; color: #b9c6d4; }
.lmopmap .page-back a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.lmopmap-wrap { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem 1.5rem; }
.lmopmap .lmop-frame-wrap { position: relative; height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 420px; border: 1px solid #c3ccd6; border-radius: 8px; overflow: hidden; background: #e8e8e4; }
.lmopmap .lmop-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lmopmap .lmopmap-back { margin: 1rem 0 0; }
@media (max-width: 720px) {
  .lmopmap-wrap { padding: 0 .75rem 1.25rem; }
  .lmopmap .lmop-frame-wrap { height: 72vh; height: 72dvh; min-height: 360px; }
}
@media print {
  .lmopmap .lmopmap-back { display: none; }
  .lmopmap .lmop-frame-wrap { height: 7in; }
}
/* ---------- LMOP END ---------- */

/* ---------- HOME WIDTH: home-page text spans the full container (same right edge as the hero photo) ---------- */
#about .about-stack, #skills .section-intro, #contact .contact-list { max-width: none; }
#creed .creed-inner { max-width: var(--maxw); }

/* ---------- HERO TWEAKS: attribution inline after the quote; tighter hero buttons ---------- */
.hero-quote blockquote, .hero-quote blockquote p { display: inline; }
.hero-quote figcaption { display: inline; margin: 0 0 0 .4em; white-space: nowrap; }
.hero-actions .btn { padding: .45rem .8rem; }

/* ---------- HERO BACKGROUND IMAGE: navy overlay over dusk panorama; replaces the line texture ---------- */
.hero {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(14,22,36,.62) 0%, rgba(14,22,36,.50) 45%, rgba(14,22,36,.25) 100%),
    url("../img/hero-1920.jpg");
  background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero::after { display: none; }
@media (min-width: 1600px), (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(14,22,36,.62) 0%, rgba(14,22,36,.50) 45%, rgba(14,22,36,.25) 100%),
      url("../img/hero-4k.jpg");
  }
}
@media (max-width: 759px) {
  .hero { background-image: linear-gradient(rgba(14,22,36,.85), rgba(14,22,36,.85)), url("../img/hero-1920.jpg"); }
}
@media (max-width: 759px) and (min-resolution: 2dppx) {
  .hero { background-image: linear-gradient(rgba(14,22,36,.85), rgba(14,22,36,.85)), url("../img/hero-4k.jpg"); }
}
.hero-text { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-actions .btn { text-shadow: none; }

/* ---------- HERO LAYOUT (2026-10-22): everything centered; round photo under the buttons; tall hero so the bottom of the image shows ---------- */
.hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.75rem; }
.hero-text { text-align: center; }
.hero-photo { order: 1; }
.hero-quote { margin-left: auto; margin-right: auto; border-left: 0; padding-left: 0; }
.hero-actions { justify-content: center; }
@media (min-width: 860px) {
  .hero { min-height: clamp(36rem, 50vw, 54rem); display: flex; align-items: center; background-position: right bottom; }
  .hero > .hero-inner { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: 1; }
}

/* ---------- IDEAL ROLE page (2026-10-22): /ideal-role/ job description ---------- */
.jd-actions { margin: 1rem 0 0; }
.jd-body { padding-top: 2rem; padding-bottom: 3rem; }
.jd-card { padding: 1.75rem 2rem; line-height: 1.6; }
.jd-card h2 { font-family: var(--font-serif); color: var(--navy-800); font-size: 1.35rem; margin: 1.75rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.jd-card h2.jd-h1 { font-size: 1.7rem; margin-top: 0; }
.jd-card ul { padding-left: 1.25rem; margin: .4rem 0; }
.jd-card li { margin: .3rem 0; }
.jd-facts { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.25rem; row-gap: .45rem; margin: 1rem 0 0; text-align: left; }
.jd-facts dt { font-weight: 700; color: var(--navy-800); }
.jd-facts dd { margin: 0; }
.jd-pay { border-collapse: collapse; margin-top: .1rem; }
.jd-pay th, .jd-pay td { text-align: left; vertical-align: top; padding: .35rem 1.1rem .35rem 0; border-bottom: 1px solid var(--line); }
.jd-pay th { font-size: .95rem; color: var(--accent-strong); }
.jd-pay td:nth-child(2) { white-space: nowrap; font-weight: 600; }
@media (min-width: 860px) { .jd-nowrap { white-space: nowrap; } }
@media (max-width: 600px) {
  .jd-card { padding: 1.25rem 1rem; }
  .jd-facts { grid-template-columns: 1fr; row-gap: 0; }
  .jd-facts dd { margin-bottom: .6rem; }
  .jd-pay { font-size: .92rem; }
  .jd-pay th, .jd-pay td { padding-right: .6rem; }
}
@media print {
  .jd .jd-body { padding: 0; }
  .jd .jd-card { box-shadow: none; border: 0; background: none; padding: 0; }
}

/* ---------- HEADER PILLS (2026-10-22): tighter Ideal Role pill + Contact button (about half the padding) ---------- */
.role-btn { padding: .15rem .45rem; font-size: .85rem; letter-spacing: 0; }

/* ---------- Beat & Bench visuals archive (projects/beat-and-bench): gallery for 8–10 items ---------- */
.bb-gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.bb-gallery:empty { display: none; }
.bb-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15,42,68,.05); }
.bb-item a { display: block; }
.bb-item img { display: block; width: 100%; height: auto; }
.bb-item figcaption { padding: .7rem .9rem .8rem; font-size: .92rem; color: var(--ink); border-top: 1px solid var(--line); }
.bb-data { margin-top: .6rem; font-size: .95rem; color: #b9c6d4; }

/* ---------- HCCH project review (first Projects item): 16:9 deck iframe + audio ---------- */
.card-review .card-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.deck-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; }
.deck-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.review-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.review-actions .card-link { margin-top: 0; padding-top: 0; }
.review-audio { display: flex; flex-direction: column; gap: .45rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.review-audio-label { margin: 0; font-weight: 600; color: var(--navy-800); }
.review-audio audio { width: 100%; max-width: 32rem; }
.review-video { display: flex; flex-direction: column; gap: .45rem; }
.video-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: #000; }

/* ---------- Results strip (home, under hero) ---------- */
.results { background: var(--navy-900); color: #fff; border-top: 3px solid var(--accent); padding: 1.5rem 0 1.1rem; }
.results-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.result { display: flex; flex-direction: column; gap: .2rem; padding-left: .85rem; border-left: 2px solid rgba(232,176,80,.55); }
.result-num { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.05; color: var(--accent-light); }
.result-label { font-size: .95rem; font-weight: 600; line-height: 1.3; color: #f1f4f8; }
.result-src { font-size: .78rem; line-height: 1.35; color: #b9c6d4; }
.results-more { margin: 1rem 0 0; text-align: right; font-size: .9rem; }
.results-more a { color: var(--accent-light); font-weight: 600; text-decoration: none; }
.results-more a:hover, .results-more a:focus-visible { text-decoration: underline; }
@media (min-width: 760px) { .results-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } .results { padding: 1.75rem 0 1.25rem; } }

/* ---------- Menu button below 960px (the slimmed nav with the My Companies dropdown fits on one row from 960px); without JS the nav simply wraps as before ---------- */
.nav-toggle { display: none; }
@media (max-width: 959px) {
  .site-header.nav-ready .header-inner { column-gap: .5rem; }
  .site-header.nav-ready .role-btn { margin-left: auto; }
  .site-header.nav-ready .nav-toggle {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; white-space: nowrap;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy-800);
    font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  }
  .site-header.nav-ready .nav-toggle:hover, .site-header.nav-ready .nav-toggle[aria-expanded="true"] { background: var(--bg-alt); }
  .site-header.nav-ready .header-inner { flex-wrap: wrap; }
  .site-header.nav-ready .site-nav { display: none; width: 100%; }
  .site-header.nav-ready .site-nav.is-open { display: block; padding: .25rem 0 .4rem; border-top: 1px solid var(--line); max-height: calc(100vh - 4rem); overflow-y: auto; }
  .site-header.nav-ready .site-nav.is-open ul { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0; margin: 0; }
  .site-header.nav-ready .site-nav .nav-ext-last::after { display: none; }
  .site-header.nav-ready .site-nav.is-open a { padding: .65rem .5rem; font-size: 1rem; }
}

/* ---------- LinkedIn button (header, after the RM logo/name) + Contact link ---------- */
.li-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem; margin-left: -.5rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy-800);
  font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.li-btn .li-icon { color: #0a66c2; flex: none; }
.li-btn:hover, .li-btn:focus-visible { border-color: #0a66c2; color: #0a66c2; }
@media (max-width: 959px) { .li-btn { margin-left: -.25rem; padding: .3rem .4rem; } }
/* Small phones: tighten the header so logo + name, LinkedIn, Ideal Role and ☰ Menu share one row */
@media (max-width: 429px) {
  .site-header.nav-ready .header-inner { column-gap: .3rem; padding-left: 14px; padding-right: 14px; }
  .site-header.nav-ready .brand { gap: .4rem; }
  .site-header.nav-ready .brand-mark { width: 1.85rem; height: 1.85rem; font-size: .85rem; }
  .site-header.nav-ready .brand-name { font-size: .95rem; }
  .site-header.nav-ready .li-btn { margin-left: 0; padding: .28rem .35rem; }
  .site-header.nav-ready .role-btn { font-size: .78rem; padding: .12rem .35rem; }
  .site-header.nav-ready .nav-toggle { font-size: .82rem; padding: .28rem .45rem; gap: .25rem; }
}
@media (max-width: 359px) {
  .site-header.nav-ready .header-inner { column-gap: .2rem; padding-left: 10px; padding-right: 10px; }
  .site-header.nav-ready .brand { gap: .3rem; }
  .site-header.nav-ready .brand-mark { width: 1.6rem; height: 1.6rem; font-size: .75rem; border-radius: 6px; }
  .site-header.nav-ready .brand-name { font-size: .84rem; }
  .site-header.nav-ready .li-btn { padding: .22rem .26rem; }
  .site-header.nav-ready .li-btn .li-icon { width: 14px; height: 14px; }
  .site-header.nav-ready .role-btn { font-size: .7rem; padding: .1rem .28rem; }
  .site-header.nav-ready .nav-toggle { font-size: .74rem; padding: .24rem .34rem; gap: .2rem; }
}
.contact-list .li-icon-lg { width: 1.1rem; height: 1.1rem; color: #0a66c2; vertical-align: -.12em; margin-right: .2rem; }
@media (min-width: 900px) { .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62rem; } }
.contact-list li.contact-li { justify-self: start; align-self: center; padding: .55rem .95rem; }
.contact-list .contact-li a { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.05rem; white-space: nowrap; }
.contact-list .contact-li .li-icon-lg { margin-right: 0; vertical-align: 0; }
@media (min-width: 900px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; } }

/* ---------- Contact form ---------- */
.contact-form-wrap { margin-top: 2rem; max-width: 44rem; }
.contact-form-title { margin: 0 0 .75rem; font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy-800); }
.contact-form { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: #fff; padding: 1.25rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-form { padding: 1.5rem 1.75rem; } }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-field .req { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form-field input, .form-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .6rem .7rem; border: 1px solid #b9c2cd; border-radius: 6px; background: #fbfcfd; }
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,132,31,.25); background: #fff; }
.form-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { justify-self: start; border: 0; cursor: pointer; background: var(--navy-800); color: #fff; font: inherit; font-weight: 600; padding: .7rem 1.6rem; }
.btn-send:hover, .btn-send:focus-visible { background: var(--accent-strong); color: #fff; }
.form-status { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 6px; font-weight: 600; }
.form-status.ok { background: #e6f4ea; border: 1px solid #8fc9a0; color: #1d5e33; }
.form-status.err { background: #fdecea; border: 1px solid #e3a49c; color: #8a2a1f; }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- hcch review: video transcript, audio transcript, phone deck preview ---------- */
.review-transcript { margin-top: .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-transcript summary { cursor: pointer; padding: .6rem .9rem; font-weight: 600; color: var(--navy-800); }
.review-transcript summary:hover { color: var(--accent-strong); }
.review-transcript-text { padding: 0 .9rem .5rem; max-height: 420px; overflow-y: auto; }
.review-transcript-text p { margin: 0 0 .8rem; font-size: .95rem; line-height: 1.6; color: var(--ink); }
.audio-transcript-label { margin: .9rem 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.audio-transcript-hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.audio-transcript { position: relative; list-style: none; margin: 0; padding: .35rem; max-height: 220px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; }
.audio-transcript .tx-line { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: .93rem; line-height: 1.5;
  color: var(--ink); padding: .3rem .55rem; border-radius: 6px; cursor: pointer; }
.audio-transcript .tx-line.tx-para { margin-top: .45rem; }
.audio-transcript .tx-line:hover { background: var(--bg); }
.audio-transcript .tx-line.is-current { background: #fbefd9; color: var(--navy-900); box-shadow: inset 3px 0 0 var(--accent); }
.deck-preview { display: none; text-decoration: none; color: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.deck-preview img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.deck-preview-label { display: block; padding: .65rem .9rem; font-weight: 600; }
.deck-preview:hover .deck-preview-label, .deck-preview:focus-visible .deck-preview-label { color: var(--accent-strong); text-decoration: underline; }
@media (max-width: 699px) { .card-review .deck-frame { display: none; } .deck-preview { display: block; } }

/* ---------- HERO ROLE + VALUE LINE (2026-10-23) ---------- */
.hero-role { margin: .55rem 0 0; font-size: clamp(1rem, 2.6vw, 1.25rem); font-weight: 600; color: var(--accent-light); letter-spacing: .01em; }
.hero-value { margin: 1rem auto 0; max-width: 60ch; font-size: clamp(1rem, 2.2vw, 1.12rem); font-weight: 400; line-height: 1.6; color: #e6ecf3; }

/* ---------- HERO READABILITY (2026-10-23): soft navy scrim behind the centered text only; image stays bright at the edges ---------- */
.hero::after {
  display: block; opacity: 1;
  background-image: radial-gradient(ellipse 46% 42% at 50% 38%, rgba(10,16,28,.30) 0%, rgba(10,16,28,.22) 45%, rgba(10,16,28,0) 100%);
}
@media (max-width: 759px) {
  .hero::after { background-image: radial-gradient(ellipse 85% 40% at 50% 40%, rgba(10,16,28,.22) 0%, rgba(10,16,28,.14) 55%, rgba(10,16,28,0) 100%); }
}
.hero-role, .hero-value { text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 12px rgba(0,0,0,.55); }

/* ---------- "My Companies" dropdown in the top nav (hover + click/tap + keyboard; see nav script) ---------- */
.site-nav .nav-dd { position: relative; }
.site-nav .nav-dd-btn {
  display: flex; align-items: center; gap: .3rem; padding: .4rem .45rem; border: 0; border-radius: 6px; background: none;
  color: var(--ink); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.site-nav .nav-dd-btn:hover, .site-nav .nav-dd-btn[aria-expanded="true"] { background: var(--bg-alt); color: var(--navy-700); }
.site-nav .nav-dd-caret { display: inline-block; flex: none; width: .42rem; height: .42rem; margin-top: -.2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.site-nav .nav-dd-btn[aria-expanded="true"] .nav-dd-caret { transform: rotate(-135deg); margin-top: .2rem; }
.site-nav ul.nav-dd-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 13rem; margin: 0; padding: .4rem;
  flex-direction: column; gap: 0; background: var(--navy-800); border-radius: 8px; box-shadow: 0 12px 28px rgba(11,31,51,.28);
}
.site-nav .nav-dd.is-open > ul.nav-dd-menu { display: flex; }
@media (hover: hover) { .site-nav .nav-dd:hover > ul.nav-dd-menu { display: flex; } }
.site-nav .nav-dd-menu a { color: #fff; padding: .5rem .7rem; }
.site-nav .nav-dd-menu a:hover, .site-nav .nav-dd-menu a:focus-visible { background: var(--navy-700); color: var(--accent-light); }
.site-nav .nav-dd-menu li:last-child { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 960px) { .site-nav .nav-dd-btn { padding: .4rem .6rem; font-size: .95rem; } }
/* Inside the open ☰ Menu: My Companies is a tap-to-expand group with an indented sub-list */
@media (max-width: 959px) {
  .site-header.nav-ready .site-nav.is-open .nav-dd-btn { width: 100%; justify-content: space-between; padding: .65rem .5rem; font-size: 1rem; }
  .site-header.nav-ready .site-nav.is-open .nav-dd:hover > ul.nav-dd-menu { display: none; }
  .site-header.nav-ready .site-nav.is-open .nav-dd.is-open > ul.nav-dd-menu {
    display: flex; position: static; min-width: 0; padding: 0 0 .25rem 1rem; background: none; box-shadow: none; border-radius: 0;
    border-left: 2px solid var(--line); margin-left: .5rem;
  }
  .site-header.nav-ready .site-nav.is-open .nav-dd-menu a { color: var(--ink); padding: .55rem .5rem; font-size: .98rem; }
  .site-header.nav-ready .site-nav.is-open .nav-dd-menu a:hover { background: var(--bg-alt); color: var(--navy-700); }
  .site-header.nav-ready .site-nav.is-open .nav-dd-menu li:last-child { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* ---------- Desktop header (>=960px): one tight, centered group: brand · LinkedIn · Ideal Role | nav ---------- */
@media (min-width: 960px) {
  .header-inner { justify-content: center; column-gap: 1.75rem; }
  .li-btn { margin-left: -.75rem; }
  .site-nav { padding-left: 1.5rem; border-left: 1px solid var(--line); margin-left: -.25rem; }
}
@media (min-width: 960px) and (max-width: 1079px) {
  .header-inner { column-gap: 1.25rem; }
  .li-btn { margin-left: -.5rem; }
  .site-nav { padding-left: 1rem; margin-left: -.25rem; }
}
.proj-result { margin: .1rem 0 .2rem !important; max-width: 46rem; }

/* Project cards: link sits under the description, result line rests at the card bottom */
.feature-body .card-link { margin-top: 0; padding-top: 0; }
.feature-body .proj-result { margin-top: auto !important; }
.feature-body .card-link + .proj-result { margin-top: auto !important; padding-top: .1rem; }
.feature-body > p:not(.proj-result):not(.card-kicker) + .card-link { margin-top: -.15rem; }
@media (min-width: 860px) {
  .card-map { align-items: stretch; }
  .card-map .feature-media { align-self: center; }
  .card-map .feature-body { padding-bottom: 0; }
  .card-map .feature-body .card-link { margin-bottom: 1rem; }
}
@media (min-width: 960px) {
  .project-duo .card-doc { align-items: stretch; }
  .project-duo .card-doc .doc-thumb { align-self: start; }
}

.feature-body .card-link-inline { display: inline; margin: 0 0 0 .4rem !important; padding: 0; white-space: nowrap; }

/* Result sentence spans the full card width and rests at the card bottom */
.proj-result-wide { max-width: none !important; grid-column: 1 / -1; align-self: end; margin: .25rem 0 0 !important; }
.card-map, .card-doc { row-gap: 1rem; }
@media (min-width: 860px) { .card-map { grid-template-rows: 1fr auto; } .card-map .feature-media { align-self: start; } }
@media (min-width: 640px) { .card-doc { grid-template-rows: 1fr auto; } }

/* Hero value statement: tapered lines (upside-down pyramid) on wider screens */
@media (min-width: 760px) { .hero-value { max-width: none; } .hero-value .hv-line { display: block; white-space: nowrap; } }
/* Resume (PDF) card in Contact, beside LinkedIn */
.contact-list .contact-resume .li-icon-lg { color: var(--accent-strong); }
@media (min-width: 900px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; max-width: 72rem; } }
.hero-actions, .hero-cta { flex-wrap: wrap; justify-content: center; }

/* Flex-column feature cards (TX SWD, project review): result line starts at the card's left edge, full width */
.card-feature:not(.card-map) > .proj-result-wide { align-self: stretch; }
.resume-btn { margin-left: 0; }
.site-header.nav-ready .resume-btn { margin-left: .3rem; }
