/* =============================================================
   Aldrin A. Andres — Executive Career Website
   All design tokens live in :root — edit those to re-theme.

   Colour system (used semantically, not decoratively):
     blue   — actions, links, navigation, trust
     teal   — systems, technology, business continuity, development
     amber  — metrics, numerals, recognition, education
     indigo — risk, intelligence, geopolitical
   Two "warm paper" sections break up the dark foundation.
   ============================================================= */

:root {
  /* ---------- Dark foundation ---------- */
  --bg:            #0d1420;   /* deep navy-charcoal */
  --bg-2:          #111c2b;   /* alternate section */
  --bg-elev:       #16212f;   /* raised cards */
  --bg-elev-2:     #1c2838;   /* card hover / inputs */
  --line:          #2a374b40; /* hairline (translucent) */
  --line-solid:    #2a374b;

  /* ---------- Text on dark ---------- */
  --text:          #e7ecf3;
  --text-muted:    #a7b3c5;
  --text-dim:      #7c8aa1;

  /* ---------- Light "paper" surfaces ---------- */
  --paper:         #f6f4ef;   /* warm ivory, not stark white */
  --paper-2:       #efece2;
  --paper-card:    #ffffff;
  --paper-ink:     #1f2937;
  --paper-muted:   #4b5768;
  --paper-line:    #e2ddd0;
  --paper-accent:  #335a7d;   /* blue that meets AA on ivory */

  /* ---------- Accent system ---------- */
  --c-blue:        #6ba8d6;
  --c-blue-deep:   #4a7ba3;
  --c-teal:        #49b3a4;
  --c-teal-deep:   #2f8a7d;
  --c-amber:       #d6ab6a;
  --c-amber-deep:  #90692a;
  --c-indigo:      #949ada;
  --c-indigo-deep: #626ac2;

  /* Soft icon-tile fills (hue at low opacity on dark) */
  --tile-blue:     rgba(107, 168, 214, 0.13);
  --tile-teal:     rgba(73, 179, 164, 0.13);
  --tile-amber:    rgba(214, 171, 106, 0.15);
  --tile-indigo:   rgba(148, 154, 218, 0.15);

  /* ---------- Legacy aliases (component rules still reference these) ---------- */
  --accent:        var(--c-blue);
  --accent-strong: var(--c-blue-deep);
  --accent-ink:    #071019;
  --sand:          var(--c-amber);

  /* ---------- Layout ---------- */
  --maxw:          1120px;
  --gutter:        clamp(20px, 5vw, 56px);
  --radius:        14px;
  --radius-sm:     10px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--c-blue); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--c-blue);
  margin-bottom: 14px;
}
.sub-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.muted-line { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 24px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-blue); color: var(--accent-ink); }
.btn-primary:hover { background: #84bce2; }
.btn-solid {
  background: var(--bg-elev-2);
  color: var(--text);
  border-color: var(--line-solid);
}
.btn-solid:hover { border-color: var(--c-amber); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-solid);
}
.btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 0.82rem; }
.btn-lg { --pad-y: 15px; --pad-x: 30px; font-size: 0.98rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line-solid);
  background: rgba(13, 20, 32, 0.92);
}
.nav-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.01em;
  color: var(--text);
}
.brand-mark { color: var(--c-blue); display: flex; }
.brand-text { font-size: 0.98rem; }

.site-nav { margin-left: auto; }
.nav-menu { display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-menu a:hover { color: var(--text); background: #ffffff0a; }
.nav-menu a.active { color: var(--c-blue); }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-solid);
  border-radius: 10px;
  background: transparent;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; position: absolute;
  left: 50%; width: 18px; height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(90px, 16vw, 168px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; color: #3a5f86; }
.hero-grid { width: 100%; height: 100%; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 440px at 78% 16%, rgba(74, 123, 163, 0.30), transparent 70%),
    radial-gradient(520px 380px at 10% 92%, rgba(47, 138, 125, 0.16), transparent 72%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 20, 32, 0) 40%, var(--bg) 100%);
}
.hero-inner { max-width: 820px; }
.hero-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-role {
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  color: var(--c-blue);
}
.hero-domains {
  margin-top: 22px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-domains span { color: var(--c-teal); margin-inline: 4px; }
.hero-intro {
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.hero-actions {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-tags {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-tags li {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  border: 1px solid var(--line-solid);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Executive Profile ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.profile-body p { color: var(--text-muted); margin-bottom: 18px; }
.profile-body p:first-child { color: var(--text); font-size: 1.06rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip-list li {
  font-size: 0.83rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  color: var(--text-muted);
}
.chip-list-tight li { font-size: 0.8rem; padding: 6px 12px; }

.stat-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-solid);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg-elev);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-wide { grid-column: 1 / -1; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-amber);
}
.stat-num .plus { color: var(--c-blue); }
.stat-num-sm { font-size: 1.3rem; }
.stat-label { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }
.stat-label em { color: var(--text-muted); font-style: normal; }

/* ---------- Core Expertise cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.xp-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.xp-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-blue-deep);
  background: var(--bg-elev-2);
}
.xp-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--tile-blue);
  color: var(--c-blue);
  margin-bottom: 18px;
}
.xp-icon svg { width: 24px; height: 24px; }
.xp-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.xp-card p { font-size: 0.92rem; color: var(--text-muted); }

/* Expertise icons rotate through the four accent hues */
#expertise .xp-card:nth-child(4n + 1) .xp-icon { background: var(--tile-blue);   color: var(--c-blue); }
#expertise .xp-card:nth-child(4n + 2) .xp-icon { background: var(--tile-teal);   color: var(--c-teal); }
#expertise .xp-card:nth-child(4n + 3) .xp-icon { background: var(--tile-amber);  color: var(--c-amber); }
#expertise .xp-card:nth-child(4n)     .xp-icon { background: var(--tile-indigo); color: var(--c-indigo); }
#expertise .xp-card:nth-child(4n + 2):hover { border-color: var(--c-teal-deep); }
#expertise .xp-card:nth-child(4n + 3):hover { border-color: var(--c-amber-deep); }
#expertise .xp-card:nth-child(4n):hover     { border-color: var(--c-indigo-deep); }

/* Development cards carry a quiet teal marker (they have no icon) */
#development .eyebrow { color: var(--c-teal); }
#development .xp-card { border-top: 2px solid rgba(73, 179, 164, 0.55); }
#development .xp-card:hover { border-color: var(--c-teal-deep); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line-solid);
}
.tl-item { position: relative; padding-left: 40px; }
.tl-marker {
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--c-blue);
}
.tl-item-major .tl-marker { border-color: var(--c-amber); }
.tl-content {
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.tl-item-major .tl-content { border-color: var(--c-amber-deep); }
.tl-top {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 16px; justify-content: space-between;
}
.tl-top h3 { font-size: 1.2rem; font-weight: 600; }
.tl-date {
  font-size: 0.82rem; color: var(--text-dim);
  letter-spacing: 0.04em; white-space: nowrap;
}
.tl-org { color: var(--c-blue); font-weight: 500; margin-top: 4px; font-size: 0.95rem; }
.tl-note { color: var(--text-muted); margin-top: 12px; font-size: 0.95rem; }
.tl-list { margin-top: 14px; display: grid; gap: 8px; }
.tl-list li {
  position: relative; padding-left: 20px;
  color: var(--text-muted); font-size: 0.93rem;
}
.tl-list li::before {
  content: ""; position: absolute; left: 3px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue-deep);
}
.tl-item-major .tl-list li::before { background: var(--c-amber-deep); }
.roles-caption {
  margin-top: 22px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- Warm "paper" section (light band) ---------- */
.section-paper {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--paper-ink);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.section-paper .eyebrow { color: var(--paper-accent); }
.section-paper .section-head h2 { color: var(--paper-ink); }
.section-paper .section-lead { color: var(--paper-muted); }

/* Leadership Approach */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-solid);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  overflow: hidden;
}
.principle {
  background: var(--bg);
  padding: 32px 28px;
}
.principle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-amber);
  letter-spacing: 0.1em;
}
.principle h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
}
.principle p { color: var(--text-muted); font-size: 0.93rem; }

.section-paper .principles { background: var(--paper-line); border-color: var(--paper-line); }
.section-paper .principle { background: var(--paper-card); }
.section-paper .principle-num { color: var(--c-amber-deep); }
.section-paper .principle p { color: var(--paper-muted); }

/* ---------- Standards / regulatory / technical ---------- */
#standards .eyebrow { color: var(--c-indigo); }
.cert-block { margin-bottom: 42px; }
.cert-block:last-child { margin-bottom: 0; }

.std-block .sub-head {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid var(--c-blue);
}
.std-block.is-blue   .sub-head { border-left-color: var(--c-blue); }
.std-block.is-teal   .sub-head { border-left-color: var(--c-teal); }
.std-block.is-amber  .sub-head { border-left-color: var(--c-amber); }
.std-block.is-indigo .sub-head { border-left-color: var(--c-indigo); }
.std-block.is-blue   .chip-list li:hover { border-color: var(--c-blue); color: var(--text); }
.std-block.is-teal   .chip-list li:hover { border-color: var(--c-teal); color: var(--text); }
.std-block.is-amber  .chip-list li:hover { border-color: var(--c-amber); color: var(--text); }
.std-block.is-indigo .chip-list li:hover { border-color: var(--c-indigo); color: var(--text); }
.std-block .chip-list li { transition: border-color .18s var(--ease), color .18s var(--ease); }

/* ---------- Certifications ---------- */
.cert-list { display: grid; gap: 10px; }
.cert-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 0.95rem;
  color: var(--text);
}
.cert-text { display: flex; flex-direction: column; gap: 3px; }
.cert-text b { font-weight: 600; }
.cert-text span { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.cert-badge {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  border: 1px solid var(--c-blue-deep);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.cert-badge.course {
  color: var(--c-teal);
  border-color: var(--c-teal-deep);
}
.cert-badge.pending {
  color: var(--c-amber);
  border-color: var(--c-amber-deep);
}

/* ---------- Education ---------- */
#education .eyebrow { color: var(--c-amber); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.edu-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.edu-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--tile-amber);
  color: var(--c-amber);
  margin-bottom: 18px;
}
.edu-icon svg { width: 24px; height: 24px; }
.edu-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.edu-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Achievements (on paper) ---------- */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.ach {
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.ach-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  color: var(--c-amber);
  line-height: 1.05;
  display: block;
  margin-bottom: 12px;
}
.ach-num.is-sm { font-size: clamp(1.05rem, 2.4vw, 1.4rem); letter-spacing: 0.01em; }
.ach-slash { color: var(--c-blue); margin: 0 2px; font-weight: 500; }
.ach h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.ach p { font-size: 0.9rem; color: var(--text-muted); }

.section-paper .ach {
  background: var(--paper-card);
  border-color: var(--paper-line);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.section-paper .ach:hover { transform: translateY(-3px); border-color: var(--c-amber); }
.section-paper .ach-num { color: var(--c-amber-deep); }
.section-paper .ach-slash { color: var(--paper-accent); }
.section-paper .ach h3 { color: var(--paper-ink); }
.section-paper .ach p { color: var(--paper-muted); }

/* ---------- Misc content bits ---------- */
.hero-suffix {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-blue);
  vertical-align: 0.35em;
}
.disclaimer {
  font-size: 0.88rem;
  color: var(--text-dim);
  border-left: 2px solid var(--c-teal-deep);
  padding: 4px 0 4px 16px;
  margin-bottom: 28px;
  max-width: 60ch;
}
.work-auth {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-solid);
  font-size: 0.86rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Resume band ---------- */
.resume-band {
  background:
    linear-gradient(90deg, rgba(20, 40, 60, 0) 0%, rgba(32, 72, 98, 0.55) 45%, rgba(150, 110, 55, 0.20) 100%),
    var(--bg-2);
  border-block: 1px solid var(--line-solid);
}
.resume-band-inner {
  padding-block: clamp(40px, 7vw, 64px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.resume-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.resume-band p { color: var(--text-muted); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-details { display: grid; gap: 14px; }
.contact-details li {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.contact-ico {
  grid-row: 1 / 3;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--tile-blue);
  color: var(--c-blue);
}
.contact-details li:nth-child(2) .contact-ico { background: var(--tile-teal);   color: var(--c-teal); }
.contact-details li:nth-child(3) .contact-ico { background: var(--tile-amber);  color: var(--c-amber); }
.contact-details li:nth-child(4) .contact-ico { background: var(--tile-indigo); color: var(--c-indigo); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.contact-v { font-size: 0.95rem; color: var(--text); word-break: break-word; }
a.contact-v:hover { color: var(--c-blue); }

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-solid);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  background: #0c1626;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c9736b; }
.form-note { font-size: 0.87rem; color: var(--text-muted); min-height: 1.2em; }
.form-note.ok { color: var(--c-teal); }
.form-note.err { color: #d98a82; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-solid);
  background: var(--bg-2);
  padding-block: 48px;
}
.footer-inner { display: grid; gap: 12px; text-align: center; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.footer-tag { color: var(--text-dim); font-size: 0.86rem; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center;
  margin-top: 6px;
}
.footer-nav a {
  font-size: 0.86rem; color: var(--text-muted);
}
.footer-nav a:hover { color: var(--c-blue); }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; margin-top: 8px; }

/* ---------- Scroll reveal (JS-gated so content is always visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .nav-wrap { gap: 16px; }
  .site-nav { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 61px 0 auto 0;
    max-height: calc(100vh - 61px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 24px;
    background: rgba(13, 20, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-solid);
    transform: translateY(-145%);
    transition: transform .32s var(--ease);
  }
  .site-nav.open .nav-menu { transform: translateY(0); }
  .nav-menu a { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .nav-menu a:hover { background: #ffffff10; }
  .nav-cta { display: none; }
}

@media (max-width: 560px) {
  .stat-panel { grid-template-columns: 1fr; }
  .tl-top { flex-direction: column; }
  .resume-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-domains { font-size: 0.8rem; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .xp-card:hover, .ach:hover { transform: none; }
}

@media print {
  .site-header, .hero-bg, .nav-toggle, .resume-band, .contact-form { display: none; }
  body { background: #fff; color: #000; }
  .section, .section-paper { border: none; padding-block: 18px; background: #fff; color: #000; }
  .section-paper .section-head h2,
  .section-paper .principle p,
  .section-paper .ach p { color: #000; }
}
