/* Small-screen refinements for the V24 review. Desktop design is unchanged. */
@media (max-width: 760px) {
  :root { --header-h: 112px; }
  .site-header {
    height: var(--header-h); padding: 12px 18px; gap: 8px;
    flex-direction: column; align-items: flex-start; justify-content: center;
    overflow: visible;
  }
  .brand img { width: 150px !important; }
  nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px !important; }
  nav a, nav a:not(.nav-contact) { font-size: 14px !important; padding: 8px 0; }
  .nav-contact { padding-left: 9px !important; }
  .hero { padding-top: var(--header-h); min-height: 880px; }
  .hero-content { padding-top: 78px; }
  .hero h1 { font-size: clamp(36px, 9.8vw, 54px) !important; overflow-wrap: normal; }
  .hero-copy-v17 { font-size: 18px !important; }
  .hero-copy-v17 br { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-meta small { font-size: 12px !important; line-height: 1.4; }
  .expertise-card p { font-size: 16px !important; }
  .life-step span { white-space: normal; font-size: 14px !important; }
  .experience-title-v21 { font-size: 14px !important; white-space: normal; }
  .contact-mail { font-size: clamp(23px, 7vw, 36px); overflow-wrap: anywhere; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Constrain the long ribbon to its grid instead of its intrinsic text width. */
.experience-v21 .experience-grid { min-width: 0; row-gap: 28px; }
.experience-marquee-shell {
  min-width: 0; width: 100%; max-width: 100%;
  margin-top: 0 !important; padding-top: 48px !important;
}
.experience-marquee-track { gap: 16px !important; }
@keyframes v22Marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
.experience-marquee-toggle {
  position: absolute; top: 5px; right: 0; z-index: 3;
  min-height: 36px; padding: 4px 14px; border: 1px solid #d9e5ec;
  border-radius: 18px; background: #fff; color: #07558f;
  font: 700 14px Arial, sans-serif; cursor: pointer;
}
.experience-marquee-toggle:focus-visible { outline: 2px solid #07558f; outline-offset: 2px; }
@media (min-width: 761px) {
  #experience { padding-top: 64px; padding-bottom: 48px; }
}
