.hero-nav .cv-nav-link {
  display: none;
}

.hero-nav .mobile-section-link {
  display: none;
}

.hero-nav-index,
.mobile-portfolio-intro {
  display: none;
}

.brand-photo {
  display: none;
}

.mobile-sticky-sections {
  display: none;
}

.mobile-index-label,
.mobile-section-index {
  display: none;
}

@media (max-width: 600px) {
  .header {
    height: 108px;
    width: min(100% - 24px, 1180px);
    padding: 0;
    position: static;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header nav {
    display: none !important;
  }

  .menu {
    display: none;
  }

  section[id] {
    scroll-margin-top: 138px;
  }

  .resume-card[id] {
    scroll-margin-top: 138px;
  }

  .mobile-sticky-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    position: fixed;
    top: 9px;
    left: 12px;
    right: 12px;
    z-index: 40;
    padding: 8px;
    background: rgba(245, 247, 251, 0.92);
    border: 1px solid rgba(223, 228, 239, 0.9);
    border-radius: 17px;
    box-shadow: 0 14px 34px rgba(28, 43, 85, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-130%);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  body.scrolled-nav .mobile-sticky-sections {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-sticky-sections a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
    min-height: 46px;
    padding: 6px;
    border: 1px solid var(--ink);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 0 var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s ease;
  }

  .mobile-sticky-sections a:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ink);
  }

  .mobile-sticky-sections .hero-nav-index {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    border-radius: 6px;
    font-size: 8px;
  }

  .mobile-sticky-sections a.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 3px 0 #1d3cab;
  }

  .mobile-sticky-sections a.active .hero-nav-index {
    background: #fff;
    color: var(--blue);
  }

  .brand-mark {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero > .hero-image {
    display: none;
  }

  .background-section > .section-title,
  .desktop-index-label {
    display: none;
  }

  .mobile-index-label {
    display: inline;
  }

  .mobile-section-index {
    display: block;
    margin: 0 0 14px;
  }

  .accent-card .mobile-section-index {
    color: #aebcff;
  }

  .brand-mark {
    overflow: hidden;
  }

  .brand-initials {
    display: none;
  }

  .brand-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }

  .portfolio-navigation {
    margin-top: 22px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(28, 43, 85, 0.07);
  }

  .mobile-portfolio-intro {
    display: block;
  }

  .mobile-portfolio-intro strong,
  .mobile-portfolio-intro span {
    display: block;
  }

  .mobile-portfolio-intro strong {
    margin-bottom: 4px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
  }

  .mobile-portfolio-intro span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .hero .hero-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 14px;
  }

  .hero-nav .desktop-section-link {
    display: none;
  }

  .hero-nav .mobile-section-link {
    display: flex;
  }

  .hero-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 58px;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid var(--ink);
    border-radius: 13px;
    box-shadow: 0 4px 0 var(--ink), 0 10px 20px rgba(28, 43, 85, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .hero-nav a:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--ink);
  }

  .hero-nav-index {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0;
  }

  .hero-nav .cv-nav-link {
    display: flex;
    grid-column: 1 / -1;
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 0 #1d3cab, 0 10px 20px rgba(49, 88, 232, 0.18);
  }

  .hero-nav .cv-nav-link .hero-nav-index {
    background: #fff;
    color: var(--blue);
  }

  .hero .actions {
    display: none;
  }

}
