/* ==========================================================================
   Cesar Mendoza - personal site
   Dark, sober portfolio theme. No framework dependencies.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette shared with mdnav-web */
  --bg: #0b1015;
  --bg-alt: #0f151d;
  --surface: #141b24;
  --surface-2: #18212c;
  --border: #2a3745;
  --border-strong: #3a4a5c;
  --text: #e7edf5;
  --muted: #97a8bb;
  --accent: #9ee37d;
  --accent-strong: #b8ec9f;
  --accent-2: #77c6ff;
  --accent-soft: rgba(158, 227, 125, 0.1);
  --accent-line: rgba(158, 227, 125, 0.25);
  --on-accent: #0c1a07;

  /* Typography: monospace body (shared with mdnav-web), Ubuntu titles */
  --font-sans: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  --font-mono: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  --font-title: "Ubuntu", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1080px;
  --gutter: 16px;
  --nav-h: 64px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Display titles */
h1, h2, .nav-brand, .hero-name {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-name .accent { color: var(--accent); }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-strong); }

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

::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute !important;
  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: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

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

.accent { color: var(--accent); }

/* ---------- 3. Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); }
.nav-brand span { color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.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: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch a {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 0.95em; height: 0.95em; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* ---------- 5. Hero ---------- */
.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-role {
  margin: 0.9rem 0 1.25rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.hero-lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.hero-lead + .hero-lead { margin-top: -0.25rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.hero-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-all;
}
.hero-email svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.hero-email:hover { color: var(--text); }

.hero-photo {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  justify-self: center;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--accent-line);
  border-radius: 24px;
  background: var(--accent-soft);
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

/* ---------- 6. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding-bottom: 24px;
}

.stat {
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.stat-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.stat-value .accent { font-weight: 800; }
.stat-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ---------- 7. Sections ---------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.sub-head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---------- 8. Cards (shared) ---------- */
.card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .exp-featured .card-head {
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    background: var(--surface);
    padding: 0.9rem 0 0.9rem;
    margin: -0.9rem 0 0.9rem;
    box-shadow: 0 1px 0 var(--border);
  }
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-org {
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-text {
  color: var(--muted);
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.bullets {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- 9. Experience ---------- */
.exp-featured {
  padding: 2rem;
  margin-bottom: 20px;
  border-color: var(--border-strong);
}
.exp-featured::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 3px;
  z-index: 6;
  background: var(--accent);
}
.exp-featured .card-title { font-size: 1.35rem; }
.exp-featured .bullets li { color: #b6c1cf; }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- 10. Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
}
.project-card .card-head { margin-bottom: 0.75rem; }
.project-card .card-text { flex: 1; margin-bottom: 1.25rem; }

.project-links {
  display: flex;
  gap: 0.35rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
}
.project-link svg { width: 15px; height: 15px; }
.project-link:hover { color: var(--accent); border-color: var(--border-strong); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

/* ---------- 11. Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.edu-card .card-head { margin-bottom: 0.5rem; }

/* ---------- 12. Skills ---------- */
.skills-block + .skills-block { margin-top: 48px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  list-style: none;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.skill:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.skill i,
.skill svg {
  font-size: 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.skill:hover i,
.skill:hover svg { color: var(--accent); }
.skill-label {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
}
.pill svg { width: 12px; height: 12px; color: var(--accent); }

/* ---------- 13. Timeline (Road to) ---------- */
.page-head {
  padding: 64px 0 8px;
}
.page-head .section-head { margin-bottom: 0; }
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.section-flush { border-top: 0; padding-top: 48px; }

.timeline {
  position: relative;
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-year {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

@media (min-width: 768px) {
  .timeline-head {
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    background: var(--surface);
    padding: 0.75rem 0 0.6rem;
    margin: -0.75rem 0 0;
  }
}
.timeline-card .badge { margin-bottom: 0.85rem; white-space: normal; }
.timeline-title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.timeline-text { color: var(--muted); margin: 0; }

.timeline-outro {
  max-width: 820px;
  margin: 56px auto 0;
  text-align: center;
}
.timeline-outro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .social-links { justify-content: center; margin-bottom: 1rem; }
.site-footer p { margin: 0; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 767.98px) {
  :root { --nav-h: 60px; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 0.7rem 0.75rem; font-size: 1rem; }

  .nav-actions {
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .hero { padding: 40px 0 32px; }
  .hero-grid { gap: 36px; }
  .hero-photo { width: min(72%, 260px); order: -1; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .exp-featured { padding: 1.5rem; }
  .card { padding: 1.25rem; }
  .page-head { padding: 40px 0 0; }
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exp-grid,
  .project-grid,
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .nav-links a { padding: 0.45rem 0.5rem; font-size: 0.86rem; }
  .nav-menu { gap: 0.75rem; }
}

@media (min-width: 992px) {
  .hero { padding: 96px 0 64px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .hero-photo { justify-self: end; margin: 0; }
  .skill-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------- 16. Motion preferences ---------- */
/* Highlighted bullet: soft periodic pulse to draw attention to a key achievement */
.bullets li.is-highlight {
  padding: 0.6rem 0.8rem 0.6rem 1.9rem;
  margin: 0 0 0.2rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  animation: highlight-pulse 5s ease-in-out infinite;
}
.bullets li.is-highlight::before { left: 0.8rem; top: 1.25em; }
.bullets li.is-highlight strong { color: var(--accent); font-weight: 700; }

@keyframes highlight-pulse {
  0%, 70%, 100% {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 0 rgba(158, 227, 125, 0);
  }
  80% {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(158, 227, 125, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .card:hover,
  .skill:hover,
  .social-link:hover,
  .btn:hover { transform: none; }
}

/* Scope line under the featured role */
.exp-scope { margin: 0 0 1rem; color: var(--text); }

/* Keep project card text aligned whether the header has link icons or a badge */
.project-card .card-head { min-height: 34px; align-items: center; }
.badge-private { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.badge-private svg { width: 11px; height: 11px; }

/* Timeline sort control */
.timeline-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 820px;
  margin: 0 auto 2rem;
}
.timeline-sort-label { color: var(--muted); font-size: 0.85rem; }
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.sort-btn:hover { color: var(--text); border-color: var(--border-strong); }
.sort-btn:active { transform: scale(0.96); }
.sort-btn.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.sort-btn svg { width: 13px; height: 13px; }
.timeline-item { will-change: transform; }
.timeline-item.is-current::before { background: var(--accent); }

/* Road to: soft pulse on the hero button and on the navbar item */
@keyframes roadto-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(158, 227, 125, 0.35); }
  70%  { box-shadow: 0 0 0 8px rgba(158, 227, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(158, 227, 125, 0); }
}
.btn-pulse { animation: roadto-pulse 2.4s ease-out infinite; }
.nav-roadto a { color: var(--accent); }

@media (min-width: 768px) {
  /* Hidden while the hero button is on screen; slides in once it scrolls away */
  .nav-roadto {
    max-width: 0;
    margin-left: -0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-width 0.45s ease, margin 0.45s ease, opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.45s;
  }
  .nav-roadto.is-visible {
    max-width: 10rem;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-width 0.45s ease, margin 0.45s ease, opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, visibility 0s;
  }
  .nav-roadto a { white-space: nowrap; }
  .nav-roadto.is-visible a { animation: roadto-pulse 2.4s ease-out 0.5s infinite; }
}

/* Jobint card spans the full row like the featured role; Navent cards sit side by side */
@media (min-width: 768px) {
  .exp-grid > article:first-child { grid-column: 1 / -1; }
}
