/* ══════════════════════════════════════════════════════
   SAMUEL J. HERNANDEZ JR. — CV PORTFOLIO
   Professional · Multi-Domain · Light Base + Dark Accents
   ══════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Base palette */
  --bg:       #f2f4f9;
  --surface:  #ffffff;
  --surface2: #f8f9fc;
  --border:   #e2e6f0;
  --border2:  #d0d5e8;
  --shadow-sm: 0 1px 3px rgba(10,14,40,.08);
  --shadow-md: 0 4px 16px rgba(10,14,40,.1);
  --shadow-lg: 0 10px 40px rgba(10,14,40,.12);

  /* Text */
  --text:       #0a0e28;
  --text-muted: #4a5480;
  --text-faint: #8890b0;

  /* Header dark */
  --header-bg:   #0a0e28;
  --header-text: #e8ecff;

  /* Domain colors */
  --ops:          #d98200;
  --ops-light:    #fff4e0;
  --ops-border:   #ffd68a;
  --ops-tag-bg:   #fff0cc;
  --ops-tag:      #a86000;

  --aerial:       #0099bb;
  --aerial-light: #e0f7ff;
  --aerial-border:#a0dff0;
  --aerial-tag-bg:#dcf2f8;
  --aerial-tag:   #006880;

  --tech:         #6630cc;
  --tech-light:   #f0e8ff;
  --tech-border:  #c8a8f0;
  --tech-tag-bg:  #ece0ff;
  --tech-tag:     #4a20a0;

  --dev:          #0a9960;
  --dev-light:    #e0fff2;
  --dev-border:   #88dfc0;
  --dev-tag-bg:   #ccf5e4;
  --dev-tag:      #046840;

  --edu:          #1e50c8;
  --edu-light:    #e8f0ff;
  --edu-border:   #a0c0f8;
  --edu-tag-bg:   #dce8ff;
  --edu-tag:      #1040a8;

  --proj:         #c21d5a;
  --proj-light:   #ffeef4;
  --proj-border:  #f6b4cc;
  --proj-tag-bg:  #ffe1ec;
  --proj-tag:     #9a1246;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;

  /* Spacing */
  --s2:0.5rem; --s3:0.75rem; --s4:1rem; --s5:1.25rem;
  --s6:1.5rem; --s8:2rem;    --s10:2.5rem; --s12:3rem;

  /* Ease */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1200px;
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aerial); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: rgba(0,153,187,.15); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ══════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════ */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.identity-name h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.identity-subtitle {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,236,255,.4);
  margin-top: 2px;
  display: block;
}
.identity-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: rgba(232,236,255,.55);
}
.meta-item svg { opacity: .5; flex-shrink: 0; }
.meta-sep { color: rgba(232,236,255,.2); font-size: .8rem; }

.header-creds {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cred-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.cred-orange { background: rgba(217,130,0,.18); color: #ffc56e; border: 1px solid rgba(217,130,0,.3); }
.cred-cyan   { background: rgba(0,153,187,.18); color: #6be8ff; border: 1px solid rgba(0,153,187,.3); }
.cred-violet { background: rgba(102,48,204,.18); color: #d0aaff; border: 1px solid rgba(102,48,204,.3); }
.cred-green  { background: rgba(10,153,96,.18);  color: #6cffc0; border: 1px solid rgba(10,153,96,.3); }

/* ══════════════════════════════════════════
   DOMAIN NAVIGATION
══════════════════════════════════════════ */
.domain-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 76px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.dnav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.dnav-inner::-webkit-scrollbar { display: none; }

.dtab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: .875rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  min-width: 0;
  position: relative;
}
.dtab-icon {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 1px;
  transition: color 200ms;
}
.dtab-icon svg { flex-shrink: 0; }
.dtab-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 200ms;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dtab-sub {
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-faint);
  transition: color 200ms;
}
.dtab:hover .dtab-icon,
.dtab:hover .dtab-label { color: var(--text); }

/* Active states per domain */
.dtab[data-tab="operations"].active  { border-bottom-color: var(--ops); }
.dtab[data-tab="aerial"].active      { border-bottom-color: var(--aerial); }
.dtab[data-tab="technology"].active  { border-bottom-color: var(--tech); }
.dtab[data-tab="development"].active { border-bottom-color: var(--dev); }
.dtab[data-tab="projects"].active { border-bottom-color: var(--proj); }
.dtab[data-tab="education"].active   { border-bottom-color: var(--edu); }

.dtab[data-tab="operations"].active  .dtab-label,
.dtab[data-tab="operations"].active  .dtab-icon  { color: var(--ops); }
.dtab[data-tab="aerial"].active      .dtab-label,
.dtab[data-tab="aerial"].active      .dtab-icon  { color: var(--aerial); }
.dtab[data-tab="technology"].active  .dtab-label,
.dtab[data-tab="technology"].active  .dtab-icon  { color: var(--tech); }
.dtab[data-tab="development"].active .dtab-label,
.dtab[data-tab="development"].active .dtab-icon  { color: var(--dev); }
.dtab[data-tab="projects"].active .dtab-label,
.dtab[data-tab="projects"].active .dtab-icon { color: var(--proj); }
.dtab[data-tab="education"].active   .dtab-label,
.dtab[data-tab="education"].active   .dtab-icon  { color: var(--edu); }

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main-content {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: 2.5rem 4rem;
}

.tab-panel {
  display: none;
  animation: tabIn 300ms var(--ease) both;
}
.tab-panel.active { display: block; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PANEL HERO ─── */
.panel-hero {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.ph-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.ph-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: .1em;
}
.ph-line { flex: none; width: 32px; height: 1px; background: var(--border2); }
.ph-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ph-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}
[data-color="ops"]   .ph-title { color: var(--ops); }
[data-color="aerial"].ph-title { color: var(--aerial); }
[data-color="tech"]  .ph-title { color: var(--tech); }
[data-color="dev"]   .ph-title { color: var(--dev); }
[data-color="edu"]   .ph-title { color: var(--edu); }

/* apply to actual .ph-title within panels */
#tab-operations .ph-title  { color: var(--ops); }
#tab-aerial     .ph-title  { color: var(--aerial); }
#tab-technology .ph-title  { color: var(--tech); }
#tab-development .ph-title { color: var(--dev); }
#tab-projects .ph-title { color: var(--proj); }
#tab-education  .ph-title  { color: var(--edu); }

.ph-desc {
  font-size: clamp(.9rem, 1.1vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 80ch;
  margin-bottom: 1.5rem;
}

.ph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .625rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.sc-val {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.sc-lbl {
  font-size: .68rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* Per-domain stat chip accents */
#tab-operations  .sc-val { color: var(--ops); }
#tab-aerial      .sc-val { color: var(--aerial); }
#tab-technology  .sc-val { color: var(--tech); }
#tab-development .sc-val { color: var(--dev); }
#tab-projects .sc-val { color: var(--proj); }
#tab-education   .sc-val { color: var(--edu); }

/* ─── ZIPPER LAYOUT ─── */
.zipper-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.zipper-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  align-items: start;
}
.zipper-row.zipper-flip {
  grid-template-columns: 2fr 3fr;
}

/* ─── CARD ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.tag-ops    { background: var(--ops-tag-bg);    color: var(--ops-tag); }
.tag-aerial { background: var(--aerial-tag-bg); color: var(--aerial-tag); }
.tag-tech   { background: var(--tech-tag-bg);   color: var(--tech-tag); }
.tag-dev    { background: var(--dev-tag-bg);    color: var(--dev-tag); }
.tag-edu    { background: var(--edu-tag-bg);    color: var(--edu-tag); }

.card-period {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-faint);
}
.card-title {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.25;
}
.card-org {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .875rem;
}
#tab-operations  .card-org { color: var(--ops); }
#tab-aerial      .card-org { color: var(--aerial); }
#tab-technology  .card-org { color: var(--tech); }
#tab-development .card-org { color: var(--dev); }
#tab-projects .card-org { color: var(--proj); }
#tab-education   .card-org { color: var(--edu); }

.card-body {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.card-bullets li {
  font-size: .875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
  max-width: 100%;
}
.card-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-weight: 700;
}
#tab-operations  .card-bullets li::before { color: var(--ops); }
#tab-aerial      .card-bullets li::before { color: var(--aerial); }
#tab-technology  .card-bullets li::before { color: var(--tech); }
#tab-development .card-bullets li::before { color: var(--dev); }
#tab-projects .card-bullets li::before { color: var(--proj); }
#tab-education   .card-bullets li::before { color: var(--edu); }

.card-bullets li strong { color: var(--text); font-weight: 600; }

/* ─── ASIDE CARDS ─── */
.zipper-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.color-ops    { border-left: 3px solid var(--ops); }
.color-aerial { border-left: 3px solid var(--aerial); }
.color-tech   { border-left: 3px solid var(--tech); }
.color-dev    { border-left: 3px solid var(--dev); }
.color-edu    { border-left: 3px solid var(--edu); }

.asc-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.asc-stats { display: flex; flex-direction: column; gap: .7rem; }
.asc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.asc-row:last-child { border-bottom: none; padding-bottom: 0; }
.asc-val {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.asc-icon { font-size: .8rem; }
.asc-lbl {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.3;
}

.color-ops    .asc-val { color: var(--ops); }
.color-aerial .asc-val { color: var(--aerial); }
.color-tech   .asc-val { color: var(--tech); }
.color-dev    .asc-val { color: var(--dev); }
.color-edu    .asc-val { color: var(--edu); }

.aside-badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.abc-heading {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .75rem;
}
.abc-items {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.abc-items span {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.abc-check span::before { content: '✓ '; color: var(--dev); font-size: .65rem; }

/* ─── CERTIFICATION BLOCKS ─── */
.cert-blocks { display: flex; flex-direction: column; gap: 1.25rem; margin-top: .5rem; }
.cert-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.cb-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cb-orange { background: var(--ops-light);    color: var(--ops); }
.cb-cyan   { background: var(--aerial-light); color: var(--aerial); }
.cb-content { flex: 1; }
.cb-content h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.cb-issuer { font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.cb-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.cb-status {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.status-orange { background: var(--ops-tag-bg);    color: var(--ops-tag); }
.status-cyan   { background: var(--aerial-tag-bg); color: var(--aerial-tag); }

/* ─── COURSEWORK GRID ─── */
.coursework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.cw-group {}
.cw-heading {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .6rem;
}
.cw-group ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.cw-group li {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cw-grade {
  display: inline-block;
  margin-left: .4rem;
  padding: 1px 5px;
  background: var(--edu-tag-bg);
  color: var(--edu-tag);
  border-radius: var(--r-sm);
  font-size: .65rem;
  font-weight: 700;
}

/* ─── SKILLS SECTION ─── */
.skills-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.skills-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
#tab-operations  .skills-heading { border-bottom-color: var(--ops-border); }
#tab-aerial      .skills-heading { border-bottom-color: var(--aerial-border); }
#tab-technology  .skills-heading { border-bottom-color: var(--tech-border); }
#tab-development .skills-heading { border-bottom-color: var(--dev-border); }
#tab-projects .skills-heading { border-bottom-color: var(--proj-border); }

.skills-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.sg {}
.sg-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
#tab-operations  .sg-label { color: var(--ops); }
#tab-aerial      .sg-label { color: var(--aerial); }
#tab-technology  .sg-label { color: var(--tech); }
#tab-development .sg-label { color: var(--dev); }
#tab-projects .sg-label { color: var(--proj); }

.sg-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.sg-pills span {
  padding: 5px 13px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid;
  transition: all 150ms var(--ease);
}
.sg-pills span:hover { transform: translateY(-1px); }

.pills-ops    span { background: var(--ops-light);    color: var(--ops-tag);    border-color: var(--ops-border); }
.pills-aerial span { background: var(--aerial-light); color: var(--aerial-tag); border-color: var(--aerial-border); }
.pills-tech   span { background: var(--tech-light);   color: var(--tech-tag);   border-color: var(--tech-border); }
.pills-dev    span { background: var(--dev-light);    color: var(--dev-tag);    border-color: var(--dev-border); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--header-bg);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-name  { font-size: .8rem; font-weight: 600; color: rgba(232,236,255,.7); }
.footer-meta  { font-family: var(--font-mono); font-size: .65rem; color: rgba(232,236,255,.35); }
.footer-copy  { font-size: .7rem; color: rgba(232,236,255,.25); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .header-creds { justify-content: flex-start; }
  .zipper-row, .zipper-row.zipper-flip {
    grid-template-columns: 1fr;
  }
  .zipper-row.zipper-flip .zipper-aside { order: 2; }
  .zipper-row.zipper-flip .zipper-main  { order: 1; }
  .coursework-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .25rem; }
}
@media (max-width: 580px) {
  .panel-hero { padding: 1.25rem; }
  .card { padding: 1.25rem; }
  .ph-stats { gap: .5rem; }
  .stat-chip { padding: .5rem .75rem; }
}

/* ─── DUAL DEGREE LAYOUT ─── */
.dual-degree-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.dual-degree-header {
  margin-bottom: 1.5rem;
}
.ddh-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.dual-degree-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--edu-border);
}

/* Two major cards side by side */
.dual-major-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.major-card {
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
}
.major-primary {
  background: var(--edu-light);
  border: 2px solid var(--edu-border);
}
.major-secondary {
  background: var(--tech-light);
  border: 2px solid var(--tech-border);
}

.mc-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}
.mc-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.major-primary  .mc-num { color: var(--edu); }
.major-secondary .mc-num { color: var(--tech); }
.mc-line { flex: none; width: 20px; height: 1px; background: currentColor; opacity: .3; }
.mc-type {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mc-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.major-primary  .mc-title { color: var(--edu); }
.major-secondary .mc-title { color: var(--tech); }

.mc-body {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .875rem;
}

.mc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.mc-pills span {
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 500;
}
.major-primary  .mc-pills span { background: rgba(30,80,200,.1);  color: var(--edu);  border: 1px solid var(--edu-border); }
.major-secondary .mc-pills span { background: rgba(102,48,204,.1); color: var(--tech); border: 1px solid var(--tech-border); }

/* Footer row */
.dual-degree-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .75rem;
}
.ddf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ddf-val {
  font-size: .9rem;
  font-weight: 800;
  color: var(--edu);
  font-family: var(--font-mono);
}
.ddf-lbl {
  font-size: .65rem;
  color: var(--text-faint);
  font-weight: 500;
}
.ddf-divider {
  width: 1px; height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* Also use full-width for this block by overriding zipper */
.dual-degree-row {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .dual-major-grid { grid-template-columns: 1fr; }
  .ddf-divider { display: none; }
  .dual-degree-footer { justify-content: flex-start; gap: 1.25rem; }
}

/* ─── FULL-WIDTH COURSEWORK GRID ─── */
.cw-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr 1.1fr;
  gap: 0 1.75rem;
  align-items: start;
}
.cw-four-col { /* explicit 4-col class */ }

.cwf-group {
  padding-top: 0;
}

/* Section heading — clear visual hierarchy via left border + background tint */
.cwf-heading {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--edu-light);
  border-left: 3px solid var(--edu);
  padding: .45rem .65rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: .85rem;
  margin-top: 0;
}

.cwf-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cwf-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .4rem;
  border-bottom: 1px solid var(--border);
  transition: background 120ms;
}
.cwf-rows .cwf-row:last-child { border-bottom: none; }
.cwf-row:hover { background: var(--bg); border-radius: var(--r-sm); }

.cwf-code {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 4.8rem;
}
.cwf-name {
  font-size: .8rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.3;
}
.cwf-grade {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  letter-spacing: .04em;
}

/* Grade badge colors — tiered blue system */
.grade-a {
  background: #1e40c0;
  color: #ffffff;
  border: 1px solid #1e40c0;
}
.grade-aminus {
  background: #2b5be0;
  color: #ffffff;
  border: 1px solid #2b5be0;
}
.grade-bplus {
  background: #e0ecff;
  color: #1840b0;
  border: 1px solid #a0c0f0;
}
.grade-b {
  background: #f0f5ff;
  color: #3060a0;
  border: 1px solid #c8dcf0;
}

@media (max-width: 960px) {
  .cw-full-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 580px) {
  .cw-full-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
[data-theme="dark"] {
  --bg:       #0c0f1e;
  --surface:  #131728;
  --surface2: #181e30;
  --surface3: #1e2438;
  --border:   #252d45;
  --border2:  #2d3858;

  --text:       #dde4f5;
  --text-muted: #7080a0;
  --text-faint: #354060;

  --ops:          #f0a020;
  --ops-light:    rgba(240,160,32,.12);
  --ops-border:   rgba(240,160,32,.28);
  --ops-tag-bg:   rgba(240,160,32,.14);
  --ops-tag:      #f0a020;

  --aerial:       #00c8e8;
  --aerial-light: rgba(0,200,232,.12);
  --aerial-border:rgba(0,200,232,.28);
  --aerial-tag-bg:rgba(0,200,232,.14);
  --aerial-tag:   #00c8e8;

  --tech:         #9060f8;
  --tech-light:   rgba(144,96,248,.12);
  --tech-border:  rgba(144,96,248,.28);
  --tech-tag-bg:  rgba(144,96,248,.14);
  --tech-tag:     #9060f8;

  --dev:          #10d98a;
  --dev-light:    rgba(16,217,138,.12);
  --dev-border:   rgba(16,217,138,.28);
  --dev-tag-bg:   rgba(16,217,138,.14);
  --dev-tag:      #10d98a;

  --edu:          #5888ff;
  --edu-light:    rgba(88,136,255,.12);
  --edu-border:   rgba(88,136,255,.28);
  --edu-tag-bg:   rgba(88,136,255,.14);
  --edu-tag:      #5888ff;

  --proj:         #ff5d95;
  --proj-light:   rgba(255,93,149,.12);
  --proj-border:  rgba(255,93,149,.28);
  --proj-tag-bg:  rgba(255,93,149,.14);
  --proj-tag:     #ff5d95;

  --header-bg:   #07080f;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.5);
  --shadow-md:   0 4px 20px rgba(0,0,0,.6);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.7);
}

/* Dark mode panel hero titles */
[data-theme="dark"] #tab-operations  .ph-title { color: var(--ops); }
[data-theme="dark"] #tab-aerial      .ph-title { color: var(--aerial); }
[data-theme="dark"] #tab-technology  .ph-title { color: var(--tech); }
[data-theme="dark"] #tab-development .ph-title { color: var(--dev); }
[data-theme="dark"] #tab-projects .ph-title { color: var(--proj); }
[data-theme="dark"] #tab-education   .ph-title { color: var(--edu); }

/* Dark mode card org colors */
[data-theme="dark"] #tab-operations  .card-org { color: var(--ops); }
[data-theme="dark"] #tab-aerial      .card-org { color: var(--aerial); }
[data-theme="dark"] #tab-technology  .card-org { color: var(--tech); }
[data-theme="dark"] #tab-development .card-org { color: var(--dev); }
[data-theme="dark"] #tab-projects .card-org { color: var(--proj); }
[data-theme="dark"] #tab-education   .card-org { color: var(--edu); }

/* Dark mode card bullets */
[data-theme="dark"] #tab-operations  .card-bullets li::before { color: var(--ops); }
[data-theme="dark"] #tab-aerial      .card-bullets li::before { color: var(--aerial); }
[data-theme="dark"] #tab-technology  .card-bullets li::before { color: var(--tech); }
[data-theme="dark"] #tab-development .card-bullets li::before { color: var(--dev); }
[data-theme="dark"] #tab-projects .card-bullets li::before { color: var(--proj); }
[data-theme="dark"] #tab-education   .card-bullets li::before { color: var(--edu); }

/* Coursework grade colors dark mode */
[data-theme="dark"] .g-a  { color: #80b0ff; }
[data-theme="dark"] .g-am { color: #70a8f8; }
[data-theme="dark"] .g-bp { color: #60c0e8; }
[data-theme="dark"] .g-b  { color: #6088c0; }

/* Theme toggle button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(232,236,255,.6);
  cursor: pointer;
  transition: all 200ms var(--ease);
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.icon-moon { display: block; }
.icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* ══════════════════════════════════════
   DUAL MAJOR DEGREE DISPLAY
══════════════════════════════════════ */
.degree-split-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.dsb-umbrella {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(88,136,255,.2);
}
.dsu-type {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.dsu-sep  { color: rgba(88,136,255,.5); font-size: .8rem; }
.dsu-school { font-size: .8rem; color: rgba(232,236,255,.5); font-weight: 500; }
.dsu-date   { font-size: .78rem; color: rgba(232,236,255,.35); font-weight: 400; }

.dsb-majors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dsb-major {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.dsb-major-1 {
  border-right: 1px solid var(--border);
}

.dsbm-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dsb-major-1 .dsbm-label { color: var(--edu); }
.dsb-major-2 .dsbm-label { color: var(--tech); }

.dsbm-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.dsb-major-1 .dsbm-title { color: var(--edu); }
.dsb-major-2 .dsbm-title { color: var(--tech); }

.dsbm-body {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.dsbm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.dsbm-tags span {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 500;
}
.dsb-major-1 .dsbm-tags span { background: var(--edu-light);  color: var(--edu);  border: 1px solid var(--edu-border); }
.dsb-major-2 .dsbm-tags span { background: var(--tech-light); color: var(--tech); border: 1px solid var(--tech-border); }

.dsb-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: .875rem 1.5rem;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .5rem;
}
.dsbf-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.dsbf-val {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--edu);
}
.dsbf-lbl { font-size: .65rem; color: var(--text-faint); font-weight: 500; }
.dsbf-div { width: 1px; height: 26px; background: var(--border); flex-shrink: 0; }

@media (max-width: 640px) {
  .dsb-majors { grid-template-columns: 1fr; }
  .dsb-major-1 { border-right: none; border-bottom: 1px solid var(--border); }
  .dsbf-div { display: none; }
  .dsb-footer { justify-content: flex-start; gap: 1rem; }
}

/* ══════════════════════════════════════
   2×2 COURSEWORK BOXES
══════════════════════════════════════ */
/* Remove old cwf styles — new ones below */
.cw-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Each bordered section box */
.cwb {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

/* Section heading — dark banner, NOT a color accent, NOT a pill */
.cwb-head {
  background: var(--header-bg);
  color: #e8ecff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(88,136,255,.15);
}
[data-theme="dark"] .cwb-head {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-bottom-color: var(--border);
}

.cwb-body { padding: .25rem 0; }

.cwb-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 120ms;
}
.cwb-body .cwb-row:last-child { border-bottom: none; }
.cwb-row:hover { background: var(--bg); }

.cwb-code {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 4.5rem;
  letter-spacing: .03em;
}
.cwb-name {
  font-size: .83rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.3;
}

/* Grade — plain text, no bubble */
.cwb-g {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
}
.g-a  { color: #1030a0; }
.g-am { color: #1848c8; }
.g-bp { color: #0068a8; }
.g-b  { color: #3868a8; }

[data-theme="dark"] .g-a  { color: #88b4ff; }
[data-theme="dark"] .g-am { color: #80acf8; }
[data-theme="dark"] .g-bp { color: #60b8e0; }
[data-theme="dark"] .g-b  { color: #6890c0; }

@media (max-width: 700px) {
  .cw-2x2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   DARK MODE — TARGETED CONTRAST FIXES
══════════════════════════════════════ */

/* Fix 1: Inactive tab labels invisible in dark mode */
[data-theme="dark"] .domain-nav {
  background: var(--surface);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .dtab-label { color: #6878a0; }
[data-theme="dark"] .dtab-sub   { color: #3a4565; }
[data-theme="dark"] .dtab-icon  { color: #3a4565; }
[data-theme="dark"] .dtab:hover .dtab-label { color: var(--text); }
[data-theme="dark"] .dtab:hover .dtab-icon  { color: var(--text-muted); }

/* Fix 2: Degree umbrella header — add visible border in dark mode */
[data-theme="dark"] .dsb-umbrella {
  background: rgba(88,136,255,.12);
  border-bottom-color: rgba(88,136,255,.25);
}

/* Fix 3: Stat chip values — ensure domain colors show in dark mode */
[data-theme="dark"] #tab-operations  .sc-val { color: var(--ops); }
[data-theme="dark"] #tab-aerial      .sc-val { color: var(--aerial); }
[data-theme="dark"] #tab-technology  .sc-val { color: var(--tech); }
[data-theme="dark"] #tab-development .sc-val { color: var(--dev); }
[data-theme="dark"] #tab-projects .sc-val { color: var(--proj); }
[data-theme="dark"] #tab-education   .sc-val { color: var(--edu); }

/* Fix 4: Panel hero card dark background */
[data-theme="dark"] .panel-hero {
  background: var(--surface);
  border-color: var(--border);
}

/* Fix 5: Card backgrounds in dark mode */
[data-theme="dark"] .card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

/* Fix 6: Aside cards in dark mode */
[data-theme="dark"] .aside-stat-card,
[data-theme="dark"] .aside-badge-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .asc-lbl       { color: var(--text-muted); }
[data-theme="dark"] .asc-row       { border-bottom-color: var(--border); }
[data-theme="dark"] .abc-items span {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text-muted);
}

/* Fix 7: Stat chip dark mode backgrounds */
[data-theme="dark"] .stat-chip {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="dark"] .sc-lbl { color: var(--text-faint); }

/* Fix 8: Skills section dark mode */
[data-theme="dark"] .skills-section {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .sg-pills span { border-color: var(--border); }
[data-theme="dark"] .pills-ops    span { background: var(--ops-light);    color: var(--ops);    border-color: var(--ops-border); }
[data-theme="dark"] .pills-aerial span { background: var(--aerial-light); color: var(--aerial); border-color: var(--aerial-border); }
[data-theme="dark"] .pills-tech   span { background: var(--tech-light);   color: var(--tech);   border-color: var(--tech-border); }
[data-theme="dark"] .pills-dev    span { background: var(--dev-light);    color: var(--dev);    border-color: var(--dev-border); }

/* Fix 9: Card tag colors in dark mode */
[data-theme="dark"] .tag-ops    { background: var(--ops-tag-bg);    color: var(--ops-tag);    border-color: var(--ops-border); }
[data-theme="dark"] .tag-aerial { background: var(--aerial-tag-bg); color: var(--aerial-tag); border-color: var(--aerial-border); }
[data-theme="dark"] .tag-tech   { background: var(--tech-tag-bg);   color: var(--tech-tag);   border-color: var(--tech-border); }
[data-theme="dark"] .tag-dev    { background: var(--dev-tag-bg);    color: var(--dev-tag);    border-color: var(--dev-border); }
[data-theme="dark"] .tag-edu    { background: var(--edu-tag-bg);    color: var(--edu-tag);    border-color: var(--edu-border); }

/* Fix 10: Section label text in dark */
[data-theme="dark"] .sl-line { background: var(--border); }
[data-theme="dark"] .sl-name { color: var(--text-muted); }
[data-theme="dark"] .ph-label .ph-line { background: var(--border); }
[data-theme="dark"] .ph-label .ph-tag  { color: var(--text-faint); }

/* Fix 11: Card period text */
[data-theme="dark"] .card-period { color: var(--text-faint); }

/* Fix 12: Dual major cards in dark */
[data-theme="dark"] .dsb-major { background: transparent; }
[data-theme="dark"] .degree-split-block { 
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .dsb-footer {
  background: var(--surface2);
  border-top-color: var(--border);
}
[data-theme="dark"] .dsbm-tags span {
  /* already uses CSS vars that update in dark mode */
}

/* Fix 13: Cert cards in dark */
[data-theme="dark"] .cert-row {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="dark"] .cert-row:hover { border-color: var(--aerial); }
[data-theme="dark"] .cert-meta { color: var(--text-faint); }
[data-theme="dark"] .cert-sub  { color: var(--text-muted); }

/* Fix 14: Edu block dark */
[data-theme="dark"] .edu-block {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="dark"] .lang-bar { background: var(--surface3); }

/* Fix 15: Dev terminal in dark — already dark, just ensure borders */
[data-theme="dark"] .dev-terminal { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .dt-header    { background: rgba(255,255,255,.03); border-bottom-color: rgba(255,255,255,.04); }

/* Fix 16: Theme toggle visibility — from inside dark header */
.site-header .theme-toggle-btn {
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   MOBILE + TOGGLE FIXES
══════════════════════════════════════ */

/* Fix 1: Tabs must not shrink — prevents mobile overflow/overlap */
.dtab {
  flex-shrink: 0;
}

/* Fix 2: Toggle — position it fixed on mobile so it's always accessible */
@media (max-width: 860px) {
  /* Hide the inline header toggle on mobile */
  .site-header .theme-toggle-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--header-bg);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
  }
  [data-theme="dark"] .site-header .theme-toggle-btn {
    background: var(--surface2);
    border-color: var(--border2);
  }
}

/* Fix 3: Toggle visual feedback — smooth background transition on switch */
.theme-toggle-btn {
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

/* Fix 4: Make tab sub-labels hide on very small screens */
@media (max-width: 520px) {
  .dtab-sub { display: none; }
  .dtab { padding: .75rem .9rem; }
}

/* Domain nav scroll hint — right fade */
.domain-nav::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 32px;
  background: linear-gradient(90deg, transparent, var(--surface));
  pointer-events: none;
  z-index: 2;
}

/* ══════════════════════════════════════
   TAB AFFORDANCE + LAYOUT CORRECTIONS
══════════════════════════════════════ */

/* ─── Use JS-measured header height for sticky offset ─── */
.domain-nav {
  /* top is set dynamically via --header-h JS variable */
  top: var(--header-h, 80px);
  position: sticky;
}

/* ─── Tabs: clear interactive affordance ─── */
.dtab {
  border-radius: 6px 6px 0 0;
  transition: background 150ms ease;
}
.dtab:hover {
  background: rgba(0, 0, 0, .05);
}
.dtab:hover .dtab-label { color: var(--text); }
.dtab:hover .dtab-icon  { color: var(--text-muted); }

/* Active tab: visible background tint + colored border — not just border alone */
.dtab[data-tab="operations"].active  { background: rgba(240,160,32,.07); }
.dtab[data-tab="aerial"].active      { background: rgba(0,196,224,.07); }
.dtab[data-tab="technology"].active  { background: rgba(102,48,204,.07); }
.dtab[data-tab="development"].active { background: rgba(16,217,138,.07); }
.dtab[data-tab="projects"].active { background: rgba(255,93,149,.07); }
.dtab[data-tab="education"].active   { background: rgba(88,136,255,.07); }

/* Dark mode hover */
[data-theme="dark"] .dtab:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .dtab[data-tab="operations"].active  { background: rgba(240,160,32,.10); }
[data-theme="dark"] .dtab[data-tab="aerial"].active      { background: rgba(0,200,232,.10); }
[data-theme="dark"] .dtab[data-tab="technology"].active  { background: rgba(144,96,248,.10); }
[data-theme="dark"] .dtab[data-tab="development"].active { background: rgba(16,217,138,.10); }
[data-theme="dark"] .dtab[data-tab="projects"].active { background: rgba(255,93,149,.10); }
[data-theme="dark"] .dtab[data-tab="education"].active   { background: rgba(88,136,255,.10); }

/* ─── Section eyebrow label (01 / 02 etc) — more color, more breath ─── */
.ph-label {
  margin-bottom: 1.25rem;
}
.ph-num {
  /* Each domain gets its own accent color */
}
#tab-operations  .ph-num { color: var(--ops); }
#tab-aerial      .ph-num { color: var(--aerial); }
#tab-technology  .ph-num { color: var(--tech); }
#tab-development .ph-num { color: var(--dev); }
#tab-projects .ph-num { color: var(--proj); }
#tab-education   .ph-num { color: var(--edu); }

.ph-tag {
  letter-spacing: .14em;
}
#tab-operations  .ph-tag { color: rgba(240,160,32,.7); }
#tab-aerial      .ph-tag { color: rgba(0,196,224,.7); }
#tab-technology  .ph-tag { color: rgba(102,48,204,.7); }
#tab-development .ph-tag { color: rgba(16,217,138,.7); }
#tab-projects .ph-tag { color: rgba(255,93,149,.7); }
#tab-education   .ph-tag { color: rgba(88,136,255,.7); }

/* ─── Main content: more top breathing room ─── */
.main-content {
  padding-top: 3rem;
}

/* ══════════════════════════════════════════════════════
   VISUAL POLISH v2 — Quality Improvements
   ══════════════════════════════════════════════════════ */

/* ── GRADE COLUMN: fixed-width box, letter never shifts ──────────
   width: 2.75rem gives room for "B+" in monospace without breaking.
   text-align: left keeps the base letter at a constant left edge —
   "B" and the "B" in "B+" are always at exactly the same x-position.
   The "+" simply extends to the right within the reserved space.
   ─────────────────────────────────────────────────────────────── */
.cwb-g {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
  /* Fixed width — sized for widest possible grade "B+" */
  width: 2.75rem;
  /* Letter always anchored to the left — modifier adds right, never shifts */
  text-align: left;
  padding: 3px 7px;
  border-radius: var(--r-sm);
  display: inline-block;
}

/* Grade badge fills — subtle pill, consistent size */
.g-a  {
  background: rgba(16,48,160,.08);
  color: #0f30a0;
  border: 1px solid rgba(16,48,160,.18);
}
.g-bp {
  background: rgba(0,104,168,.07);
  color: #0058a0;
  border: 1px solid rgba(0,104,168,.15);
}
.g-b  {
  background: rgba(56,104,168,.06);
  color: #385890;
  border: 1px solid rgba(56,104,168,.13);
}
/* Dark mode grade badges */
[data-theme="dark"] .g-a  {
  background: rgba(136,180,255,.12);
  color: #9fc8ff;
  border: 1px solid rgba(136,180,255,.22);
}
[data-theme="dark"] .g-bp {
  background: rgba(96,184,224,.10);
  color: #7ad0f0;
  border: 1px solid rgba(96,184,224,.20);
}
[data-theme="dark"] .g-b  {
  background: rgba(104,144,192,.09);
  color: #7090c0;
  border: 1px solid rgba(104,144,192,.18);
}

/* Remove unused g-am class colors since we no longer show minus grades */
.g-am { display: none; }

/* ── PANEL HERO: domain-color left accent stripe ─────────────── */
.panel-hero {
  border-left: 4px solid transparent;
  transition: border-left-color 300ms var(--ease);
}
#tab-operations  .panel-hero { border-left-color: var(--ops); }
#tab-aerial      .panel-hero { border-left-color: var(--aerial); }
#tab-technology  .panel-hero { border-left-color: var(--tech); }
#tab-development .panel-hero { border-left-color: var(--dev); }
#tab-projects .panel-hero { border-left-color: var(--proj); }
#tab-education   .panel-hero { border-left-color: var(--edu); }

/* ── PANEL HERO: section number in domain accent color ───────── */
#tab-operations  .ph-num { color: var(--ops);    opacity: .8; }
#tab-aerial      .ph-num { color: var(--aerial); opacity: .8; }
#tab-technology  .ph-num { color: var(--tech);   opacity: .8; }
#tab-development .ph-num { color: var(--dev);    opacity: .8; }
#tab-projects .ph-num { color: var(--proj);    opacity: .8; }
#tab-education   .ph-num { color: var(--edu);    opacity: .8; }

/* ── PANEL HERO: accent line uses domain color ───────────────── */
#tab-operations  .ph-line { background: var(--ops-border); }
#tab-aerial      .ph-line { background: var(--aerial-border); }
#tab-technology  .ph-line { background: var(--tech-border); }
#tab-development .ph-line { background: var(--dev-border); }
#tab-projects .ph-line { background: var(--proj-border); }
#tab-education   .ph-line { background: var(--edu-border); }

/* ── STAT CHIPS: domain-color top accent on active tab ───────── */
#tab-operations  .stat-chip { border-top: 2px solid var(--ops-border); }
#tab-aerial      .stat-chip { border-top: 2px solid var(--aerial-border); }
#tab-technology  .stat-chip { border-top: 2px solid var(--tech-border); }
#tab-development .stat-chip { border-top: 2px solid var(--dev-border); }
#tab-projects .stat-chip { border-top: 2px solid var(--proj-border); }
#tab-education   .stat-chip { border-top: 2px solid var(--edu-border); }

/* ── CARDS: domain-colored left border on top-level cards ───── */
#tab-operations  .zipper-main.card  { border-left: 3px solid var(--ops-border); }
#tab-aerial      .zipper-main.card  { border-left: 3px solid var(--aerial-border); }
#tab-technology  .zipper-main.card  { border-left: 3px solid var(--tech-border); }
#tab-development .zipper-main.card  { border-left: 3px solid var(--dev-border); }
#tab-projects .zipper-main.card { border-left: 3px solid var(--proj-border); }
#tab-education   .zipper-main.card  { border-left: 3px solid var(--edu-border); }

/* ── CARD HOVER: domain-tinted shadow for depth ─────────────── */
#tab-operations  .card:hover { box-shadow: 0 6px 24px rgba(217,130,0,.12), var(--shadow-md); }
#tab-aerial      .card:hover { box-shadow: 0 6px 24px rgba(0,153,187,.12), var(--shadow-md); }
#tab-technology  .card:hover { box-shadow: 0 6px 24px rgba(102,48,204,.12), var(--shadow-md); }
#tab-development .card:hover { box-shadow: 0 6px 24px rgba(10,153,96,.12),  var(--shadow-md); }
#tab-projects .card:hover { box-shadow: 0 6px 24px rgba(194,29,90,.12),  var(--shadow-md); }
#tab-education   .card:hover { box-shadow: 0 6px 24px rgba(30,80,200,.12),  var(--shadow-md); }

/* Dark mode card hover shadows */
[data-theme="dark"] #tab-operations  .card:hover { box-shadow: 0 6px 28px rgba(240,160,32,.15), var(--shadow-md); }
[data-theme="dark"] #tab-aerial      .card:hover { box-shadow: 0 6px 28px rgba(0,200,232,.15),  var(--shadow-md); }
[data-theme="dark"] #tab-technology  .card:hover { box-shadow: 0 6px 28px rgba(144,96,248,.15), var(--shadow-md); }
[data-theme="dark"] #tab-development .card:hover { box-shadow: 0 6px 28px rgba(16,217,138,.15), var(--shadow-md); }
[data-theme="dark"] #tab-projects .card:hover { box-shadow: 0 6px 28px rgba(255,93,149,.15), var(--shadow-md); }
[data-theme="dark"] #tab-education   .card:hover { box-shadow: 0 6px 28px rgba(88,136,255,.15), var(--shadow-md); }

/* ── DOMAIN TAB: hover background tint ──────────────────────── */
.dtab[data-tab="operations"]:hover  { background: rgba(217,130,0,.05); }
.dtab[data-tab="aerial"]:hover      { background: rgba(0,153,187,.05); }
.dtab[data-tab="technology"]:hover  { background: rgba(102,48,204,.05); }
.dtab[data-tab="development"]:hover { background: rgba(10,153,96,.05); }
.dtab[data-tab="projects"]:hover { background: rgba(194,29,90,.05); }
.dtab[data-tab="education"]:hover   { background: rgba(30,80,200,.05); }

.dtab[data-tab="operations"].active  { background: rgba(217,130,0,.04); }
.dtab[data-tab="aerial"].active      { background: rgba(0,153,187,.04); }
.dtab[data-tab="technology"].active  { background: rgba(102,48,204,.04); }
.dtab[data-tab="development"].active { background: rgba(10,153,96,.04); }
.dtab[data-tab="projects"].active { background: rgba(194,29,90,.04); }
.dtab[data-tab="education"].active   { background: rgba(30,80,200,.04); }

/* Dark mode tab hover/active tints */
[data-theme="dark"] .dtab[data-tab="operations"]:hover  { background: rgba(240,160,32,.06); }
[data-theme="dark"] .dtab[data-tab="aerial"]:hover      { background: rgba(0,200,232,.06); }
[data-theme="dark"] .dtab[data-tab="technology"]:hover  { background: rgba(144,96,248,.06); }
[data-theme="dark"] .dtab[data-tab="development"]:hover { background: rgba(16,217,138,.06); }
[data-theme="dark"] .dtab[data-tab="projects"]:hover { background: rgba(255,93,149,.06); }
[data-theme="dark"] .dtab[data-tab="education"]:hover   { background: rgba(88,136,255,.06); }
[data-theme="dark"] .dtab[data-tab="operations"].active  { background: rgba(240,160,32,.05); }
[data-theme="dark"] .dtab[data-tab="aerial"].active      { background: rgba(0,200,232,.05); }
[data-theme="dark"] .dtab[data-tab="technology"].active  { background: rgba(144,96,248,.05); }
[data-theme="dark"] .dtab[data-tab="development"].active { background: rgba(16,217,138,.05); }
[data-theme="dark"] .dtab[data-tab="projects"].active { background: rgba(255,93,149,.05); }
[data-theme="dark"] .dtab[data-tab="education"].active   { background: rgba(88,136,255,.05); }

/* ── ASIDE STAT CARDS: larger, bolder values ─────────────────── */
.asc-val {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -.01em;
}

/* ── SKILLS PILLS: sharper hover with shadow lift ────────────── */
.sg-pills span:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
[data-theme="dark"] .sg-pills span:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.4);
}

/* ── SKILLS HEADING: domain underline instead of generic border ─ */
#tab-operations  .skills-heading { color: var(--text); }
#tab-aerial      .skills-heading { color: var(--text); }
#tab-technology  .skills-heading { color: var(--text); }
#tab-development .skills-heading { color: var(--text); }
#tab-projects .skills-heading { color: var(--text); }

/* ── COURSEWORK SECTION: subtle header background in edu tint ─── */
.cwb-head {
  background: var(--edu-light);
  color: var(--edu);
  border-bottom: 2px solid var(--edu-border);
  font-size: .62rem;
  letter-spacing: .13em;
}
[data-theme="dark"] .cwb-head {
  background: rgba(88,136,255,.1);
  color: var(--edu);
  border-bottom-color: var(--edu-border);
}

/* ── COURSEWORK ROWS: zebra striping for readability ────────── */
.cwb-row:nth-child(even) {
  background: var(--bg);
}
[data-theme="dark"] .cwb-row:nth-child(even) {
  background: rgba(255,255,255,.02);
}

/* ── ASIDE BADGE CARD ITEMS: subtle hover lift ───────────────── */
.abc-items span {
  transition: all 150ms var(--ease);
}
.abc-items span:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
[data-theme="dark"] .abc-items span:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ── CERT BLOCKS: left accent by type ───────────────────────── */
.cert-block {
  border-left: 3px solid transparent;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.cert-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
/* Cert block left-accent by icon type (uses :has for modern browsers) */
.cert-block:has(.cb-orange) { border-left-color: var(--ops); }
.cert-block:has(.cb-cyan)   { border-left-color: var(--aerial); }

/* ── DUAL DEGREE CARD: stronger edu accent ──────────────────── */
.dual-degree-title {
  border-bottom: 2px solid var(--edu-border);
}

/* ── PANEL HERO dark mode: slightly elevated surface ─────────── */
[data-theme="dark"] .panel-hero {
  background: var(--surface2);
  border-color: var(--border2);
}

/* ── CARD dark mode: slightly elevated on hover ──────────────── */
[data-theme="dark"] .card:hover {
  background: var(--surface2);
}

/* ── TAB ACTIVE: slightly thicker underline ─────────────────── */
.dtab {
  border-bottom-width: 3px;
}
.dtab.active {
  border-bottom-width: 3px;
}

/* ── CARD TAG: slightly larger click area ─────────────────────  */
.card-tag {
  font-size: .62rem;
  padding: 4px 11px;
}

/* ── ABC-CHECK: use domain green more consistently ──────────── */
.abc-check span::before {
  color: var(--dev);
}

/* ── HERO SEPARATOR LINE: longer and domain-colored ─────────── */
.ph-line {
  width: 40px;
  height: 2px;
  border-radius: 2px;
}

/* ── RESPONSIVE: keep left border on mobile (reduce to 3px) ─── */
@media (max-width: 860px) {
  #tab-operations  .panel-hero,
  #tab-aerial      .panel-hero,
  #tab-technology  .panel-hero,
  #tab-development .panel-hero,
  #tab-education   .panel-hero {
    border-left-width: 3px;
  }
  #tab-projects .panel-hero {
    border-left-width: 3px;
  }
  #tab-operations  .zipper-main.card,
  #tab-aerial      .zipper-main.card,
  #tab-technology  .zipper-main.card,
  #tab-development .zipper-main.card,
  #tab-education   .zipper-main.card {
    border-left-width: 2px;
  }
  #tab-projects .zipper-main.card {
    border-left-width: 2px;
  }
}

/* ══════════════════════════════════════════════════════
   TAB CHIP REDESIGN v2 — High Contrast, Unmistakable
   Key principle: inactive must contrast with the nav bar,
   active must contrast dramatically with inactive.
   ══════════════════════════════════════════════════════ */

/* Nav bar: vertical room for floating chips */
.domain-nav {
  padding-block: .75rem;
  border-bottom: 2px solid var(--border);
}
.dnav-inner {
  gap: .5rem;
  align-items: center;
}

/* ── INACTIVE CHIP ────────────────────────────────────
   WHITE background on grey nav creates obvious contrast.
   Solid 2px border — the chip silhouette is unmistakable.
   ─────────────────────────────────────────────────── */
.dtab {
  background: #ffffff;
  border: 2px solid var(--border2);
  border-bottom: 2px solid var(--border2);
  border-radius: var(--r-md);
  padding: .55rem 1.1rem;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: background 160ms var(--ease),
              border-color 160ms var(--ease),
              box-shadow 160ms var(--ease),
              transform 160ms var(--ease);
}
.dtab-label { font-size: .88rem; color: var(--text-muted); }
.dtab-icon  { color: var(--text-faint); }
.dtab-sub   { font-size: .63rem; color: var(--text-faint); }

/* ── HOVER ────────────────────────────────────────────
   Lifts, border thickens in domain color on data-tab hover.
   ─────────────────────────────────────────────────── */
.dtab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  background: #ffffff;
}
.dtab[data-tab="operations"]:hover  { border-color: var(--ops-border); }
.dtab[data-tab="aerial"]:hover      { border-color: var(--aerial-border); }
.dtab[data-tab="technology"]:hover  { border-color: var(--tech-border); }
.dtab[data-tab="development"]:hover { border-color: var(--dev-border); }
.dtab[data-tab="projects"]:hover { border-color: var(--proj-border); }
.dtab[data-tab="education"]:hover   { border-color: var(--edu-border); }

.dtab:hover .dtab-label { color: var(--text); }
.dtab:hover .dtab-icon  { color: var(--text-muted); }

/* ── ACTIVE CHIP ──────────────────────────────────────
   Saturated domain-color fill + full domain-color border.
   Domain text is already set by earlier rules.
   This is the high-contrast "selected" state.
   ─────────────────────────────────────────────────── */
.dtab.active {
  transform: none;
  border-width: 2px;
}

/* Light mode — solid tint fill at high opacity */
.dtab[data-tab="operations"].active {
  background: #fff4e0;
  border-color: var(--ops);
  box-shadow: 0 2px 12px rgba(217,130,0,.2);
}
.dtab[data-tab="aerial"].active {
  background: #dcf6ff;
  border-color: var(--aerial);
  box-shadow: 0 2px 12px rgba(0,153,187,.2);
}
.dtab[data-tab="technology"].active {
  background: #ede6ff;
  border-color: var(--tech);
  box-shadow: 0 2px 12px rgba(102,48,204,.2);
}
.dtab[data-tab="development"].active {
  background: #d6fff0;
  border-color: var(--dev);
  box-shadow: 0 2px 12px rgba(10,153,96,.2);
}
.dtab[data-tab="projects"].active {
  background: #ffe0eb;
  border-color: var(--proj);
  box-shadow: 0 2px 12px rgba(194,29,90,.2);
}
.dtab[data-tab="education"].active {
  background: #e0eaff;
  border-color: var(--edu);
  box-shadow: 0 2px 12px rgba(30,80,200,.2);
}

/* ── DARK MODE ────────────────────────────────────────
   Inactive: raised dark chip, clearly above nav surface.
   Active: saturated domain tint + full domain border + glow.
   ─────────────────────────────────────────────────── */
[data-theme="dark"] .dtab {
  background: #1e2438;
  border-color: #2d3858;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
[data-theme="dark"] .dtab:hover {
  background: #252e48;
  border-color: #3a4870;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  transform: translateY(-2px);
}
[data-theme="dark"] .dtab[data-tab="operations"]:hover  { border-color: var(--ops-border); }
[data-theme="dark"] .dtab[data-tab="aerial"]:hover      { border-color: var(--aerial-border); }
[data-theme="dark"] .dtab[data-tab="technology"]:hover  { border-color: var(--tech-border); }
[data-theme="dark"] .dtab[data-tab="development"]:hover { border-color: var(--dev-border); }
[data-theme="dark"] .dtab[data-tab="projects"]:hover { border-color: var(--proj-border); }
[data-theme="dark"] .dtab[data-tab="education"]:hover   { border-color: var(--edu-border); }

[data-theme="dark"] .dtab-label { color: #8898c0; }
[data-theme="dark"] .dtab-sub   { color: #3f4f72; }
[data-theme="dark"] .dtab-icon  { color: #4a5878; }
[data-theme="dark"] .dtab:hover .dtab-label { color: var(--text); }
[data-theme="dark"] .dtab:hover .dtab-icon  { color: var(--text-muted); }

[data-theme="dark"] .dtab[data-tab="operations"].active {
  background: rgba(240,160,32,.18);
  border-color: var(--ops);
  box-shadow: 0 2px 16px rgba(240,160,32,.25);
}
[data-theme="dark"] .dtab[data-tab="aerial"].active {
  background: rgba(0,200,232,.16);
  border-color: var(--aerial);
  box-shadow: 0 2px 16px rgba(0,200,232,.25);
}
[data-theme="dark"] .dtab[data-tab="technology"].active {
  background: rgba(144,96,248,.18);
  border-color: var(--tech);
  box-shadow: 0 2px 16px rgba(144,96,248,.28);
}
[data-theme="dark"] .dtab[data-tab="development"].active {
  background: rgba(16,217,138,.16);
  border-color: var(--dev);
  box-shadow: 0 2px 16px rgba(16,217,138,.25);
}
[data-theme="dark"] .dtab[data-tab="projects"].active {
  background: rgba(255,93,149,.16);
  border-color: var(--proj);
  box-shadow: 0 2px 16px rgba(255,93,149,.25);
}
[data-theme="dark"] .dtab[data-tab="education"].active {
  background: rgba(88,136,255,.18);
  border-color: var(--edu);
  box-shadow: 0 2px 16px rgba(88,136,255,.28);
}

/* ── MOBILE ───────────────────────────────────────── */
@media (max-width: 860px) {
  .dtab { padding: .5rem .95rem; }
}
@media (max-width: 520px) {
  .dtab { padding: .45rem .75rem; gap: 1px; }
  .dtab-sub { display: none; }
}

/* Kill the old scroll-fade that conflicts with chip layout */
.domain-nav::after { display: none; }



/* ── MOBILE HEADER: badge overflow fix ──────────────────────────
   On small screens, badges were stacking 4 deep.
   Below 700px: shrink padding + font, allow 2-column wrap.
   Below 480px: limit to 2 lines max with overflow control.
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-creds {
    gap: .35rem;
  }
  .cred-badge {
    padding: .28rem .6rem;
    font-size: .65rem;
    gap: .3rem;
  }
  .cred-badge svg { width: 11px; height: 11px; }
}

/* On very small screens, BBA badge abbreviates via text truncation */
@media (max-width: 480px) {
  .header-creds {
    flex-wrap: wrap;
    max-height: 4.5rem;
    overflow: hidden;
  }
  .cred-badge {
    padding: .25rem .55rem;
    font-size: .62rem;
    white-space: nowrap;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ════════════════════════════════════════════════════════════════════
   DOMAIN PERSONALITY SYSTEM — hierarch.me
   Samuel J. Hernandez Jr.

   Each tab owns its identity. Operations doesn't look like Technology.
   Aerial doesn't feel like Education. The domain drives the design.
   ════════════════════════════════════════════════════════════════════ */

/* ── SHARED: position context for watermark pseudo-elements ────── */
.panel-hero {
  position: relative;
}
.ph-label, .ph-title, .ph-desc, .ph-stats { position: relative; z-index: 1; }

/* ── SHARED: large ghost section numbers — depth behind the hero ─ */
#tab-operations  .panel-hero::before,
#tab-aerial      .panel-hero::before,
#tab-technology  .panel-hero::before,
#tab-development .panel-hero::before,
#tab-education   .panel-hero::before {
  position: absolute;
  right: 1.25rem;
  top: -.5rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
#tab-operations  .panel-hero::before { content: '01'; color: var(--ops);    opacity: .08; }
#tab-aerial      .panel-hero::before { content: '02'; color: var(--aerial); opacity: .07; }
#tab-technology  .panel-hero::before { content: '03'; color: var(--tech);   opacity: .07; }
#tab-development .panel-hero::before { content: '04'; color: var(--dev);    opacity: .06; }
#tab-education   .panel-hero::before { content: '05'; color: var(--edu);    opacity: .07; }

/* ── SHARED: editorial stat display — remove chip cards ─────────
   Stats are data, not UI elements. Large numbers, thin separators.
   ─────────────────────────────────────────────────────────────── */
.ph-stats {
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: .75rem;
  align-items: baseline;
  flex-wrap: nowrap;
}
/* Override all prior stat-chip treatments across all tabs */
#tab-operations .stat-chip, #tab-aerial .stat-chip,
#tab-technology .stat-chip, #tab-development .stat-chip,
#tab-education  .stat-chip {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border2);
  border-radius: 0;
  box-shadow: none;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
#tab-projects .stat-chip {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border2);
  border-radius: 0;
  box-shadow: none;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
#tab-operations .stat-chip:first-child, #tab-aerial .stat-chip:first-child,
#tab-technology .stat-chip:first-child, #tab-development .stat-chip:first-child,
#tab-education  .stat-chip:first-child {
  border-left: none;
  padding-left: 0;
}
#tab-projects .stat-chip:first-child {
  border-left: none;
  padding-left: 0;
}
.sc-val {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}
.sc-lbl {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint) !important;
}
/* Domain stat colors — explicit to survive cascade */
#tab-operations  .sc-val { color: var(--ops); }
#tab-aerial      .sc-val { color: var(--aerial); }
#tab-technology  .sc-val { color: var(--tech); }
#tab-development .sc-val { color: var(--dev); }
#tab-projects .sc-val { color: var(--proj); }
#tab-education   .sc-val { color: var(--edu); }

/* Dark mode editorial stat display */
[data-theme="dark"] .ph-stats { border-top-color: var(--border); }
[data-theme="dark"] #tab-operations .stat-chip,
[data-theme="dark"] #tab-aerial .stat-chip,
[data-theme="dark"] #tab-technology .stat-chip,
[data-theme="dark"] #tab-development .stat-chip,
[data-theme="dark"] #tab-education .stat-chip {
  border-left-color: var(--border);
}
[data-theme="dark"] #tab-projects .stat-chip {
  border-left-color: var(--border);
}

/* ── SHARED: card title authority ───────────────────────────────── */
.card-title {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.18;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   01 — OPERATIONS: The C-Suite Financial Report
   Every number earned on a live portfolio. Gold, authority,
   restrained precision. The ledger doesn't lie.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Ledger lines — the faint horizontal rules of a financial report */
#tab-operations .panel-hero {
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 35px,
    rgba(217,130,0,.04) 35px,
    rgba(217,130,0,.04) 36px
  );
}
[data-theme="dark"] #tab-operations .panel-hero {
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 35px,
    rgba(240,160,32,.055) 35px,
    rgba(240,160,32,.055) 36px
  );
}

/* Headline: commanding — the scale of $45M deserves authority */
#tab-operations .ph-title {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -.05em;
}

/* Operations stat values: financial scale */
#tab-operations .sc-val { font-size: 1.85rem; letter-spacing: -.04em; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   02 — AERIAL: The Flight Deck
   Open sky. Precision without density. Every pre-flight item
   checked and documented. This is above the noise.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Sky wash: gradient from altitude, fading to clear */
#tab-aerial .panel-hero {
  background-image: linear-gradient(
    168deg,
    rgba(0,153,187,.09) 0%,
    rgba(0,153,187,.03) 40%,
    transparent 70%
  );
  padding-top: 2.75rem;   /* altitude — more open vertical space */
  padding-bottom: 2.5rem;
}
[data-theme="dark"] #tab-aerial .panel-hero {
  background-image: linear-gradient(
    168deg,
    rgba(0,200,232,.1) 0%,
    rgba(0,200,232,.03) 40%,
    transparent 70%
  );
}

/* Directional bullets — flight path */
#tab-aerial .card-bullets li::before { content: '→'; }

/* Instrument-panel stat display: monospace readings */
#tab-aerial .sc-val { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .03em; font-weight: 700; }
#tab-aerial .sc-lbl { font-family: var(--font-mono); }
#tab-aerial .asc-val { font-family: var(--font-mono); letter-spacing: .03em; }
#tab-aerial .asc-lbl { font-family: var(--font-mono); font-size: .68rem; }

/* Compliance checklist aside: logbook precision */
#tab-aerial .abc-check span { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .01em; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   03 — TECHNOLOGY: The Infrastructure Layer
   Violet. Dot grid. This is the server room, the wiring closet,
   the rack. Monospace because that's how machines speak.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Dot grid: circuit board / network topology feel */
#tab-technology .panel-hero {
  background-image: radial-gradient(circle, rgba(144,96,248,.13) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 2px 6px;
}
[data-theme="dark"] #tab-technology .panel-hero {
  background-image: radial-gradient(circle, rgba(144,96,248,.18) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 2px 6px;
}

/* Technical bullets */
#tab-technology .card-bullets li::before { content: '▸'; font-size: .72rem; }

/* Card tags: terminal-badge — rectangular, monospace */
#tab-technology .card-tag {
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  letter-spacing: .07em;
}

/* Stat display: system metrics — monospace readings */
#tab-technology .sc-val { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .03em; font-weight: 700; }
#tab-technology .sc-lbl { font-family: var(--font-mono); }
#tab-technology .asc-val { font-family: var(--font-mono); letter-spacing: .03em; }

/* Skills pills: monospace, less rounded — more like CLI flags */
#tab-technology .sg-pills span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .02em;
  border-radius: var(--r-sm);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   04 — DEVELOPMENT: The Codebase
   Green. Left-gutter discipline. Code comment labels.
   Built by someone who reads stack traces for fun.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Code-editor left gutter — like line-number column */
#tab-development .panel-hero {
  background-image: linear-gradient(
    90deg,
    rgba(16,217,138,.065) 0%,
    rgba(16,217,138,.025) 56px,
    transparent 57px
  );
}
[data-theme="dark"] #tab-development .panel-hero {
  background-image: linear-gradient(
    90deg,
    rgba(16,217,138,.09) 0%,
    rgba(16,217,138,.035) 56px,
    transparent 57px
  );
}

/* Section tag: code comment prefix // */
#tab-development .ph-tag::before {
  content: '// ';
  font-family: var(--font-mono);
  font-size: .9em;
  color: var(--dev);
  opacity: .5;
  font-weight: 400;
  letter-spacing: 0;
}

/* Code-style bullets */
#tab-development .card-bullets li::before { content: '»'; letter-spacing: -.08em; }

/* Card tags: rectangular badges — like language/framework chips */
#tab-development .card-tag {
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

/* Aside language badges: package dependency style */
#tab-development .abc-items span {
  font-family: var(--font-mono);
  font-size: .68rem;
  border-radius: var(--r-sm);
  letter-spacing: .015em;
  padding: 3px 9px;
}

/* Stat display: like a build status board */
#tab-development .sc-val { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .02em; font-weight: 700; }
#tab-development .sc-lbl { font-family: var(--font-mono); }

/* Skills pills: monospace, badge-shaped */
#tab-development .sg-pills span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .015em;
  border-radius: var(--r-sm);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   05 — EDUCATION: The Academic Record
   Blue. Institution. No decoration needed — the credential
   is the statement. Let the degree speak.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Institutional top-rule: a letterhead line, not a sidebar accent */
#tab-education .panel-hero {
  border-top: 3px solid var(--edu);
  border-left-color: transparent; /* top rule replaces left — more academic */
  background-image: none;         /* no texture — credentials don't need noise */
}
[data-theme="dark"] #tab-education .panel-hero {
  border-top-color: var(--edu);
  border-left-color: transparent;
}

/* Academic headline: formal weight */
#tab-education .ph-title {
  font-size: clamp(1.9rem, 3.9vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

/* Academic bullets — em dash, the formal list style */
#tab-education .card-bullets li::before { content: '—'; font-weight: 300; opacity: .5; font-size: .9em; }

/* Credential dates: stamp-like */
#tab-education .card-period {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Stat display: clean, no decoration, just the numbers */
#tab-education .sc-val { font-size: 1.5rem; letter-spacing: -.025em; font-weight: 900; }

/* ── MOBILE: graceful degradation ─────────────────────────────── */
@media (max-width: 860px) {
  /* Watermark numbers: smaller on mobile */
  #tab-operations  .panel-hero::before,
  #tab-aerial      .panel-hero::before,
  #tab-technology  .panel-hero::before,
  #tab-development .panel-hero::before,
  #tab-education   .panel-hero::before {
    font-size: clamp(4.5rem, 18vw, 7rem);
    right: .75rem;
    top: 0;
    opacity: .05;
  }
  #tab-projects .panel-hero::before {
    font-size: clamp(4.5rem, 18vw, 7rem);
    right: .75rem;
    top: 0;
    opacity: .05;
  }
  /* Aerial hero: reduce extra padding on mobile */
  #tab-aerial .panel-hero { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}

@media (max-width: 640px) {
  /* Editorial stats: allow wrapping, remove separators on tiny screens */
  .ph-stats { gap: 1rem 1.75rem; flex-wrap: wrap; align-items: flex-start; }
  #tab-operations .stat-chip, #tab-aerial .stat-chip,
  #tab-technology .stat-chip, #tab-development .stat-chip,
  #tab-education  .stat-chip {
    border-left: none;
    padding: 0;
  }
  #tab-projects .stat-chip {
    border-left: none;
    padding: 0;
  }
  .sc-val { font-size: 1.35rem; }
}


/* ════════════════════════════════════════════════════════════════════
   OPUS QUALITY PASS
   Final audit + surgical refinements. Every rule below answers a
   specific finding. Loaded last so it wins the cascade where it must.
   ════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ADDITIONS ─────────────────────────────────────────
   New tokens for things the system was doing ad-hoc inline.            */
:root {
  --r-pill: 9999px;                          /* alias for full radius */
  --ring-focus: 0 0 0 3px rgba(0,153,187,.28);
  --measure-body: 70ch;                      /* readable line length */
}

/* Bring focus radius in line with the new chip radius so the focus ring
   doesn't visually mismatch the rounded button silhouette. */
:focus-visible { outline-offset: 3px; border-radius: var(--r-md); }

/* ── HEADER IDENTITY: subtitle as a real descriptor ─────────────────
   Replaces "MULTI-DOMAIN PROFESSIONAL" with the four domain words —
   each rendered in JetBrains Mono for spec-sheet authority, separated
   by a thin centered dot. Reads as a designed signature, not boilerplate. */
.identity-subtitle {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232,236,255,.5);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 6px;
}
.isub-domain { color: rgba(232,236,255,.78); }
.isub-sep    { color: rgba(232,236,255,.22); font-size: .7rem; }

/* Tighten the H1 so the subtitle sits closer and reads as one unit. */
.identity-name h1 { line-height: 1.05; letter-spacing: -.022em; }

/* ── HEADER MAILTO: make the address an interactive affordance ────── */
.meta-mail {
  text-decoration: none;
  color: rgba(232,236,255,.7);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.meta-mail:hover,
.meta-mail:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.45);
}
.meta-mail svg { opacity: .7; }

/* ── HEADER ACTIONS: contact CTA + theme toggle group ───────────────
   The CTA is the strongest recruiter affordance on the page — it sits
   at top-right where the eye lands after the name. Flat outline button
   in light, subtle fill in dark. Both invariants stay readable on the
   navy header background. */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 160ms var(--ease),
              border-color 160ms var(--ease),
              transform 160ms var(--ease),
              box-shadow 160ms var(--ease);
  white-space: nowrap;
}
.header-cta svg { opacity: .85; }
.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.header-cta:active { transform: translateY(0); }

/* On narrow screens the CTA text hides; icon stays as a clear affordance. */
@media (max-width: 700px) {
  .header-cta span { display: none; }
  .header-cta { padding: .45rem .55rem; }
}
@media (max-width: 860px) {
  /* The fixed-mobile theme toggle rule above already pulls the toggle
     out of flow on small screens; keep the CTA visible inline. */
  .header-actions { gap: .4rem; }
}

/* ── DOMAIN TAB CHIPS: focus ring radius alignment ───────────────── */
.dtab:focus-visible { outline-offset: 3px; border-radius: var(--r-md); }

/* ── PANEL HERO: thin domain-color top accent rule on all hero blocks
   (Education already does this — extend the pattern uniformly to
   all five tabs to give every page-section a clear letterhead.) */
.panel-hero {
  border-top: 2px solid transparent;
  border-radius: var(--r-xl);
}
#tab-operations  .panel-hero { border-top-color: rgba(217,130,0,.22); }
#tab-aerial      .panel-hero { border-top-color: rgba(0,153,187,.22); }
#tab-technology  .panel-hero { border-top-color: rgba(102,48,204,.22); }
#tab-development .panel-hero { border-top-color: rgba(10,153,96,.22); }
#tab-projects .panel-hero { border-top-color: rgba(194,29,90,.22); }
#tab-education   .panel-hero { border-top-color: var(--edu); }    /* full strength — academic */
[data-theme="dark"] #tab-operations  .panel-hero { border-top-color: rgba(240,160,32,.32); }
[data-theme="dark"] #tab-aerial      .panel-hero { border-top-color: rgba(0,200,232,.32); }
[data-theme="dark"] #tab-technology  .panel-hero { border-top-color: rgba(144,96,248,.32); }
[data-theme="dark"] #tab-development .panel-hero { border-top-color: rgba(16,217,138,.32); }
[data-theme="dark"] #tab-projects .panel-hero { border-top-color: rgba(255,93,149,.32); }

/* Hero description: clamp to a real reading measure so the paragraph
   doesn't sprawl across 90+ chars on wide screens. */
.ph-desc { max-width: var(--measure-body); }

/* ── HERO TAG: opacity rules above muted these to .7 on light. On
   dark backgrounds that drops below 4.5:1. Rebuild contrast. */
[data-theme="dark"] #tab-operations  .ph-tag { color: rgba(240,160,32,.85); }
[data-theme="dark"] #tab-aerial      .ph-tag { color: rgba(0,200,232,.85); }
[data-theme="dark"] #tab-technology  .ph-tag { color: rgba(144,96,248,.88); }
[data-theme="dark"] #tab-development .ph-tag { color: rgba(16,217,138,.85); }
[data-theme="dark"] #tab-projects .ph-tag { color: rgba(255,93,149,.85); }
[data-theme="dark"] #tab-education   .ph-tag { color: rgba(88,136,255,.85); }

/* ── CARD HEADER: thin metadata band ─────────────────────────────────
   The current header is two floating pieces (tag pill + date). Adding
   a hairline rule below the metadata visually segments "the meta band"
   from "the substance" — title, org, body, bullets — making every card
   read as a structured record instead of a stack of inline fragments. */
.card .card-header {
  padding-bottom: .65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
#tab-operations  .card .card-header { border-bottom-color: rgba(217,130,0,.16); }
#tab-aerial      .card .card-header { border-bottom-color: rgba(0,153,187,.16); }
#tab-technology  .card .card-header { border-bottom-color: rgba(102,48,204,.16); }
#tab-development .card .card-header { border-bottom-color: rgba(10,153,96,.16); }
#tab-projects .card .card-header { border-bottom-color: rgba(194,29,90,.16); }
#tab-education   .card .card-header { border-bottom-color: rgba(30,80,200,.16); }
[data-theme="dark"] #tab-operations  .card .card-header { border-bottom-color: rgba(240,160,32,.18); }
[data-theme="dark"] #tab-aerial      .card .card-header { border-bottom-color: rgba(0,200,232,.18); }
[data-theme="dark"] #tab-technology  .card .card-header { border-bottom-color: rgba(144,96,248,.18); }
[data-theme="dark"] #tab-development .card .card-header { border-bottom-color: rgba(16,217,138,.18); }
[data-theme="dark"] #tab-projects .card .card-header { border-bottom-color: rgba(255,93,149,.18); }
[data-theme="dark"] #tab-education   .card .card-header { border-bottom-color: rgba(88,136,255,.20); }

/* ── CARD-ORG: promote from "filler line" to "meaningful identifier" ─
   Eyebrow treatment — uppercase, letterspaced, slightly smaller, in
   the domain accent color. Reads as a credit/byline, not boilerplate. */
.card-org {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: .25rem;
  margin-bottom: 1rem;
  opacity: .92;
}

/* ── ASIDE STAT CARDS: clearer hierarchy ────────────────────────────
   Findings: value + label were nearly the same weight; value was only
   .95rem. Push value to a real headline scale, drop label to caption,
   tighten letterspacing for stamp-like reading. */
.asc-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.asc-lbl {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--text-muted);
}
.asc-row {
  padding-block: .55rem;
  align-items: baseline;
}
.asc-title {
  font-size: .62rem;
  letter-spacing: .14em;
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border);
}
#tab-operations  .asc-title { color: var(--ops);    border-bottom-color: rgba(217,130,0,.2); }
#tab-aerial      .asc-title { color: var(--aerial); border-bottom-color: rgba(0,153,187,.2); }
#tab-technology  .asc-title { color: var(--tech);   border-bottom-color: rgba(102,48,204,.2); }
#tab-development .asc-title { color: var(--dev);    border-bottom-color: rgba(10,153,96,.2); }
#tab-projects .asc-title { color: var(--proj);    border-bottom-color: rgba(194,29,90,.2); }
#tab-education   .asc-title { color: var(--edu);    border-bottom-color: rgba(30,80,200,.2); }
[data-theme="dark"] #tab-operations  .asc-title { border-bottom-color: rgba(240,160,32,.22); }
[data-theme="dark"] #tab-aerial      .asc-title { border-bottom-color: rgba(0,200,232,.22); }
[data-theme="dark"] #tab-technology  .asc-title { border-bottom-color: rgba(144,96,248,.22); }
[data-theme="dark"] #tab-development .asc-title { border-bottom-color: rgba(16,217,138,.22); }
[data-theme="dark"] #tab-projects .asc-title { border-bottom-color: rgba(255,93,149,.22); }
[data-theme="dark"] #tab-education   .asc-title { border-bottom-color: rgba(88,136,255,.22); }

/* ── SKILLS SECTION: real heading authority ──────────────────────────
   The .skills-heading was 1rem 700 with a thin generic border. For a
   block that closes each tab, give it weight: larger, tighter, and an
   eyebrow above it that names the discipline. */
.skills-heading {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.018em;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom-width: 2px;
}
.skills-section .sg-label { margin-bottom: .55rem; }

/* ── DUAL-DEGREE FOOTER VALUES: dark mode legibility ────────────────
   The blue values sat too close to the dark surface luminance. */
[data-theme="dark"] .dsbf-val { color: #88a8ff; }

/* ── COURSEWORK GRADE BADGE: explicit fixed-track values
   The g-am modifier was disabled but the file still had old colors —
   removed via display:none earlier; ensure it stays out. */

/* ── FOOTER: presence, not bloat ────────────────────────────────────
   Three blocks: identity (name + domain tag), links (mailto + sites
   + location), copy. Hairline accent rule on top, generous breathing
   room. The email is a real link; the two domains are surfaced. */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  padding-block: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem 2rem;
  align-items: center;
}
.footer-block-identity { display: flex; flex-direction: column; gap: .15rem; }
.footer-block-links {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .68rem;
}
.footer-block-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  text-align: right;
}

.footer-name { font-size: .85rem; font-weight: 700; color: rgba(232,236,255,.85); letter-spacing: -.005em; }
.footer-tag  { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,236,255,.4); }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(232,236,255,.55);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color 160ms var(--ease);
  border-bottom: 1px solid transparent;
}
.footer-link:hover,
.footer-link:focus-visible { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.footer-link-primary { color: rgba(232,236,255,.78); }
.footer-link-primary svg { opacity: .8; }
.footer-sep { color: rgba(232,236,255,.18); }
.footer-loc { color: rgba(232,236,255,.4); letter-spacing: .04em; }

.footer-copy   { font-size: .72rem; color: rgba(232,236,255,.55); font-weight: 500; }
.footer-rights { font-size: .62rem; color: rgba(232,236,255,.28); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
  }
  .footer-block-links  { justify-content: flex-start; }
  .footer-block-meta   { align-items: flex-start; text-align: left; }
}

/* ── PANEL HERO: dark mode contrast on stat separators ─────────────
   The stat-chip vertical dividers used --border which can blend with
   --surface2 on aerial/tech in dark. Slightly raise contrast. */
[data-theme="dark"] #tab-operations .stat-chip,
[data-theme="dark"] #tab-aerial .stat-chip,
[data-theme="dark"] #tab-technology .stat-chip,
[data-theme="dark"] #tab-development .stat-chip,
[data-theme="dark"] #tab-education  .stat-chip {
  border-left-color: rgba(255,255,255,.08);
}
[data-theme="dark"] #tab-projects .stat-chip {
  border-left-color: rgba(255,255,255,.08);
}

/* ── CARD body bullets: tighten leading-strong contrast ─────────────
   Bold inline numbers ("$280K+", "52% to 35%") were the same gray as
   surrounding muted text in dark. Push them to full text color. */
.card-bullets li strong { color: var(--text); font-weight: 700; }
[data-theme="dark"] .card-bullets li strong { color: var(--text); }

/* ── SCROLL REVEAL respect motion preferences ──────────────────────
   The reveal animation runs unconditionally. For users with reduced-
   motion preference, neutralize the inline style overrides. */
@media (prefers-reduced-motion: reduce) {
  .card, .aside-stat-card, .aside-badge-card,
  .panel-hero, .cert-block, .skills-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── SELECTION: domain-aware accent (small detail, big premium feel) */
[data-theme="dark"] ::selection { background: rgba(0,200,232,.25); }

/* ── PRINT: the resume should print cleanly ─────────────────────────
   Recruiters print. Hide the chrome, show the substance. */
@media print {
  .domain-nav, .theme-toggle-btn, .header-cta { display: none !important; }
  .site-header, .site-footer { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .site-header * { color: #000 !important; }
  .tab-panel { display: block !important; page-break-inside: avoid; }
  .tab-panel + .tab-panel { page-break-before: always; }
  .panel-hero, .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .card-bullets li { break-inside: avoid; }
  .panel-hero::before { display: none !important; }
  body { background: #fff !important; }
}

/* ════════════════════════════════════════════════════════════════════
   LIGHT MODE COLOR PROFILES — Domain Chromatic Presence
   The domain personality textures need a tinted surface to live on.
   Pure white washes them out. Each tab gets its own light-mode
   base tone so the design work is actually visible.
   ════════════════════════════════════════════════════════════════════ */

/* ── CONTENT AREA: tinted background per active tab ──────────────
   The body/main background is neutral --bg (#f2f4f9).
   Each tab panel shifts this toward its domain tone — just enough
   to give the whole page a hue without being loud.
   ─────────────────────────────────────────────────────────────── */
#tab-operations  { background: #fdf8ee; }   /* warm amber-cream */
#tab-aerial      { background: #eef8fc; }   /* open sky blue    */
#tab-technology  { background: #f5f1ff; }   /* cool violet mist */
#tab-development { background: #edfaf3; }
#tab-projects { background: #fdf1f5; }   /* mint code green  */
#tab-education   { background: #eef1fc; }   /* institutional    */

/* ── HERO TINTED BASE: each hero has a domain-warm surface ──────
   Rather than white, the panel hero has a gentle tinted base.
   The domain textures (ledger lines, dot grid, etc.) now sit on
   a tinted surface — much more visible and intentional.
   ─────────────────────────────────────────────────────────────── */
#tab-operations .panel-hero {
  background-color: #fffbee;   /* warm cream — the ledger sheet */
}
#tab-aerial .panel-hero {
  background-color: #eef9ff;   /* clear sky */
}
#tab-technology .panel-hero {
  background-color: #f6f2ff;   /* server room violet */
}
#tab-development .panel-hero {
  background-color: #edfff4;   /* terminal green tint */
}
#tab-projects .panel-hero {
  background-color: #fff2f6;   /* terminal green tint */
}
#tab-education .panel-hero {
  background-color: #eef1fb;   /* institutional blue-white */
}

/* ── DOMAIN TEXTURES: raise opacity to be legible ───────────────
   Previous opacity values were designed for pure white — too low.
   Now that the base is tinted, these are calibrated to show.
   ─────────────────────────────────────────────────────────────── */

/* Operations: ledger lines — raised from .04 → .12 */
#tab-operations .panel-hero {
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 35px,
    rgba(160,90,0,.12) 35px,
    rgba(160,90,0,.12) 36px
  );
}

/* Aerial: sky gradient — raised from .09 → .22 */
#tab-aerial .panel-hero {
  background-image: linear-gradient(
    168deg,
    rgba(0,140,175,.22) 0%,
    rgba(0,140,175,.06) 40%,
    transparent 70%
  );
}

/* Technology: dot grid — raised from .13 → .28 */
#tab-technology .panel-hero {
  background-image: radial-gradient(
    circle,
    rgba(120,70,220,.28) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  background-position: 2px 6px;
}

/* Development: code gutter — raised from .065 → .18 */
#tab-development .panel-hero {
  background-image: linear-gradient(
    90deg,
    rgba(8,160,90,.18) 0%,
    rgba(8,160,90,.07) 56px,
    transparent 57px
  );
}

/* Education: no texture — the tinted base is the statement */

/* ── CARDS: domain-warm surfaces in light mode ───────────────────
   Cards are currently pure white (#ffffff) on every tab.
   Giving them a faint domain tint ties them to the page and
   makes the tab feel cohesive rather than all-white generic.
   ─────────────────────────────────────────────────────────────── */
#tab-operations  .card,
#tab-operations  .aside-stat-card,
#tab-operations  .aside-badge-card { background: #fffdf5; }

#tab-aerial      .card,
#tab-aerial      .aside-stat-card,
#tab-aerial      .aside-badge-card { background: #f5fbff; }

#tab-technology  .card,
#tab-technology  .aside-stat-card,
#tab-technology  .aside-badge-card { background: #faf7ff; }

#tab-development .card,
#tab-development .aside-stat-card,
#tab-development .aside-badge-card { background: #f5fff9; }
#tab-projects .card,
#tab-projects .aside-stat-card,
#tab-projects .aside-badge-card { background: #fff7fa; }

#tab-education   .card,
#tab-education   .aside-stat-card,
#tab-education   .aside-badge-card { background: #f7f9ff; }

/* ── SKILLS SECTION: tinted surface matches the tab ─────────────── */
#tab-operations  .skills-section { background: #fffdf5; }
#tab-aerial      .skills-section { background: #f5fbff; }
#tab-technology  .skills-section { background: #faf7ff; }
#tab-development .skills-section { background: #f5fff9; }
#tab-projects .skills-section { background: #fff7fa; }
#tab-education   .skills-section { background: #f7f9ff; }

/* ── DUAL DEGREE CARD and COURSEWORK (Education) ────────────────── */
#tab-education .dual-degree-row,
#tab-education .coursework-full-card { background: #f7f9ff; }
#tab-education .cwb { background: #f0f3ff; }
#tab-education .cwb-row:nth-child(even) { background: #e8ecff; }

/* ── DARK MODE: textures already calibrated for dark surfaces ───
   Keep existing dark-mode texture opacities — they were correct.
   Only suppress the new light-mode base colors in dark mode.
   ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] #tab-operations,
[data-theme="dark"] #tab-aerial,
[data-theme="dark"] #tab-technology,
[data-theme="dark"] #tab-development,
[data-theme="dark"] #tab-education {
  background: transparent;
}
[data-theme="dark"] #tab-projects {
  background: transparent;
}

[data-theme="dark"] #tab-operations  .panel-hero { background-color: var(--surface2); }
[data-theme="dark"] #tab-aerial      .panel-hero { background-color: var(--surface2); }
[data-theme="dark"] #tab-technology  .panel-hero { background-color: var(--surface2); }
[data-theme="dark"] #tab-development .panel-hero { background-color: var(--surface2); }
[data-theme="dark"] #tab-projects .panel-hero { background-color: var(--surface2); }
[data-theme="dark"] #tab-education   .panel-hero { background-color: var(--surface2); }

[data-theme="dark"] #tab-operations  .card,
[data-theme="dark"] #tab-operations  .aside-stat-card,
[data-theme="dark"] #tab-operations  .aside-badge-card,
[data-theme="dark"] #tab-aerial      .card,
[data-theme="dark"] #tab-aerial      .aside-stat-card,
[data-theme="dark"] #tab-aerial      .aside-badge-card,
[data-theme="dark"] #tab-technology  .card,
[data-theme="dark"] #tab-technology  .aside-stat-card,
[data-theme="dark"] #tab-technology  .aside-badge-card,
[data-theme="dark"] #tab-development .card,
[data-theme="dark"] #tab-development .aside-stat-card,
[data-theme="dark"] #tab-development .aside-badge-card,
[data-theme="dark"] #tab-education   .card,
[data-theme="dark"] #tab-education   .aside-stat-card,
[data-theme="dark"] #tab-education   .aside-badge-card { background: var(--surface); }
[data-theme="dark"] #tab-projects .card,
[data-theme="dark"] #tab-projects .aside-stat-card,
[data-theme="dark"] #tab-projects .aside-badge-card { background: var(--surface); }

[data-theme="dark"] #tab-operations  .skills-section,
[data-theme="dark"] #tab-aerial      .skills-section,
[data-theme="dark"] #tab-technology  .skills-section,
[data-theme="dark"] #tab-development .skills-section,
[data-theme="dark"] #tab-education   .skills-section { background: var(--surface); }
[data-theme="dark"] #tab-projects .skills-section { background: var(--surface); }

[data-theme="dark"] #tab-education .dual-degree-row,
[data-theme="dark"] #tab-education .coursework-full-card { background: var(--surface); }
[data-theme="dark"] #tab-education .cwb { background: var(--surface2); }
[data-theme="dark"] #tab-education .cwb-row:nth-child(even) { background: rgba(255,255,255,.025); }

/* ── DARK MODE: restore domain textures (previously set, ensure
   they override any background-image: none from above) ──────── */
[data-theme="dark"] #tab-operations .panel-hero {
  background-image: repeating-linear-gradient(
    180deg, transparent, transparent 35px,
    rgba(240,160,32,.055) 35px, rgba(240,160,32,.055) 36px
  );
}
[data-theme="dark"] #tab-aerial .panel-hero {
  background-image: linear-gradient(
    168deg, rgba(0,200,232,.1) 0%, rgba(0,200,232,.03) 40%, transparent 70%
  );
}
[data-theme="dark"] #tab-technology .panel-hero {
  background-image: radial-gradient(circle, rgba(144,96,248,.18) 1px, transparent 1px);
  background-size: 20px 20px; background-position: 2px 6px;
}
[data-theme="dark"] #tab-development .panel-hero {
  background-image: linear-gradient(
    90deg, rgba(16,217,138,.09) 0%, rgba(16,217,138,.035) 56px, transparent 57px
  );
}
[data-theme="dark"] #tab-education .panel-hero {
  background-image: none;
}


/* ── OPERATIONS HERO: case study quiet note ──────────────────── */
.ph-casestudy {
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: .875rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.ph-casestudy-link {
  color: var(--ops);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,130,0,.3);
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.ph-casestudy-link:hover { border-bottom-color: var(--ops); }
[data-theme="dark"] .ph-casestudy-link { color: var(--ops); border-bottom-color: rgba(240,160,32,.3); }

/* ── FOOTER: LinkedIn link uses the same footer-link style ──── */
/* No additional CSS needed — .footer-link handles it */

/* ── POSITIONING LOCK: pull-quote line in Operations hero ─────── */
.ph-poslock {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ops);
  font-style: italic;
  letter-spacing: .01em;
  margin-top: .5rem;
  opacity: .75;
}
[data-theme="dark"] .ph-poslock { color: var(--ops); opacity: .65; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROJECTS: The Workbench
   Rose. Set apart from the five domains, anchored right in the nav.
   The real app icons are the moment; rows read like a Finder list.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dnav-spacer { flex: 1 0 1.5rem; }

.proj-group { margin-bottom: 2rem; }
.proj-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .75rem;
}
.proj-list {
  list-style: none;
  margin: 0;
  padding: .5rem;
  display: grid;
  gap: .5rem;
  background: #fff7fa;  /* rose tint shows between the white app blocks */
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.proj-row {
  background: var(--surface);
  border-radius: calc(var(--r-xl) - .5rem);  /* nested radius: outer minus padding */
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}
[data-theme="dark"] .proj-list { background: rgba(255,93,149,.06); }
.proj-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.14));
}
/* ALI has no app icon yet: a terminal-style type tile stands in */
.proj-icon-type {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d1d22;
  color: #f4f4f6;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 500;
}
[data-theme="dark"] .proj-icon-type { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.proj-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .25rem;
}
.proj-desc {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.proj-desc code { white-space: nowrap; }
.proj-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  margin: 0;
}
@media (max-width: 640px) {
  .proj-row { grid-template-columns: 48px 1fr; gap: 1rem; padding: 1rem 1.25rem; }
  .proj-icon { width: 48px; height: 48px; }
  .proj-meta { grid-column: 2; text-align: left; white-space: normal; }
}
