/* ============================================================
 * marcobruschi.com — the matrix edition
 * Terminal-dark, phosphor green, monospace throughout.
 * Portfolio + résumé share every token.
 * ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces — pure black with faint green hints */
  --bg:             #000000;
  --surface:        #05090a;
  --surface-raised: #0a1310;
  --border:         rgba(0, 255, 156, 0.12);
  --border-strong:  rgba(0, 255, 156, 0.32);
  --border-subtle:  rgba(0, 255, 156, 0.06);

  /* Text in softer phosphor greens for body readability */
  --text:       #d1ffe4;
  --text-muted: #7bc49d;
  --text-dim:   #3f7a5a;

  /* Accent — the iconic matrix green */
  --accent:       #00ff9c;
  --accent-soft:  rgba(0, 255, 156, 0.10);
  --accent-glow:  rgba(0, 255, 156, 0.45);

  /* Warnings / incidents */
  --danger: #ff5e5e;
  --amber:  #ffc043;

  /* Motion */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:  260ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --page-max: 1080px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Type — everything mono, with display variant for headlines */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Space Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background: matrix rain canvas sits at -2, scanlines at -1 */
#matrix-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.11;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 255, 156, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(0, 255, 156, 0.04), transparent 60%),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.35) 3px,
      rgba(0, 0, 0, 0.35) 4px
    );
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(0, 255, 156, 0.4);
  color: #000;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 156, 0.16);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 156, 0.32); }

/* ============================================================
 * Layout helpers
 * ============================================================ */

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

main { padding-bottom: 96px; }

section {
  padding: 76px 0;
  scroll-margin-top: 80px;
}

section + section {
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-shadow: 0 0 10px var(--accent-glow);
}

.eyebrow::before {
  content: ">";
  font-family: var(--font-mono);
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

h3 { font-weight: 600; }

.section-lead {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
}

/* ============================================================
 * Nav
 * ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid rgba(0, 255, 156, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 18px rgba(0, 255, 156, 0.25), inset 0 0 10px rgba(0, 255, 156, 0.12);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}

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

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 18px rgba(0, 255, 156, 0.25);
  text-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
 * Hero
 * ============================================================ */

.hero {
  padding: 96px 0 72px;
  position: relative;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 255, 156, 0.42);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  text-shadow: 0 0 8px var(--accent-glow);
  box-shadow: 0 0 22px rgba(0, 255, 156, 0.1);
}

.hero-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
  text-shadow: 0 0 18px rgba(0, 255, 156, 0.18);
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 22px var(--accent-glow), 0 0 6px var(--accent-glow);
}

.hero h1 .cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 0.04em;
  text-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent-glow);
  animation: blink 1.05s steps(1, end) infinite;
}

.nobr { white-space: nowrap; }

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all var(--t-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.3), 0 0 28px rgba(0, 255, 156, 0.22);
  text-shadow: none;
}

.btn-primary:hover {
  background: #1affac;
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.6), 0 0 34px rgba(0, 255, 156, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 22px rgba(0, 255, 156, 0.18);
  text-shadow: 0 0 8px var(--accent-glow);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.metric {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-value.em {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
 * About
 * ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 255, 156, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 255, 156, 0.12);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 255, 156, 0.04), transparent 30%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.about-copy p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ============================================================
 * Experience — terminal-style list with vertical rail
 * ============================================================ */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 20%, var(--border-subtle));
  box-shadow: 0 0 6px rgba(0, 255, 156, 0.15);
}

.tl-item {
  position: relative;
  padding-bottom: 36px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-item.current .tl-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 22px var(--accent-glow);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.tl-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

.tl-company {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.tl-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tl-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 760px;
}

.tl-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 14px;
  position: relative;
}

.tl-group::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 30px;
  width: 24px;
  height: 1px;
  background: var(--border-strong);
  box-shadow: 0 0 6px var(--accent-glow);
}

.tl-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.tl-group-head h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.tl-group-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tl-group-lead {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 22px;
  line-height: 1.7;
}

.tl-sub {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.tl-sub:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.tl-sub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.tl-sub-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.tl-sub-title .badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 156, 0.42);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  vertical-align: middle;
  text-shadow: 0 0 8px var(--accent-glow);
}

.tl-sub-dates {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.tl-sub-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 6px;
}

/* ============================================================
 * Selected Work
 * ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 26px;
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  overflow: hidden;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.3), transparent);
}

.work-card:hover {
  border-color: rgba(0, 255, 156, 0.45);
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.2), 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 156, 0.12);
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px var(--accent-glow);
}

.work-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.work-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}

.work-metric {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 255, 156, 0.25);
  border-radius: 4px;
  align-self: flex-start;
  text-shadow: 0 0 8px var(--accent-glow);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  transition: color var(--t-fast);
}

.work-card:hover .work-link {
  color: var(--accent);
}

.work-link.disabled {
  color: var(--text-dim);
  cursor: default;
}

/* ============================================================
 * Skills
 * ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.skill-group {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.skill-group h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  font-weight: 600;
  text-shadow: 0 0 8px var(--accent-glow);
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-group li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  padding: 6px 10px;
  background: rgba(0, 255, 156, 0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.skill-group li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============================================================
 * Contact
 * ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contact-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}

.contact-card:hover {
  border-color: rgba(0, 255, 156, 0.4);
  background: var(--surface-raised);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 255, 156, 0.12);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
  text-shadow: 0 0 10px var(--accent-glow);
}

.contact-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ============================================================
 * Footer
 * ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.site-footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
 * Reduced motion
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-status .dot, .hero h1 .cursor { animation: none; }
  .btn, .work-card, .contact-card, .nav-links a, .nav-cta {
    transition: none;
  }
}

/* ============================================================
 * Résumé page (body.resume-page) — web view matches portfolio,
 * print override produces an ATS-friendly light document.
 * ============================================================ */

body.resume-page {
  padding: 0;
}

.resume-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  position: relative;
  z-index: 1;
}

.resume-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px 16px;
}

.resume-topbar a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.resume-topbar a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.resume-topbar .print-btn {
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 4px;
}

.resume-topbar .print-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.resume-header {
  margin-bottom: 20px;
}

.resume-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--text);
  text-shadow: 0 0 18px rgba(0, 255, 156, 0.2);
}

.resume-header .title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-shadow: 0 0 10px var(--accent-glow);
}

.resume-contact {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.resume-contact a { color: var(--text-muted); }
.resume-contact a:hover { color: var(--accent); }

.resume-section {
  margin-top: 26px;
}

.resume-section h2 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 8px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-section h2::before {
  content: ">";
  color: var(--accent);
  font-weight: 400;
}

.resume-section p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.skills-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.9;
}

.resume-role {
  margin-bottom: 20px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
}

.resume-role-head .company {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.resume-role-head .position {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text);
}

.resume-role-head .dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.resume-role-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.resume-role ul {
  list-style: none;
  padding-left: 16px;
}

.resume-role ul li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 7px;
  line-height: 1.65;
  font-size: 13px;
  color: var(--text);
}

.resume-role ul li::before {
  content: "▹";
  position: absolute;
  left: -12px;
  top: 0;
  color: var(--accent);
  font-size: 10px;
  text-shadow: 0 0 6px var(--accent-glow);
}

.resume-role ul li strong {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
  font-weight: 700;
}

.resume-sub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.resume-sub:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.resume-prior {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-prior:last-child { border-bottom: 0; }

.resume-prior .left {
  color: var(--text);
  font-family: var(--font-mono);
}

.resume-prior .left .company {
  color: var(--accent);
  font-weight: 600;
}

.resume-prior .left .sep {
  color: var(--text-dim);
  margin: 0 6px;
}

.resume-prior .right {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.resume-edu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.resume-edu .school {
  color: var(--accent);
  font-weight: 600;
}

.resume-edu .field {
  color: var(--text-muted);
  margin-left: 6px;
}

.resume-edu .years {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
 * Print overrides — clean ATS-ready light mode
 * ============================================================ */

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

  #matrix-rain,
  body::after,
  .site-nav,
  .site-footer,
  .resume-topbar {
    display: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0b0d12 !important;
  }

  body {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.45 !important;
  }

  .resume-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .resume-header h1,
  .resume-header .title,
  .resume-section h2,
  .resume-role-head .company,
  .resume-role-head .position,
  .resume-prior .left .company,
  .resume-edu .school,
  .resume-role ul li strong {
    text-shadow: none !important;
  }

  .resume-header h1 {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 24pt !important;
    color: #0b0d12 !important;
    margin-bottom: 4px;
  }

  .resume-header .title {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 11pt !important;
    color: #4b5563 !important;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }

  .resume-contact,
  .resume-contact a {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 9pt !important;
    color: #4b5563 !important;
  }

  .resume-section h2 {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 9pt !important;
    color: #0b0d12 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    letter-spacing: 0.16em;
  }

  .resume-section h2::before { content: "" !important; display: none; }

  .resume-section p,
  .skills-line,
  .resume-role ul li,
  .resume-role-meta {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    color: #0b0d12 !important;
  }

  .resume-role-head .company,
  .resume-prior .left .company,
  .resume-edu .school {
    color: #0b0d12 !important;
    font-weight: 600;
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
  }

  .resume-role-head .position {
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    color: #0b0d12 !important;
  }

  .resume-role-head .dates,
  .resume-prior .right,
  .resume-edu .years {
    color: #4b5563 !important;
    font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 9pt !important;
    letter-spacing: 0;
  }

  .resume-role-meta {
    color: #4b5563 !important;
    font-size: 9.5pt !important;
  }

  .resume-role ul li::before {
    content: "•";
    color: #4b5563 !important;
  }

  .resume-role ul li strong {
    color: #0b0d12 !important;
    font-weight: 600;
  }

  .resume-sub {
    border-color: #e5e7eb !important;
  }

  .resume-prior,
  .resume-edu {
    border-color: #e5e7eb !important;
  }

  .skills-line { font-size: 9.5pt !important; }

  .resume-topbar, .site-nav, nav { display: none !important; }

  a { color: #0b0d12 !important; text-decoration: none; }

  .resume-role,
  .resume-sub,
  .resume-prior,
  .resume-edu,
  .resume-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
